Make WordPress Core


Ignore:
Timestamp:
12/01/2011 04:51:35 AM (14 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.wp-scripts.php

    r19218 r19528  
    8181 * @param string $handle The script handle that was registered or used in script-loader
    8282 * @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.
    8484 * @return bool Whether the localization was added successfully.
    8585 */
    86 function wp_localize_script( $handle, $object_name, $l10n ) { 
     86function wp_localize_script( $handle, $object_name, $l10n ) {
    8787    global $wp_scripts;
    8888    if ( ! is_a( $wp_scripts, 'WP_Scripts' ) ) {
     
    9494    }
    9595
    96     return $wp_scripts->localize( $handle, $object_name, $l10n ); 
    97 } 
     96    return $wp_scripts->localize( $handle, $object_name, $l10n );
     97}
    9898
    9999/**
Note: See TracChangeset for help on using the changeset viewer.