Ticket #20625: 20625.diff
| File 20625.diff, 760 bytes (added by helenyhou, 13 months ago) |
|---|
-
wp-admin/media.php
59 59 $att = get_post($att_id); 60 60 61 61 if ( empty($att->ID) ) wp_die( __('You attempted to edit an attachment that doesn’t exist. Perhaps it was deleted?') ); 62 if ( 'attachment' !== $att->post_type ) wp_die( __('You attempted to edit an item that isn’t an attachment. Please go back and try again.') ); 62 63 if ( $att->post_status == 'trash' ) wp_die( __('You can’t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') ); 63 64 64 65 add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
