Use MIN_PHP and MIN_WP constants in PHP_MIN_REQUIREMENT value so that we don't have to change it everytime.

This commit is contained in:
vedanshujain 2019-10-15 16:03:58 +05:30
parent ec490409ea
commit 451139e68e
2 changed files with 1 additions and 8 deletions

View File

@ -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.
*/

View File

@ -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 );
}
/**