diff --git a/src/wp-includes/class.wp-scripts.php b/src/wp-includes/class.wp-scripts.php
index f63517f7e1..aa4935da6b 100644
|
a
|
b
|
class WP_Scripts extends WP_Dependencies { |
| 311 | 311 | $inline_script_tag = ''; |
| 312 | 312 | } |
| 313 | 313 | |
| | 314 | $translations = $this->print_translations( $handle, false ); |
| | 315 | if ( $translations ) { |
| | 316 | $translations = sprintf( "<script%s id='%s-js-translations'>\n%s\n</script>\n", $this->type_attr, esc_attr( $handle ), $translations ); |
| | 317 | } |
| | 318 | |
| 314 | 319 | if ( $this->do_concat ) { |
| 315 | 320 | /** |
| 316 | 321 | * Filters the script loader source. |
| … |
… |
class WP_Scripts extends WP_Dependencies { |
| 322 | 327 | */ |
| 323 | 328 | $srce = apply_filters( 'script_loader_src', $src, $handle ); |
| 324 | 329 | |
| 325 | | if ( $this->in_default_dir( $srce ) && ( $before_handle || $after_handle ) ) { |
| | 330 | if ( $this->in_default_dir( $srce ) && ( $before_handle || $after_handle || $translations ) ) { |
| 326 | 331 | $this->do_concat = false; |
| 327 | 332 | |
| 328 | 333 | // Have to print the so-far concatenated scripts right away to maintain the right order. |
| … |
… |
class WP_Scripts extends WP_Dependencies { |
| 364 | 369 | return true; |
| 365 | 370 | } |
| 366 | 371 | |
| 367 | | $translations = $this->print_translations( $handle, false ); |
| 368 | | if ( $translations ) { |
| 369 | | $translations = sprintf( "<script%s id='%s-js-translations'>\n%s\n</script>\n", $this->type_attr, esc_attr( $handle ), $translations ); |
| 370 | | } |
| 371 | | |
| 372 | 372 | if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && 0 === strpos( $src, $this->content_url ) ) ) { |
| 373 | 373 | $src = $this->base_url . $src; |
| 374 | 374 | } |