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

See #30703.
Built from https://develop.svn.wordpress.org/trunk@30843


git-svn-id: http://core.svn.wordpress.org/trunk@30833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-12-14 00:11:24 +00:00
parent 7cc113ab66
commit 983a743c33
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>
<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