Skip to content

Commit dfc4fed

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/branches/4.1@30909 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b94e8dc commit dfc4fed

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/wp-admin/setup-config.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,11 @@ function setup_config_display_header( $body_classes = array() ) {
308308
<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p>
309309
<script>
310310
(function(){
311-
var el=document.getElementById('wp-config');
312-
el.focus();
313-
el.select();
311+
if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
312+
var el = document.getElementById('wp-config');
313+
el.focus();
314+
el.select();
315+
}
314316
})();
315317
</script>
316318
<?php

0 commit comments

Comments
 (0)