[wp-trac] [WordPress Trac] #28277: Add ability to apply image edits to custom image sizes

WordPress Trac noreply at wordpress.org
Wed Apr 6 23:15:49 UTC 2022


#28277: Add ability to apply image edits to custom image sizes
-------------------------------------+-----------------------------
 Reporter:  silb3r                   |       Owner:  joedolson
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.0
Component:  Media                    |     Version:  4.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  administration
-------------------------------------+-----------------------------

Comment (by joedolson):

 Updated patch fixes some issues with inappropriate use of translation
 functions, adds escaping, and updates the patch.

 The original patch required a user to return an array of image sizes to
 use in custom size editing; I changed that so a value of 'true' can return
 the value of `get_intermediate_image_sizes()`, though it can be overridden
 to customize the values.

 Not requiring a custom array does mean that we don't have any custom
 labels for the sizes, which was a benefit to passing a custom array; but
 also makes it harder to turn on.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28277#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list