Ticket #13592: 13592.3.diff
File 13592.3.diff, 940 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/class.wp-scripts.php
138 138 if ( ! $src ) 139 139 return true; 140 140 141 if ( $this->do_concat ) 142 $this->print_html .= "<script type='text/javascript' src='$src'></script>\n"; 143 else 144 echo "<script type='text/javascript' src='$src'></script>\n"; 141 $script_tag = "<script type='text/javascript' src='$src'></script>\n"; 145 142 143 if ( $this->do_concat ) { 144 /** 145 * Filter the script tag. 146 * 147 * @since 4.1.0 148 * 149 * @param string $script_tag Script tag. 150 * @param string $handle Script handle. 151 */ 152 $this->print_html .= apply_filters( 'script_loader_tag', $script_tag, $handle ); 153 } else { 154 echo apply_filters( 'script_loader_tag', $script_tag, $handle ); 155 } 156 146 157 return true; 147 158 } 148 159