Changeset 37171 for trunk/src/wp-includes/class.wp-scripts.php
- Timestamp:
- 04/10/2016 03:32:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r36917 r37171 92 92 */ 93 93 public $print_html = ''; 94 95 /**96 * HTML to print before the script handle.97 *98 * @since 4.5.099 * @access public100 * @var string101 */102 public $print_html_before = '';103 94 104 95 /** … … 305 296 $srce = apply_filters( 'script_loader_src', $src, $handle ); 306 297 307 if ( $before_handle && ! $conditional ) { 308 $this->print_html_before .= $before_handle; 309 } 310 311 if ( $this->in_default_dir( $srce ) && ! $conditional && ! $after_handle ) { 298 if ( $this->in_default_dir( $srce ) && ( $before_handle || $after_handle ) ) { 299 $this->do_concat = false; 300 301 // Have to print the so-far concatenated scripts right away to maintain the right order. 302 _print_scripts(); 303 $this->reset(); 304 } elseif ( $this->in_default_dir( $srce ) && ! $conditional ) { 312 305 $this->print_code .= $this->print_extra_script( $handle, false ); 313 306 $this->concat .= "$handle,"; … … 364 357 365 358 if ( $this->do_concat ) { 366 if ( $after_handle ) { 367 $this->print_html_before .= $tag; 368 } else { 369 $this->print_html .= $tag; 370 } 359 $this->print_html .= $tag; 371 360 } else { 372 361 echo $tag; … … 593 582 $this->concat_version = ''; 594 583 $this->print_html = ''; 595 $this->print_html_before = '';596 584 $this->ext_version = ''; 597 585 $this->ext_handles = '';
Note: See TracChangeset
for help on using the changeset viewer.