Make WordPress Core

Changeset 30909


Ignore:
Timestamp:
12/16/2014 03:52:52 PM (9 years ago)
Author:
johnbillion
Message:

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.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-admin/setup-config.php

    r29705 r30909  
    309309<script>
    310310(function(){
    311 var el=document.getElementById('wp-config');
    312 el.focus();
    313 el.select();
     311if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
     312    var el = document.getElementById('wp-config');
     313    el.focus();
     314    el.select();
     315}
    314316})();
    315317</script>
Note: See TracChangeset for help on using the changeset viewer.