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:
parent
ec490409ea
commit
451139e68e
|
@ -8,14 +8,6 @@
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
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.
|
* WC_Admin_Notices Class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -231,6 +231,7 @@ final class WooCommerce {
|
||||||
$this->define( 'WC_TEMPLATE_DEBUG_MODE', false );
|
$this->define( 'WC_TEMPLATE_DEBUG_MODE', false );
|
||||||
$this->define( 'WC_NOTICE_MIN_PHP_VERSION', '7.0' );
|
$this->define( 'WC_NOTICE_MIN_PHP_VERSION', '7.0' );
|
||||||
$this->define( 'WC_NOTICE_MIN_WP_VERSION', '5.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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue