[wp-trac] [WordPress Trac] #22911: new media dialog doesn't list custom image sizes

WordPress Trac noreply at wordpress.org
Thu Dec 13 10:59:45 UTC 2012


#22911: new media dialog doesn't list custom image sizes
--------------------------+------------------------------
 Reporter:  wdfee         |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.5
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+------------------------------
Changes (by wdfee):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 stop! got it working now. There have been a mistake in my code, it's
 easiest...

 {{{
 add_filter('image_size_names_choose', 'my_image_sizes', 11, 1);
 function my_image_sizes($sizes) {
         $new_sizes = array(
                 'my-size' => __( "My Size")
         );
         return array_merge( $sizes, $new_sizes );
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22911#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list