Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r12559 r16469  
    4040     * Prints the scripts passed to it or the print queue.  Also prints all necessary dependencies.
    4141     *
    42      * @param mixed handles (optional) Scripts to be printed.  (void) prints queue, (string) prints that script, (array of strings) prints those scripts.
    43      * @param int group (optional) If scripts were queued in groups prints this group number.
     42     * @param mixed $handles (optional) Scripts to be printed.  (void) prints queue, (string) prints that script, (array of strings) prints those scripts.
     43     * @param int $group (optional) If scripts were queued in groups prints this group number.
    4444     * @return array Scripts that have been printed
    4545     */
     
    136136     * Localizes only if script has already been added
    137137     *
    138      * @param string handle Script name
    139      * @param string object_name Name of JS object to hold l10n info
    140      * @param array l10n Array of JS var name => localized string
     138     * @param string $handle Script name
     139     * @param string $object_name Name of JS object to hold l10n info
     140     * @param array $l10n Array of JS var name => localized string
    141141     * @return bool Successful localization
    142142     */
     
    184184            return true;
    185185
     186        if ( 0 === strpos( $src, '/wp-includes/js/l10n' ) )
     187            return false;
     188
    186189        foreach ( (array) $this->default_dirs as $test ) {
    187190            if ( 0 === strpos($src, $test) )
Note: See TracChangeset for help on using the changeset viewer.