iOS: do not autofocus the readonly textarea with the code for wp-config.php in setup-config.php.
See #30703. git-svn-id: https://develop.svn.wordpress.org/trunk@30843 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2fc1155920
commit
560a1ba478
@ -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
Block a user