Make WordPress Core

Changeset 13708


Ignore:
Timestamp:
03/15/2010 05:48:55 PM (15 years ago)
Author:
wpmuguru
Message:

move allow registration setting to registration settings in ms options, see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-options.php

    r13649 r13708  
    4242                    <br />
    4343                    <?php printf( __( 'Registration and support mails will come from this address. Make it generic like "support@%s"' ), $current_site->domain ); ?>
    44                 </td>
    45             </tr>
    46 
    47             <tr valign="top">
    48                 <th scope="row"><?php _e('Allow new registrations') ?></th>
    49                 <?php
    50                 if ( !get_site_option('registration') )
    51                     update_site_option( 'registration', 'none' );
    52                 ?>
    53                 <td>
    54                     <label><input name="registration" type="radio" id="registration1" value='none' <?php checked( get_site_option('registration'), 'none') ?> /> <?php _e('Registration is disabled.'); ?></label><br />
    55                     <label><input name="registration" type="radio" id="registration2" value='user' <?php checked( get_site_option('registration'), 'user') ?> /> <?php _e('User accounts may be registered.'); ?></label><br />
    56                     <label><input name="registration" type="radio" id="registration3" value='blog' <?php checked( get_site_option('registration'), 'blog') ?> /> <?php _e('Logged in users may register new sites.'); ?></label><br />
    57                     <label><input name="registration" type="radio" id="registration4" value='all' <?php  checked( get_site_option('registration'), 'all') ?> /> <?php _e('Both sites and user accounts can be registered.'); ?></label><br />
    58                     <p><?php _e('Disable or enable registration and who or what can be registered. (Default = disabled)'); ?></p>
    59                     <?php if ( is_subdomain_install() ) {
    60                         echo '<p>' . __('If registration is disabled, please set "NOBLOGREDIRECT" in wp-config.php to a url you will redirect visitors to if they visit a non-existent site.') . '</p>';
    61                     } ?>
    6244                </td>
    6345            </tr>
     
    10284        <h3><?php _e('Registration Settings'); ?></h3>
    10385        <table class="form-table">
     86            <tr valign="top">
     87                <th scope="row"><?php _e('Allow new registrations') ?></th>
     88                <?php
     89                if ( !get_site_option('registration') )
     90                    update_site_option( 'registration', 'none' );
     91                ?>
     92                <td>
     93                    <label><input name="registration" type="radio" id="registration1" value='none' <?php checked( get_site_option('registration'), 'none') ?> /> <?php _e('Registration is disabled.'); ?></label><br />
     94                    <label><input name="registration" type="radio" id="registration2" value='user' <?php checked( get_site_option('registration'), 'user') ?> /> <?php _e('User accounts may be registered.'); ?></label><br />
     95                    <label><input name="registration" type="radio" id="registration3" value='blog' <?php checked( get_site_option('registration'), 'blog') ?> /> <?php _e('Logged in users may register new sites.'); ?></label><br />
     96                    <label><input name="registration" type="radio" id="registration4" value='all' <?php  checked( get_site_option('registration'), 'all') ?> /> <?php _e('Both sites and user accounts can be registered.'); ?></label><br />
     97                    <p><?php _e('Disable or enable registration and who or what can be registered. (Default = disabled)'); ?></p>
     98                    <?php if ( is_subdomain_install() ) {
     99                        echo '<p>' . __('If registration is disabled, please set "NOBLOGREDIRECT" in wp-config.php to a url you will redirect visitors to if they visit a non-existent site.') . '</p>';
     100                    } ?>
     101                </td>
     102            </tr>
     103
    104104            <tr valign="top">
    105105                <th scope="row"><?php _e('Registration notification') ?></th>
Note: See TracChangeset for help on using the changeset viewer.