Changeset 48798 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 08/16/2020 01:31:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r48695 r48798 3197 3197 * 3198 3198 * @param string $file Filename of the image to load. 3199 * @return resource The resulting image resource on success, Error string on failure. 3199 * @return resource|GdImage|string The resulting image resource or GdImage instance on success, 3200 * error string on failure. 3200 3201 */ 3201 3202 function wp_load_image( $file ) { … … 3218 3219 $image = imagecreatefromstring( file_get_contents( $file ) ); 3219 3220 3220 if ( ! is_ resource( $image ) ) {3221 if ( ! is_gd_image( $image ) ) { 3221 3222 /* translators: %s: File name. */ 3222 3223 return sprintf( __( 'File “%s” is not an image.' ), $file );
Note: See TracChangeset
for help on using the changeset viewer.