mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
If the script_loader_src filter returns nothing, bail instead of printing <script src="">.
props niallkennedy. fixes #22470. git-svn-id: https://develop.svn.wordpress.org/trunk@25465 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b307e1a23f
commit
42260988ba
@ -119,6 +119,9 @@ class WP_Scripts extends WP_Dependencies {
|
||||
|
||||
$src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) );
|
||||
|
||||
if ( ! $src )
|
||||
return true;
|
||||
|
||||
if ( $this->do_concat )
|
||||
$this->print_html .= "<script type='text/javascript' src='$src'></script>\n";
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user