[wp-trac] [WordPress Trac] #30150: apply_filters( 'image_size_names_choose' ) should be provided a named context

WordPress Trac noreply at wordpress.org
Mon Dec 1 12:23:16 UTC 2014


#30150: apply_filters( 'image_size_names_choose' ) should be provided a named
context
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  low              |   Milestone:  Future Release
Component:  Media            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Note that the filter is used three times in the
 `wp_print_media_templates()` function.

 An explicit context would probably work better than `__FUNCTION__`, e.g.
 `custom-background`, `attachment-display-settings`, `gallery-settings`,
 `image-details`, etc.

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


More information about the wp-trac mailing list