Make WordPress Core

Changeset 58683

Timestamp:
07/06/2024 03:05:37 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r58682 r58683  
    16801680    }
    16811681
    1682     // 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.
    16831682    if ( isset( $ini_all[ $setting ]['access'] )
    1684         && ( INI_ALL === ( $ini_all[ $setting ]['access'] & 7 ) || INI_USER === ( $ini_all[ $setting ]['access'] & 7 ) )
     1683        && ( INI_ALL === )
    16851684    ) {
    16861685        return true;
  • trunk/tests/phpunit/tests/load/wpIsIniValueChangeable.php

    r56971 r58683  
    4242        );
    4343
    44         if ( PHP_VERSION_ID > 70000 && extension_loaded( 'Tidy' ) ) {
     44        if ( extension_loaded( 'Tidy' ) ) {
    4545            $array[] = array( 'tidy.clean_output', true ); // PHP_INI_USER.
    4646        }
Note: See TracChangeset for help on using the changeset viewer.