[wp-trac] [WordPress Trac] #18520: Allow addition of image sizes in Thickbox via filter

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 26 04:58:44 UTC 2011


#18520: Allow addition of image sizes in Thickbox via filter
-------------------------+-----------------------------
 Reporter:  alexkingorg  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  3.3
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 Plugins and themes can register new image sizes, but these don't appear in
 the media lightbox (#15668).

 The right thing to do might be to add a param to add_image_size() that
 tells it if the image size should be included in the media lightbox
 (because you definitely don't want to auto-add them all). However, this
 would be a rather invasive change which would alter the data in global
 $_wp_additional_image_sizes and may introduce bugs.

 Perhaps an easier approach is just to add a hook (patch attached).

 If there is consensus that an additional parameter to add_image_size() and
 automatically displaying those sizes in the media lightbox, I can put
 together a patch for that too.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18520>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list