Make script src valid. Props Nazgul. #2857

git-svn-id: http://svn.automattic.com/wordpress/trunk@3930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-06-27 06:42:01 +00:00
parent db0b40736a
commit 01ed3b30f4
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class WP_Scripts {
if ( !in_array($handle, $this->printed) && isset($this->scripts[$handle]) ) {
$ver = $this->scripts[$handle]->ver ? $this->scripts[$handle]->ver : $wp_db_version;
if ( isset($this->args[$handle]) )
$ver .= '&' . $this->args[$handle];
$ver .= '&' . $this->args[$handle];
$src = 0 === strpos($this->scripts[$handle]->src, 'http://') ? $this->scripts[$handle]->src : get_settings( 'siteurl' ) . $this->scripts[$handle]->src;
echo "<script type='text/javascript' src='$src?ver=$ver'></script>\n";
$this->printed[] = $handle;