Make WordPress Core

Changeset 33082


Ignore:
Timestamp:
07/04/2015 04:39:48 AM (9 years ago)
Author:
jeremyfelt
Message:

Don't autocapitalize or autocorrect domain or path when adding a new site in iOS.

Props @ohryan.
Fixes #32646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r32974 r33082  
    144144            <td>
    145145            <?php if ( is_subdomain_install() ) { ?>
    146                 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
     146                <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
    147147            <?php } else {
    148                 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" />
     148                echo $current_site->domain . $current_site->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc"  autocapitalize="none" autocorrect="off" />
    149149            <?php }
    150150            echo '<p id="site-address-desc">' . __( 'Only lowercase letters (a-z) and numbers are allowed.' ) . '</p>';
Note: See TracChangeset for help on using the changeset viewer.