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>
|
<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
|
||||||
|
Loading…
Reference in New Issue
Block a user