[wp-trac] [WordPress Trac] #19990: Separate ID and display name for add_image_size
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 8 17:24:49 UTC 2012
#19990: Separate ID and display name for add_image_size
-------------------------+------------------------------
Reporter: GaryJ | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Changes (by GaryJ):
* keywords: => has-patch
Comment:
[attachment:19990.diff] is a first pass at a solution. It should all be
backwards compatible. Further improvements might be to change the `$name`
to `$id` to help self-document the code a little better.
Obviously if a solution along these lines did go in, then it might be nice
to make the default image sizes have a display name value too (post
thumbnail registration, couple of calls in TwentyEleven, default image
sizes).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19990#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list