From 513b517b5b8bef3eca03139037d2dbe5aae2bb30 Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Mon, 15 Jun 2020 21:51:03 +0530 Subject: [PATCH] Show notice to update to latest PHP if version is < 7.2 --- includes/class-woocommerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index 467b66b9b70..92f9d861db4 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -238,7 +238,7 @@ final class WooCommerce { $this->define( 'WC_LOG_DIR', $upload_dir['basedir'] . '/wc-logs/' ); $this->define( 'WC_SESSION_CACHE_GROUP', 'wc_session_id' ); $this->define( 'WC_TEMPLATE_DEBUG_MODE', false ); - $this->define( 'WC_NOTICE_MIN_PHP_VERSION', '7.0' ); + $this->define( 'WC_NOTICE_MIN_PHP_VERSION', '7.2' ); $this->define( 'WC_NOTICE_MIN_WP_VERSION', '5.2' ); $this->define( 'WC_PHP_MIN_REQUIREMENTS_NOTICE', 'wp_php_min_requirements_' . WC_NOTICE_MIN_PHP_VERSION . '_' . WC_NOTICE_MIN_WP_VERSION ); }