Filter for tweaking scripts srcs that go through the script loader.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2007-02-02 06:12:18 +00:00
parent ce0f8b4a66
commit cd7c0164e9
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;