[wp-trac] [WordPress Trac] #22100: Get rid of $_wp_additional_image_sizes

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 10 20:57:23 UTC 2012


#22100: Get rid of $_wp_additional_image_sizes
-------------------------+------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.5
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by scribu):

 So, there's 3 kinds of behaviours:

 1) Always generate size, immediately after upload

 This is what the 'pregenerate' flag currently enables.

 2) Generate file after a certain condition is met, but before it will be
 actually needed on the front-end.

 This is what needs to be implemented for 'post-thumbnail', during
 set_post_thumbnail().

 Doing the generation via AJAX seems like overhead, but it might actually
 make sense in some cases.

 3) Generate file right before it's needed. See #15311.

 Anyway, for 3.5, we'll probably just continue to always pre-generate post
 thumbnails and get rid of the 'pregenerate' flag for now, since I'm not
 exactly happy with the name and the use-case isn't obvious either.

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


More information about the wp-trac mailing list