- Timestamp:
- 02/02/2021 04:51:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-image-header.php
r49384 r50146 792 792 793 793 if ( file_exists( $file ) ) { 794 list( $width, $height, $type, $attr ) = @getimagesize( $file );794 list( $width, $height, $type, $attr ) = wp_getimagesize( $file ); 795 795 } else { 796 796 $data = wp_get_attachment_metadata( $attachment_id ); … … 1224 1224 $url = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url ); 1225 1225 1226 $size = @getimagesize( $cropped );1226 $size = wp_getimagesize( $cropped ); 1227 1227 $image_type = ( $size ) ? $size['mime'] : 'image/jpeg'; 1228 1228
Note: See TracChangeset
for help on using the changeset viewer.