Changeset 19593 for trunk/wp-admin/custom-header.php
- Timestamp:
- 12/13/2011 11:45:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r19515 r19593 677 677 $image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file)); 678 678 if ( is_wp_error( $image ) ) 679 wp_die( __( 'Image could not be processed. 679 wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); 680 680 681 681 $image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication … … 738 738 $cropped = wp_crop_image( $attachment_id, (int) $_POST['x1'], (int) $_POST['y1'], (int) $_POST['width'], (int) $_POST['height'], HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT ); 739 739 if ( is_wp_error( $cropped ) ) 740 wp_die( __( 'Image could not be processed. 740 wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); 741 741 742 742 $cropped = apply_filters('wp_create_file_in_uploads', $cropped, $attachment_id); // For replication
Note: See TracChangeset
for help on using the changeset viewer.