diff --git a/.eslintignore b/.eslintignore index 50f44353..c08cc035 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ node_modules vendor *.php +dist diff --git a/vip-workflow.php b/vip-workflow.php index d5532481..12fdc8ea 100644 --- a/vip-workflow.php +++ b/vip-workflow.php @@ -22,14 +22,14 @@ 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 () { ?>