[wp-trac] [WordPress Trac] #34981: Usage of `image_size_names_choose` breaks JS attachment model attributes

WordPress Trac noreply at wordpress.org
Thu Oct 6 15:40:13 UTC 2016


#34981: Usage of `image_size_names_choose` breaks JS attachment model attributes
-------------------------------------+--------------------
 Reporter:  dnaber-de                |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.7
Component:  Media                    |     Version:  4.3.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------

Comment (by helen):

 Seems like this needs some cursory research on what people are doing in
 the wild with `image_size_names_choose` and what other filters people use
 or could use to add/remove image sizes. If people are using this filter
 and actually counting on it removing those sizes from the attachment model
 then we should know that first. In a vacuum, it seems like it shouldn't
 apply to `wp_prepare_attachment_for_js()` at all.

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


More information about the wp-trac mailing list