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:
parent
fd82a98c2e
commit
c8f160b6d8
|
@ -265,6 +265,13 @@ switch($step) {
|
|||
?></textarea>
|
||||
<p><?php _e( 'After you’ve done that, click “Run the install.”' ); ?></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');
|
||||
|
|
Loading…
Reference in New Issue