Make WordPress Core

Changeset 26362


Ignore:
Timestamp:
11/24/2013 04:57:07 PM (11 years ago)
Author:
westi
Message:

Wrap the settings in the main Network Admin settings page in the expected paragraph tags so that the css applies correctly and the layout doesn't look off. Fixes #26211 props hanni.

File:
1 edited

Legend:

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

    r26359 r26362  
    9595                <td>
    9696                    <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name ) ?>" />
    97                     <br />
    98                     <?php _e( 'What you would like to call this network.' ) ?>
     97                    <p class="description">
     98                        <?php _e( 'What you would like to call this network.' ) ?>
     99                    </p>
    99100                </td>
    100101            </tr>
     
    104105                <td>
    105106                    <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" />
    106                     <br />
    107                     <?php _e( 'This email address will send update notifcations, and also receive site creation and new user registration notifications.' ); ?>
     107                    <p class="description">
     108                        <?php _e( 'This email address will send update notifcations, and also receive site creation and new user registration notifications.' ); ?>
     109                    </p>   
    108110                </td>
    109111            </tr>
     
    122124                    <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user') ?> /> <?php _e( 'User accounts may be registered.' ); ?></label><br />
    123125                    <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog') ?> /> <?php _e( 'Logged in users may register new sites.' ); ?></label><br />
    124                     <label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all') ?> /> <?php _e( 'Both sites and user accounts can be registered.' ); ?></label><br />
    125                     <?php if ( is_subdomain_install() )
     126                    <label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all') ?> /> <?php _e( 'Both sites and user accounts can be registered.' ); ?></label>
     127                    <p class="description">
     128                        <?php if ( is_subdomain_install() )
    126129                        _e( 'If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a URL you will redirect visitors to if they visit a non-existent site.' );
    127130                    ?>
     131                    </p>
    128132                </td>
    129133            </tr>
     
    151155                <td>
    152156                    <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", (array) get_site_option( 'illegal_names' ) ) ); ?>" size="45" />
    153                     <br />
    154                     <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?>
     157                    <p class="description">
     158                        <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?>
     159                    </p>
    155160                </td>
    156161            </tr>
     
    163168                    <textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5">
    164169<?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
    165                     <br />
    166                     <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?>
     170                    <p class="description">
     171                        <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?>
     172                    </p>   
    167173                </td>
    168174            </tr>
     
    173179                    <textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5">
    174180<?php echo esc_textarea( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea>
    175                     <br />
    176                     <?php _e( 'If you want to ban domains from site registrations. One domain per line.' ) ?>
     181                    <p class="description">
     182                        <?php _e( 'If you want to ban domains from site registrations. One domain per line.' ) ?>
     183                    </p>
    177184                </td>
    178185            </tr>
     
    187194                    <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text">
    188195<?php echo esc_textarea( get_site_option( 'welcome_email' ) ) ?></textarea>
    189                     <br />
    190                     <?php _e( 'The welcome email sent to new site owners.' ) ?>
     196                    <p class="description">
     197                        <?php _e( 'The welcome email sent to new site owners.' ) ?>
     198                    </p>
    191199                </td>
    192200            </tr>
     
    196204                    <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text">
    197205<?php echo esc_textarea( get_site_option( 'welcome_user_email' ) ) ?></textarea>
    198                     <br />
    199                     <?php _e( 'The welcome email sent to new users.' ) ?>
     206                    <p class="description">
     207                        <?php _e( 'The welcome email sent to new users.' ) ?>
     208                    </p>
    200209                </td>
    201210            </tr>
     
    205214                    <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text">
    206215<?php echo esc_textarea( get_site_option( 'first_post' ) ) ?></textarea>
    207                     <br />
    208                     <?php _e( 'The first post on a new site.' ) ?>
     216                    <p class="description">
     217                        <?php _e( 'The first post on a new site.' ) ?>
     218                    </p>
    209219                </td>
    210220            </tr>
     
    214224                    <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text">
    215225<?php echo esc_textarea( get_site_option( 'first_page' ) ) ?></textarea>
    216                     <br />
    217                     <?php _e( 'The first page on a new site.' ) ?>
     226                    <p class="description">
     227                        <?php _e( 'The first page on a new site.' ) ?>
     228                    </p>
    218229                </td>
    219230            </tr>
     
    223234                    <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text">
    224235<?php echo esc_textarea( get_site_option( 'first_comment' ) ) ?></textarea>
    225                     <br />
    226                     <?php _e( 'The first comment on a new site.' ) ?>
     236                    <p class="description">
     237                        <?php _e( 'The first comment on a new site.' ) ?>
     238                    </p>   
    227239                </td>
    228240            </tr>
     
    231243                <td>
    232244                    <input type="text" size="40" name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" />
    233                     <br />
    234                     <?php _e( 'The author of the first comment on a new site.' ) ?>
     245                    <p class="description">
     246                        <?php _e( 'The author of the first comment on a new site.' ) ?>
     247                    </p>
    235248                </td>
    236249            </tr>
     
    239252                <td>
    240253                    <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" />
    241                     <br />
    242                     <?php _e( 'The URL for the first comment on a new site.' ) ?>
     254                    <p class="description">
     255                        <?php _e( 'The URL for the first comment on a new site.' ) ?>
     256                    </p>
    243257                </td>
    244258            </tr>
Note: See TracChangeset for help on using the changeset viewer.