[wp-trac] [WordPress Trac] #30150: apply_filters( 'image_size_names_choose' ) should be provided a named context
WordPress Trac
noreply at wordpress.org
Sat Sep 3 16:22:50 UTC 2016
#30150: apply_filters( 'image_size_names_choose' ) should be provided a named
context
-----------------------------+-----------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Changes (by joemcgill):
* priority: low => normal
Comment:
Worth noting
[https://core.trac.wordpress.org/timeline?from=2016-09-03T16%3A05%3A15Z&precision=second
my comment] on #34981.
Are there contexts other than `wp_prepare_attachment_for_js()` where
filtering this value is needed? Perhaps we should either move the filter
out of `wp_prepare_attachment_for_js()` and into the views being built
from the size data returned by these AJAX requests, or allow a second
parameter to be passed to `wp_prepare_attachment_for_js()` which would
return all available sizes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30150#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list