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:
Andrew Ozz 2014-12-14 00:10:05 +00:00
parent 2fc1155920
commit 560a1ba478

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(){
if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
var el = document.getElementById('wp-config');
el.focus();
el.select();
}
})();
</script>
<?php