From 82ef77948a138211ce96e346ab8db5aa16b5c0e9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 6 Jul 2024 15:07:08 +0000 Subject: [PATCH] Code Modernization: Simplify a conditional in `wp_is_ini_value_changeable()`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit reverts the code to the code from before the bug fix related to PHP 5.2.6–5.2.17. As support for PHP 5.2 has been dropped, the workaround for the PHP 5.2 bug is no longer needed. Follow-up to [38015], [38017], [44950], [45058], [57985], [58678], [58682]. Props jrf, ayeshrajans. See #61574. Built from https://develop.svn.wordpress.org/trunk@58683 git-svn-id: http://core.svn.wordpress.org/trunk@58085 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index e22bfb8c35..b0b8209235 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -1679,9 +1679,8 @@ function wp_is_ini_value_changeable( $setting ) { } } - // Bit operator to workaround https://bugs.php.net/bug.php?id=44936 which changes access level to 63 in PHP 5.2.6 - 5.2.17. if ( isset( $ini_all[ $setting ]['access'] ) - && ( INI_ALL === ( $ini_all[ $setting ]['access'] & 7 ) || INI_USER === ( $ini_all[ $setting ]['access'] & 7 ) ) + && ( INI_ALL === $ini_all[ $setting ]['access'] || INI_USER === $ini_all[ $setting ]['access'] ) ) { return true; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 001c7a54ff..4bcce31037 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58682'; +$wp_version = '6.7-alpha-58683'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.