From 88b1aac561ba3dbc1b14ac699ab8d26a0ed9097a Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 18 Jul 2024 12:52:25 +0200 Subject: [PATCH 1/2] Increase the default minimum PHP version to 7.2 The latest WordPress 6.6 release dropped support for PHP 7.0 and 7.1, making 7.2 the minimum supported version. See the announcement post: https://make.wordpress.org/core/2024/04/08/dropping-support-for-php-7-1/ --- source/wp-content/themes/wporg-main-2022/inc/shortcodes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php b/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php index 3a6d1740..964e6e55 100644 --- a/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php +++ b/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php @@ -37,7 +37,7 @@ function() { add_shortcode( 'minimum_php', function() { - return defined( 'MINIMUM_PHP' ) ? MINIMUM_PHP : '7.0'; + return defined( 'MINIMUM_PHP' ) ? MINIMUM_PHP : '7.2'; } ); From 1f89f988701cefcbe69dcef1332796ab3096fcc0 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 31 Jul 2024 12:19:09 +1000 Subject: [PATCH 2/2] Update to PHP 7.2.24 as the minimum. --- source/wp-content/themes/wporg-main-2022/inc/shortcodes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php b/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php index 964e6e55..4b0eff23 100644 --- a/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php +++ b/source/wp-content/themes/wporg-main-2022/inc/shortcodes.php @@ -37,7 +37,7 @@ function() { add_shortcode( 'minimum_php', function() { - return defined( 'MINIMUM_PHP' ) ? MINIMUM_PHP : '7.2'; + return defined( 'MINIMUM_PHP' ) ? MINIMUM_PHP : '7.2.24'; } );