[wp-trac] [WordPress Trac] #13592: script_loader_src and style_loader_tag filters
WordPress Trac
noreply at wordpress.org
Thu Nov 6 16:47:55 UTC 2014
#13592: script_loader_src and style_loader_tag filters
---------------------------+------------------
Reporter: olivM | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.1
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------
Comment (by ocean90):
For `style_loader_tag` we have this:
{{{
apply_filters(
'style_loader_tag',
"<link rel='$rel' id='$handle-css' $title href='$href'
type='text/css' media='$media' />\n",
$handle
);
}}}
So you can filter the entire HTML link tag. But [attachment:13592.4.diff]
allows only to filter the script part without the src. That looks
confusing to me.
We should either filter the entire HTML script tag or rename the filter to
something else.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13592#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list