Changeset 32596
- Timestamp:
- 05/25/2015 04:23:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r32483 r32596 83 83 } 84 84 85 return wp_scripts()->do_items( $handles );85 return $wp_scripts->do_items( $handles ); 86 86 } 87 87 … … 92 92 * 93 93 * @see WP_Dependencies::add(), WP_Dependencies::add_data() 94 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.95 94 * 96 95 * @since 2.6.0 … … 156 155 } 157 156 158 return wp_scripts()->localize( $handle, $object_name, $l10n );157 return $wp_scripts->localize( $handle, $object_name, $l10n ); 159 158 } 160 159 … … 166 165 * 167 166 * @see WP_Dependencies::remove() 168 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.169 167 * 170 168 * @since 2.6.0 … … 209 207 * 210 208 * @see WP_Dependencies::add(), WP_Dependencies::add_data(), WP_Dependencies::enqueue() 211 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.212 209 * 213 210 * @since 2.6.0 … … 247 244 * 248 245 * @see WP_Dependencies::dequeue() 249 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.250 246 * 251 247 * @since 3.1.0 … … 261 257 /** 262 258 * Check whether a script has been added to the queue. 263 *264 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.265 259 * 266 260 * @since 2.8.0 … … 296 290 */ 297 291 function wp_script_add_data( $handle, $key, $value ){ 298 global $wp_scripts; 299 return $wp_scripts->add_data( $handle, $key, $value ); 300 } 292 return wp_scripts()->add_data( $handle, $key, $value ); 293 }
Note: See TracChangeset
for help on using the changeset viewer.