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:
parent
7dd30dce0a
commit
46ff132197
|
@ -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>
|
||||
<script>
|
||||
(function(){
|
||||
var el=document.getElementById('wp-config');
|
||||
el.focus();
|
||||
el.select();
|
||||
if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
|
||||
var el = document.getElementById('wp-config');
|
||||
el.focus();
|
||||
el.select();
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue