- File:
-
- 1 edited
-
trunk/wp-includes/class.wp-scripts.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class.wp-scripts.php
r19573 r20000 32 32 33 33 function __construct() { 34 if ( ! function_exists( 'did_action' ) || did_action( 'init' ) ) 35 $this->init(); 36 else 37 add_action( 'init', array( $this, 'init' ), 0 ); 38 } 39 40 function init() { 34 41 do_action_ref_array( 'wp_default_scripts', array(&$this) ); 35 42 } … … 38 45 * Prints scripts 39 46 * 40 * Prints the scripts passed to it or the print queue. Also prints all necessary dependencies.47 * Prints the scripts passed to it or the print queue. Also prints all necessary dependencies. 41 48 * 42 * @param mixed $handles (optional) Scripts to be printed. (void) prints queue, (string) prints that script, (array of strings) prints those scripts.49 * @param mixed $handles (optional) Scripts to be printed. (void) prints queue, (string) prints that script, (array of strings) prints those scripts. 43 50 * @param int $group (optional) If scripts were queued in groups prints this group number. 44 51 * @return array Scripts that have been printed … … 144 151 145 152 if ( !empty($after) ) 146 $script .= "\n$after ";153 $script .= "\n$after;"; 147 154 148 155 $data = $this->get_data( $handle, 'data' ); 149 156 150 157 if ( !empty( $data ) ) 151 $script = "$data ;\n$script";158 $script = "$data\n$script"; 152 159 153 160 return $this->add_data( $handle, 'data', $script );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)