WordPress.org

Make WordPress Core

Ticket #16383: 16383.2.diff

File 16383.2.diff, 2.1 KB (added by garyc40, 7 years ago)

also fix the width of "Domain" box in network/site-info.php when editing a site that's not the main site

  • wp-admin/css/wp-admin.dev.css

    diff --git wp-admin/css/wp-admin.dev.css wp-admin/css/wp-admin.dev.css
    index 0a70bd5..c07d355 100644
    ul.add-menu-item-tabs li { 
    26512651        width: 95%;
    26522652}
    26532653
     2654.form-field .site-address {
     2655        width:auto;
     2656}
     2657
    26542658p.description,
    26552659.form-wrap p {
    26562660        margin: 2px 0 5px;
  • wp-admin/network/site-info.php

    diff --git wp-admin/network/site-info.php wp-admin/network/site-info.php
    index d825284..beee271 100644
    if ( ! empty( $messages ) ) { 
    119119                        if ( $is_main_site ) { ?>
    120120                        <td><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></td>
    121121                        <?php } else { ?>
    122                         <td><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></td>
     122                        <td><?php echo $protocol; ?><input class="site-address" name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></td>
    123123                        <?php } ?>
    124124                </tr>
    125125                <tr class="form-field form-required">
  • wp-admin/network/site-new.php

    diff --git wp-admin/network/site-new.php wp-admin/network/site-new.php
    index a94aaf3..d808908 100644
    if ( ! empty( $messages ) ) { 
    117117                        <th scope="row"><?php _e( 'Site Address' ) ?></th>
    118118                        <td>
    119119                        <?php if ( is_subdomain_install() ) { ?>
    120                                 <input name="blog[domain]" type="text" class="regular-text" title="<?php _e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?>
     120                                <input name="blog[domain]" type="text" class="site-address regular-text" title="<?php _e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?>
    121121                        <?php } else {
    122                                 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php _e( 'Domain' ) ?>"/>
     122                                echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="site-address regular-text" type="text" title="<?php _e( 'Domain' ) ?>"/>
    123123                        <?php }
    124124                        echo '<p>' . __( 'Only the characters a-z and 0-9 recommended.' ) . '</p>';
    125125                        ?>