diff --git src/wp-includes/class.wp-scripts.php src/wp-includes/class.wp-scripts.php
index 6f8e4f9a8c..8135a4bb88 100644
|
|
|
class WP_Scripts extends WP_Dependencies { |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | if ( $this->do_concat ) { |
| 281 | | /** |
| 282 | | * Filters the script loader source. |
| 283 | | * |
| 284 | | * @since 2.2.0 |
| 285 | | * |
| 286 | | * @param string $src Script loader source path. |
| 287 | | * @param string $handle Script handle. |
| 288 | | */ |
| 289 | | $srce = apply_filters( 'script_loader_src', $src, $handle ); |
| 290 | | |
| 291 | | if ( $this->in_default_dir( $srce ) && ( $before_handle || $after_handle ) ) { |
| | 281 | if ( $this->in_default_dir( $src ) && ( $before_handle || $after_handle ) ) { |
| 292 | 282 | $this->do_concat = false; |
| 293 | 283 | |
| 294 | 284 | // Have to print the so-far concatenated scripts right away to maintain the right order. |
| 295 | 285 | _print_scripts(); |
| 296 | 286 | $this->reset(); |
| 297 | | } elseif ( $this->in_default_dir( $srce ) && ! $conditional ) { |
| | 287 | } elseif ( $this->in_default_dir( $src ) && ! $conditional ) { |
| 298 | 288 | $this->print_code .= $this->print_extra_script( $handle, false ); |
| 299 | 289 | $this->concat .= "$handle,"; |
| 300 | 290 | $this->concat_version .= "$handle$ver"; |
| … |
… |
class WP_Scripts extends WP_Dependencies { |
| 338 | 328 | $src = add_query_arg( 'ver', $ver, $src ); |
| 339 | 329 | } |
| 340 | 330 | |
| 341 | | /** This filter is documented in wp-includes/class.wp-scripts.php */ |
| | 331 | /** |
| | 332 | * Filters an enqueued script's fully-qualified URL. |
| | 333 | * |
| | 334 | * @since 2.2.0 |
| | 335 | * |
| | 336 | * @param string $src The source URL of the enqueued script. |
| | 337 | * @param string $handle The script's registered handle. |
| | 338 | */ |
| 342 | 339 | $src = esc_url( apply_filters( 'script_loader_src', $src, $handle ) ); |
| 343 | 340 | |
| 344 | 341 | if ( ! $src ) { |