[wp-trac] [WordPress Trac] #37458: Resource Hints: improve filtering
WordPress Trac
noreply at wordpress.org
Mon Jul 25 12:40:49 UTC 2016
#37458: Resource Hints: improve filtering
-------------------------+-----------------------------
Reporter: dimadin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
By looking at name and description of `wp_resource_hints` filter, one
would assume that it filters all resource hints, while it is in foreach
loop filtering only one relation type at the time. This means that unless
you want to always pass an empty array, you need to arguments and then
conditional.
I suggest that we change this before RC. There are a few ways to do,
attached is with moving filter with `wp_resource_hints` name before loop
and filtering all resource hints there, while making current filter name
dynamic, based on relation type currently used,
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37458>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list