WordPress.org

Make WordPress Core

Ticket #24197: 24197.diff

File 24197.diff, 622 bytes (added by nacin, 12 months ago)
  • wp-includes/class.wp-scripts.php

     
    133133         * Localizes only if the script has already been added 
    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']; 
    138141                        unset($l10n['l10n_print_after']);