Opened 8 months ago
Last modified 6 days ago
#22100 new enhancement
Get rid of $_wp_additional_image_sizes — at Version 5
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | has-patch needs-refresh |
| Cc: | ocean90, mpretty@…, toni.viemero@…, georgemamadashvili@…, dromsey@…, justin@…, johnbillion, brad@…, anatol@… |
Description (last modified by scribu)
Goals:
- Have a solid API for working with intermediate image size definitions.
- Don't hardcode default image sizes; register them like any other.
- Introduce a 'pregenerate' arg, which will allow defining an image size that will not be automatically generated right after upload.
Change History (7)
- Summary changed from Introduce register_image_size() to Get rid of $_wp_additional_image_sizes
22100.2.diff makes add_image_size() accept an array of arguments, to avoid the hassle of deprecating it.
Note: See
TracTickets for help on using
tickets.

22100.diff is a first stab at register_image_size(), image_size_exists() etc.
TODO: generate the post-thumbnail size during set_post_thumbnail(), to avoid CPU spikes:
http://core.trac.wordpress.org/ticket/21961#comment:3