Last active
August 29, 2015 14:08
-
-
Save spacedmonkey/c45dc6c4ede0d4b96119 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$script_tag = "<script type='text/javascript' src='%s'></script>\n"; | |
/** | |
* Filter the script tag. | |
* | |
* @since 4.1.0 | |
* | |
* @param string $script_tag Script tag. | |
* @param string $src Source of script. | |
* @param string $handle Script handle. | |
* @param boolean $concat Is concat | |
*/ | |
$script_tag = apply_filters( 'script_loader_tag', $script_tag, $src, $handle, $this->do_concat ); | |
$script = sprintf($script_tag, $src); | |
if ( $this->do_concat ) { | |
$this->print_html .= $script; | |
} else { | |
echo $script; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment