Changeset 52718 for trunk/src/wp-includes/media.php
- Timestamp:
- 02/12/2022 01:12:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r52717 r52718 5236 5236 } 5237 5237 5238 $ handle = fopen( $filename, 'rb');5239 5240 if ( false === $ handle) {5238 $magic = file_get_contents( $filename, false, null, 0, 40 ); 5239 5240 if ( false === $magic ) { 5241 5241 return compact( 'width', 'height', 'type' ); 5242 5242 } 5243 5244 $magic = fread( $handle, 40 );5245 fclose( $handle );5246 5243 5247 5244 // Make sure we got enough bytes.
Note: See TracChangeset
for help on using the changeset viewer.