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:
parent
07ff0e30ed
commit
ac33e3e810
@ -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
Block a user