[wp-trac] [WordPress Trac] #21819: Use an image size for custom headers instead of duplicating an attachment

WordPress Trac noreply at wordpress.org
Wed Oct 4 14:58:09 UTC 2017


#21819: Use an image size for custom headers instead of duplicating an attachment
-------------------------------------------------+------------------------
 Reporter:  koopersmith                          |       Owner:  joemcgill
     Type:  enhancement                          |      Status:  assigned
 Priority:  high                                 |   Milestone:  4.9
Component:  Media                                |     Version:  3.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing 2nd-opinion  |     Focuses:
-------------------------------------------------+------------------------

Comment (by joemcgill):

 In [changeset:"41732"]:
 {{{
 #!CommitTicketReference repository="" revision="41732"
 Customizer: Minimize duplicate header crops in the media library.

 This adds `Custom_Image_Header::get_previous_crop()`, which finds any
 previously cropped headers created from the same base image and replaces
 that attachment rather than creating a new attachment.

 After updating a crop, the replaced images is also removed from the list
 of previous header images in the Customizer.

 See #21819.
 }}}

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


More information about the wp-trac mailing list