Changeset 52701
- Timestamp:
- 02/11/2022 03:48:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r52698 r52701 3266 3266 } 3267 3267 3268 $handle = fopen( $file, 'rb' ); 3269 if ( false === $handle ) { 3270 return false; 3271 } 3272 3273 $magic = fread( $handle, 12 ); 3268 $magic = file_get_contents( $file, false, null, 0, 12 ); 3269 3274 3270 if ( false === $magic ) { 3275 3271 return false; … … 3290 3286 $mime = 'image/webp'; 3291 3287 } 3292 3293 fclose( $handle );3294 3288 } catch ( Exception $e ) { 3295 3289 $mime = false;
Note: See TracChangeset
for help on using the changeset viewer.