﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
18520,Allow addition of image sizes in Thickbox via filter,alexkingorg,azaozz,"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.",enhancement,closed,normal,3.3,Media,3.3,normal,fixed,has-patch,nacin
