Make WordPress Core


Ignore:
Timestamp:
07/25/2011 12:36:06 AM (13 years ago)
Author:
azaozz
Message:

Use json_encode() for adding script data (formerly l10n). Add the same functionality to WP_Styles for adding inline css after a stylesheet has been outputted. See #11520

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r18254 r18464  
    26162616    return true;
    26172617}
     2618
     2619/**
     2620 * Localizes a script.
     2621 *
     2622 * Localizes only if script has already been added.
     2623 *
     2624 * @since r16
     2625 * @deprecated WP 3.3
     2626 * @see wp_add_script_data()
     2627 */
     2628function 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
Note: See TracChangeset for help on using the changeset viewer.