Filter for tweaking scripts srcs that go through the script loader.
git-svn-id: https://develop.svn.wordpress.org/trunk@4861 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab76209618
commit
8143eac144
@ -79,6 +79,7 @@ class WP_Scripts {
|
||||
$ver .= '&' . $this->args[$handle];
|
||||
$src = 0 === strpos($this->scripts[$handle]->src, 'http://') ? $this->scripts[$handle]->src : get_option( 'siteurl' ) . $this->scripts[$handle]->src;
|
||||
$src = add_query_arg('ver', $ver, $src);
|
||||
$src = apply_filters( 'script_loader_src', $src );
|
||||
echo "<script type='text/javascript' src='$src'></script>\n";
|
||||
}
|
||||
$this->printed[] = $handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user