Make WordPress Core


Ignore:
Timestamp:
11/10/2010 09:53:30 PM (14 years ago)
Author:
westi
Message:

Move the l10n helper function into a seperate js file so we can always output it first.
Fixes #15124.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r16274 r16282  
    5959    $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
    6060
    61     $scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20090102' );
     61    // Always ensure that we have the convertEntities function
     62    $scripts->add( 'l10n', "/wp-includes/js/l10n$suffix.js", false, '20101110' );
     63    $scripts->enqueue( 'l10n' );
     64   
     65    $scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
    6266
    6367    $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20101007' );
     
    623627
    624628    script_concat_settings();
     629    $wp_scripts->do_item( 'l10n' );
    625630    $wp_scripts->do_concat = $concatenate_scripts;
    626631    $wp_scripts->do_head_items();
Note: See TracChangeset for help on using the changeset viewer.