mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.
Props jrf. Fixes #48074. git-svn-id: https://develop.svn.wordpress.org/trunk@46214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1376,13 +1376,6 @@ final class WP_Customize_Manager {
|
||||
)
|
||||
);
|
||||
|
||||
// In PHP < 5.6 filesize() returns 0 for the temp files unless we clear the file status cache.
|
||||
// Technically, PHP < 5.6.0 || < 5.5.13 || < 5.4.29 but no need to be so targeted.
|
||||
// See https://bugs.php.net/bug.php?id=65701
|
||||
if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
|
||||
clearstatcache();
|
||||
}
|
||||
|
||||
$attachment_id = media_handle_sideload( $file_array, 0, null, $attachment_post_data );
|
||||
if ( is_wp_error( $attachment_id ) ) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user