Changeset 43565 for trunk/src/wp-includes/class.wp-scripts.php
- Timestamp:
- 08/11/2018 05:41:29 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r43563 r43565 270 270 if ( $after_handle ) { 271 271 $after_handle = sprintf( "<script type='text/javascript'>\n%s\n</script>\n", $after_handle ); 272 } 273 274 if ( $before_handle || $after_handle ) { 275 $inline_script_tag = "{$cond_before}{$before_handle}{$after_handle}{$cond_after}"; 276 } else { 277 $inline_script_tag = ''; 272 278 } 273 279 … … 313 319 314 320 // A single item may alias a set of items, by having dependencies, but no source. 315 if ( ! $obj->src ) { 321 if ( ! $src ) { 322 if ( $inline_script_tag ) { 323 if ( $this->do_concat ) { 324 $this->print_html .= $inline_script_tag; 325 } else { 326 echo $inline_script_tag; 327 } 328 } 329 316 330 return true; 317 331 }
Note: See TracChangeset
for help on using the changeset viewer.