Code Modernization: Simplify a conditional in `wp_is_ini_value_changeable()`.
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
This commit is contained in:
parent
11fb201256
commit
82ef77948a
|
@ -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'] )
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue