From 0760c10eee0dbe691cd6a4fc85bc370c101d61ae Mon Sep 17 00:00:00 2001 From: ingeniumed Date: Thu, 12 Sep 2024 14:19:52 +1000 Subject: [PATCH] Add a notice when the min WP version is not met --- vip-workflow.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vip-workflow.php b/vip-workflow.php index bebf9806..8c7bcd01 100644 --- a/vip-workflow.php +++ b/vip-workflow.php @@ -19,13 +19,13 @@ if ( ! defined( 'VIP_WORKFLOW_LOADED' ) ) { define( 'VIP_WORKFLOW_LOADED', true ); - // ToDo: Add a check for the WP version as well. // ToDo: When 6.4 is our min version, switch to wp_admin_notice. - if ( version_compare( phpversion(), '8.0', '<' ) ) { + global $wp_version; + if ( version_compare( phpversion(), '8.0', '<' ) || version_compare( $wp_version, '6.2', '<' ) ) { add_action( 'admin_notices', function () { ?>
-

+