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:
Matt Mullenweg 2007-02-02 06:12:18 +00:00
parent ab76209618
commit 8143eac144
1 changed files with 1 additions and 0 deletions

View File

@ -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;