| 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 | if ( $this->do_concat ) { |
| | 142 | /** |
| | 143 | * Filter the script tag. |
| | 144 | * |
| | 145 | * @since 4.1.0 |
| | 146 | * |
| | 147 | * @param string Script tag. |
| | 148 | */ |
| | 149 | $this->print_html .= apply_filters( 'script_loader_tag', "<script type='text/javascript' src='$src'></script>\n", $handle ); |
| | 150 | } else { |
| | 151 | echo apply_filters( 'script_loader_tag', "<script type='text/javascript' src='$src'></script>\n", $handle ); |
| | 152 | } |