diff --git a/includes/admin/class-wc-admin-notices.php b/includes/admin/class-wc-admin-notices.php index 471945f1908..a0f86eb7caa 100644 --- a/includes/admin/class-wc-admin-notices.php +++ b/includes/admin/class-wc-admin-notices.php @@ -8,14 +8,6 @@ defined( 'ABSPATH' ) || exit; -/** - * Name for notice for showing minimum version requirements. Change value to invalidate previous dismissals when requirement changes in future. - * Last changed in 3.8. - * - * @since 3.8.0. - */ -define( 'WC_PHP_MIN_REQUIREMENTS_NOTICE', 'wp_php_min_requirements_3_8' ); - /** * WC_Admin_Notices Class. */ diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index 1196ad6cf66..04835e0d0b6 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -231,6 +231,7 @@ final class WooCommerce { $this->define( 'WC_TEMPLATE_DEBUG_MODE', false ); $this->define( 'WC_NOTICE_MIN_PHP_VERSION', '7.0' ); $this->define( 'WC_NOTICE_MIN_WP_VERSION', '5.0' ); + $this->define( 'WC_PHP_MIN_REQUIREMENTS_NOTICE', 'wp_php_min_requirements_' . WC_NOTICE_MIN_PHP_VERSION . '_' . WC_NOTICE_MIN_WP_VERSION ); } /**