[wp-trac] [WordPress Trac] #60524: Cropping site icon should preserve attachment properties

WordPress Trac noreply at wordpress.org
Tue Feb 13 13:42:05 UTC 2024


#60524: Cropping site icon should preserve attachment properties
--------------------------+------------------------------
 Reporter:  afercia       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility
--------------------------+------------------------------

Comment (by afercia):

 It's also important to note that some filters, for example
 `wp_ajax_cropped_attachment_id` ru only for the `default` case and aren't
 available for the `site-icona` case.

 Not sure that's ideal. I'd tend to think all the filters within
 `wp_ajax_crop_image` should be audited and made available for all cases,
 when that makes sense.
 At the very least, the documentation should clarify that these filters
 don't run for 'all' the cropped images.

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


More information about the wp-trac mailing list