Changeset 19528 for trunk/wp-includes/functions.wp-scripts.php
- Timestamp:
- 12/01/2011 04:51:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.wp-scripts.php
r19218 r19528 81 81 * @param string $handle The script handle that was registered or used in script-loader 82 82 * @param string $object_name Name for the created JS object. This is passed directly so it should be qualified JS variable /[a-zA-Z0-9_]+/ 83 * @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded. 83 * @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded. 84 84 * @return bool Whether the localization was added successfully. 85 85 */ 86 function wp_localize_script( $handle, $object_name, $l10n ) { 86 function wp_localize_script( $handle, $object_name, $l10n ) { 87 87 global $wp_scripts; 88 88 if ( ! is_a( $wp_scripts, 'WP_Scripts' ) ) { … … 94 94 } 95 95 96 return $wp_scripts->localize( $handle, $object_name, $l10n ); 97 } 96 return $wp_scripts->localize( $handle, $object_name, $l10n ); 97 } 98 98 99 99 /**
Note: See TracChangeset
for help on using the changeset viewer.