On setup-config step 2, default to focusing on the textarea and selecting its contents. fixes #21656.

git-svn-id: https://develop.svn.wordpress.org/trunk@21873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-09-16 19:41:41 +00:00
parent 07ff0e30ed
commit ac33e3e810
1 changed files with 7 additions and 0 deletions

View File

@ -265,6 +265,13 @@ switch($step) {
?></textarea>
<p><?php _e( 'After you&#8217;ve done that, click &#8220;Run the install.&#8221;' ); ?></p>
<p class="step"><a href="install.php" class="button"><?php _e( 'Run the install' ); ?></a></p>
<script>
(function(){
var el=document.getElementById('wp-config');
el.focus();
el.select();
})();
</script>
<?php
else :
$handle = fopen(ABSPATH . 'wp-config.php', 'w');