Make WordPress Core


Ignore:
Timestamp:
09/20/2019 10:01:36 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.

Props jrf.
Fixes #48074.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r46206 r46214  
    13761376                        )
    13771377                    );
    1378 
    1379                     // In PHP < 5.6 filesize() returns 0 for the temp files unless we clear the file status cache.
    1380                     // Technically, PHP < 5.6.0 || < 5.5.13 || < 5.4.29 but no need to be so targeted.
    1381                     // See https://bugs.php.net/bug.php?id=65701
    1382                     if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
    1383                         clearstatcache();
    1384                     }
    13851378
    13861379                    $attachment_id = media_handle_sideload( $file_array, 0, null, $attachment_post_data );
Note: See TracChangeset for help on using the changeset viewer.