Changeset 31189 for trunk/src/wp-includes/class.wp-scripts.php
- Timestamp:
- 01/16/2015 01:10:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r31033 r31189 28 28 public $print_code = ''; 29 29 public $ext_handles = ''; 30 public $print_after_html = '';31 30 public $ext_version = ''; 32 31 public $default_dirs; … … 69 68 } 70 69 71 public function print_extra_script( $handle, $echo = true , $key = 'data') {72 if ( ! $output = $this->get_data( $handle, $key ) ) {70 public function print_extra_script( $handle, $echo = true ) { 71 if ( !$output = $this->get_data( $handle, 'data' ) ) 73 72 return; 74 } 75 76 if ( ! $echo ) { 73 74 if ( !$echo ) 77 75 return $output; 78 }79 76 80 77 echo "<script type='text/javascript'>\n"; // CDATA and type='text/javascript' is not needed for HTML 5 … … 121 118 if ( $this->in_default_dir($srce) ) { 122 119 $this->print_code .= $this->print_extra_script( $handle, false ); 123 $this->print_after_html .= "\n" . $this->print_extra_script( $handle, false, 'data-after' );124 120 $this->concat .= "$handle,"; 125 121 $this->concat_version .= "$handle$ver"; … … 160 156 if ( $this->do_concat ) { 161 157 $this->print_html .= $tag; 162 $this->print_after_html .= $this->print_extra_script( $handle, false, 'data-after' ) . "\n";163 158 } else { 164 159 echo $tag; 165 $this->print_extra_script( $handle, true, 'data-after' );166 160 } 167 161 … … 268 262 $this->concat_version = ''; 269 263 $this->print_html = ''; 270 $this->print_after_html = '';271 264 $this->ext_version = ''; 272 265 $this->ext_handles = '';
Note: See TracChangeset
for help on using the changeset viewer.