Changeset 58068
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r57046 r58068 212 212 * @see WP_Scripts::localize() 213 213 * @link https://core.trac.wordpress.org/ticket/11520 214 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts.215 214 * 216 215 * @since 2.2.0 … … 225 224 */ 226 225 function wp_localize_script( $handle, $object_name, $l10n ) { 227 global $wp_scripts; 228 229 if ( ! ( $wp_scripts instanceof WP_Scripts ) ) { 230 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle ); 231 return false; 232 } 226 $wp_scripts = wp_scripts(); 233 227 234 228 return $wp_scripts->localize( $handle, $object_name, $l10n );
Note: See TracChangeset
for help on using the changeset viewer.