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

git-svn-id: http://core.svn.wordpress.org/trunk@21873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-16 19:41:41 +00:00
parent fd82a98c2e
commit c8f160b6d8
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');