Changeset 58078 for branches/6.5
- Timestamp:
- 05/02/2024 03:04:04 PM (9 months ago)
- Location:
- branches/6.5
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/6.5
-
branches/6.5/src/wp-includes/functions.wp-scripts.php
r57046 r58078 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.