[wp-trac] [WordPress Trac] #11895: Allow more specific image size editing

WordPress Trac noreply at wordpress.org
Sun Feb 22 21:08:17 UTC 2015


#11895: Allow more specific image size editing
------------------------------------------------+--------------------------
 Reporter:  frankgroeneveld                     |       Owner:
     Type:  feature request                     |      Status:  new
 Priority:  normal                              |   Milestone:  Future
Component:  Media                               |  Release
 Severity:  normal                              |     Version:
 Keywords:  has-patch dev-feedback ui-feedback  |  Resolution:
                                                |     Focuses:  ui
------------------------------------------------+--------------------------

Comment (by bradt):

 Oh, also you may find this handy for testing. Adds a meta box to
 attachment pages with some nicely formatted attachment meta data.

 {{{

 add_action( 'add_meta_boxes_attachment', function() {
         add_meta_box( 'attach-debug', 'Attachment Debugging', function(
 $post, $metabox ) {
                 echo '<pre>';
                 print_r( array(
                         '_wp_attached_file' => get_post_meta( $post->ID,
 '_wp_attached_file', true ),
                         '_wp_attachment_metadata' => get_post_meta(
 $post->ID, '_wp_attachment_metadata', true ),
                         '_wp_attachment_backup_sizes' => get_post_meta(
 $post->ID, '_wp_attachment_backup_sizes', true ),
                 ) );
                 echo '</pre>';
         } );
 } );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/11895#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list