WordPress.org

Make WordPress Core

Changeset 18544


Ignore:
Timestamp:
08/13/11 18:01:26 (4 years ago)
Author:
nacin
Message:

Use wp_print_scripts() in install.php. Fixes issues with SCRIPT_DEBUG, removes l10n.js reference. fixes #18394.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r18460 r18544  
    244244?> 
    245245<script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script> 
    246 <script type="text/javascript" src="../wp-includes/js/jquery/jquery.js"></script> 
    247 <script type="text/javascript" src="js/password-strength-meter.js"></script> 
    248 <script type="text/javascript" src="js/user-profile.js"></script> 
    249 <script type="text/javascript" src="../wp-includes/js/l10n.js"></script> 
    250 <script type='text/javascript'> 
    251 /* <![CDATA[ */ 
    252 var pwsL10n = { 
    253  empty: "<?php echo esc_js( __( 'Strength indicator' ) ); ?>", 
    254  short: "<?php echo esc_js( __( 'Very weak' ) ); ?>", 
    255  bad: "<?php echo esc_js( __( 'Weak' ) ); ?>", 
    256  good: "<?php echo esc_js( _x( 'Medium', 'password strength' ) ); ?>", 
    257  strong: "<?php echo esc_js( __( 'Strong' ) ); ?>", 
    258  mismatch: "<?php echo esc_js( __( 'Mismatch' ) ); ?>" 
    259 }; 
    260 try{convertEntities(pwsL10n);}catch(e){}; 
    261 /* ]]> */ 
    262 </script> 
     246<?php wp_print_scripts( 'user-profile' ); ?> 
    263247</body> 
    264248</html> 
Note: See TracChangeset for help on using the changeset viewer.