Opened 8 months ago

Last modified 6 days ago

#22100 new enhancement

Get rid of $_wp_additional_image_sizes — at Version 5

Reported by: scribu 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:

  1. Have a solid API for working with intermediate image size definitions.
  1. Don't hardcode default image sizes; register them like any other.
  1. Introduce a 'pregenerate' arg, which will allow defining an image size that will not be automatically generated right after upload.

Related tickets: #15311, #21810

Change History (7)

scribu8 months ago

  • Keywords has-patch added

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

  • Summary changed from Introduce register_image_size() to Get rid of $_wp_additional_image_sizes
  • Cc ocean90 added

scribu8 months ago

22100.2.diff makes add_image_size() accept an array of arguments, to avoid the hassle of deprecating it.

  • Description modified (diff)
Note: See TracTickets for help on using tickets.