Changeset 38343
- Timestamp:
- 08/23/2016 11:35:15 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r38015 r38343 3170 3170 $file = get_attached_file( $file ); 3171 3171 3172 if ( ! is_file( $file ) ) 3173 return sprintf(__('File “%s” doesn’t exist?'), $file); 3172 if ( ! is_file( $file ) ) { 3173 /* translators: %s: file name */ 3174 return sprintf( __( 'File “%s” doesn’t exist?' ), $file ); 3175 } 3174 3176 3175 3177 if ( ! function_exists('imagecreatefromstring') ) … … 3181 3183 $image = imagecreatefromstring( file_get_contents( $file ) ); 3182 3184 3183 if ( !is_resource( $image ) ) 3184 return sprintf(__('File “%s” is not an image.'), $file); 3185 if ( ! is_resource( $image ) ) { 3186 /* translators: %s: file name */ 3187 return sprintf( __( 'File “%s” is not an image.' ), $file ); 3188 } 3185 3189 3186 3190 return $image;
Note: See TracChangeset
for help on using the changeset viewer.