Make WordPress Core


Ignore:
Timestamp:
07/10/2013 05:38:17 AM (11 years ago)
Author:
nacin
Message:

If someone tries to localize 'jquery', which is now an alias with jquery-core and jquery-migrate dependencies, add the data to jquery-core.

fixes #24197.

File:
1 edited

Legend:

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

    r21166 r24635  
    134134     */
    135135    function localize( $handle, $object_name, $l10n ) {
     136        if ( $handle === 'jquery' )
     137            $handle = 'jquery-core';
     138
    136139        if ( is_array($l10n) && isset($l10n['l10n_print_after']) ) { // back compat, preserve the code in 'l10n_print_after' if present
    137140            $after = $l10n['l10n_print_after'];
Note: See TracChangeset for help on using the changeset viewer.