iOS: do not autofocus the readonly textarea with the code for wp-config.php in setup-config.php.

Merges [30843] to the 4.1 branch.

Fixes #30703.

Built from https://develop.svn.wordpress.org/branches/4.1@30909


git-svn-id: http://core.svn.wordpress.org/branches/4.1@30899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2014-12-16 15:53:21 +00:00
parent 7dd30dce0a
commit 46ff132197
1 changed files with 5 additions and 3 deletions

View File

@ -308,9 +308,11 @@ switch($step) {
<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p> <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p>
<script> <script>
(function(){ (function(){
var el=document.getElementById('wp-config'); if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
el.focus(); var el = document.getElementById('wp-config');
el.select(); el.focus();
el.select();
}
})(); })();
</script> </script>
<?php <?php