Use wp_print_scripts() in install.php. Fixes issues with SCRIPT_DEBUG, removes l10n.js reference. fixes #18394.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31e6144688
commit
4e4932296f
|
@ -243,22 +243,6 @@ switch($step) {
|
|||
}
|
||||
?>
|
||||
<script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script>
|
||||
<script type="text/javascript" src="../wp-includes/js/jquery/jquery.js"></script>
|
||||
<script type="text/javascript" src="js/password-strength-meter.js"></script>
|
||||
<script type="text/javascript" src="js/user-profile.js"></script>
|
||||
<script type="text/javascript" src="../wp-includes/js/l10n.js"></script>
|
||||
<script type='text/javascript'>
|
||||
/* <![CDATA[ */
|
||||
var pwsL10n = {
|
||||
empty: "<?php echo esc_js( __( 'Strength indicator' ) ); ?>",
|
||||
short: "<?php echo esc_js( __( 'Very weak' ) ); ?>",
|
||||
bad: "<?php echo esc_js( __( 'Weak' ) ); ?>",
|
||||
good: "<?php echo esc_js( _x( 'Medium', 'password strength' ) ); ?>",
|
||||
strong: "<?php echo esc_js( __( 'Strong' ) ); ?>",
|
||||
mismatch: "<?php echo esc_js( __( 'Mismatch' ) ); ?>"
|
||||
};
|
||||
try{convertEntities(pwsL10n);}catch(e){};
|
||||
/* ]]> */
|
||||
</script>
|
||||
<?php wp_print_scripts( 'user-profile' ); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue