Changeset 18490
- Timestamp:
- 07/31/2011 09:11:24 AM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r18464 r18490 2617 2617 } 2618 2618 2619 /**2620 * Localizes a script.2621 *2622 * Localizes only if script has already been added.2623 *2624 * @since r162625 * @deprecated WP 3.32626 * @see wp_add_script_data()2627 */2628 function wp_localize_script( $handle, $object_name, $l10n ) {2629 _deprecated_function( __FUNCTION__, '3.3', 'wp_add_script_data()' );2630 return wp_add_script_data( $handle, $object_name, $l10n );2631 }2632 -
trunk/wp-includes/functions.wp-scripts.php
r18480 r18490 57 57 58 58 /** 59 * Adds extra Javascript .59 * Adds extra Javascript data. 60 60 * 61 61 * Works only if the script has already been added. … … 69 69 * The $data array is JSON encoded. If called more than once for the same $handle with the same $name, 70 70 * the object would contain all values. In that case if two or more keys are the same, 71 * the last value overwrites the previous. 71 * the last value overwrites the previous. The function is named "localize_script" because of historical reasons. 72 72 * 73 * @since 3.373 * @since r16 74 74 * @see WP_Scripts::add_script_data() 75 75 */ 76 function wp_ add_script_data( $handle, $name, $data ) {76 function wp_localize_script( $handle, $name, $data ) { 77 77 global $wp_scripts; 78 78 if ( !is_a($wp_scripts, 'WP_Scripts') )
Note: See TracChangeset
for help on using the changeset viewer.