WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/01/2010 09:21:27 PM (10 years ago)
Author:
markjaquith
Message:

Huge MS refactoring and code cleanup. see #12460. props ocean90.

File:
1 edited

Legend:

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

    r13884 r13918  
    11<?php
    2 require_once('admin.php');
     2require_once( './admin.php' );
    33
    44if ( !is_multisite() )
    5     wp_die( __('Multisite support is not enabled.') );
    6 
    7 $title = __('Network Options');
     5    wp_die( __( 'Multisite support is not enabled.' ) );
     6
     7$title = __( 'Network Options' );
    88$parent_file = 'ms-admin.php';
    99
    10 include('admin-header.php');
     10include( './admin-header.php' );
    1111
    1212if ( ! current_user_can( 'manage_network_options' ) )
    13     wp_die( __('You do not have permission to access this page.') );
     13    wp_die( __( 'You do not have permission to access this page.' ) );
    1414
    1515if (isset($_GET['updated'])) {
    1616    ?>
    17     <div id="message" class="updated fade"><p><?php _e('Options saved.') ?></p></div>
     17    <div id="message" class="updated fade"><p><?php _e( 'Options saved.' ) ?></p></div>
    1818    <?php
    1919}
     
    2222<div class="wrap">
    2323    <?php screen_icon(); ?>
    24     <h2><?php _e('Network Options') ?></h2>
     24    <h2><?php _e( 'Network Options' ) ?></h2>
    2525    <form method="post" action="ms-edit.php?action=siteoptions">
    26         <?php wp_nonce_field( "siteoptions" ); ?>
    27         <h3><?php _e('Operational Settings'); ?></h3>
    28         <table class="form-table">
    29             <tr valign="top">
    30                 <th scope="row"><label for="site_name"><?php _e('Network Name') ?></label></th>
    31                 <td>
    32                     <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr($current_site->site_name) ?>" />
    33                     <br />
    34                     <?php _e('What you would like to call this website.') ?>
    35                 </td>
    36             </tr>
    37 
    38             <tr valign="top">
    39                 <th scope="row"><label for="admin_email"><?php _e('Network Admin Email') ?></label></th>
     26        <?php wp_nonce_field( 'siteoptions' ); ?>
     27        <h3><?php _e( 'Operational Settings' ); ?></h3>
     28        <table class="form-table">
     29            <tr valign="top">
     30                <th scope="row"><label for="site_name"><?php _e( 'Network Name' ) ?></label></th>
     31                <td>
     32                    <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name ) ?>" />
     33                    <br />
     34                    <?php _e( 'What you would like to call this website.' ) ?>
     35                </td>
     36            </tr>
     37
     38            <tr valign="top">
     39                <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>
    4040                <td>
    4141                    <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" />
     
    4646
    4747            <tr valign="top">
    48                 <th scope="row"><?php _e('Global Terms') ?></th>
    49                 <td>
    50                 <label><input type='radio' id="global_terms_enabled" name="global_terms_enabled" value='1'<?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?>/> <?php _e( 'Maintain a global list of terms from all sites across the network.' ); ?></label><br />
    51                 <label><input type='radio' id="global_terms_enabled" name="global_terms_enabled" value='0'<?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?>/> <?php _e( 'Disabled' ); ?></label></td>
    52             </tr>
    53         </table>
    54         <h3><?php _e('Dashboard Settings'); ?></h3>
    55         <table class="form-table">
    56             <tr valign="top">
    57                 <th scope="row"><label for="dashboard_blog"><?php _e('Dashboard Site') ?></label></th>
     48                <th scope="row"><?php _e( 'Global Terms' ) ?></th>
     49                <td>
     50                <label><input type="radio" id="global_terms_enabled" name="global_terms_enabled" value="1"<?php checked( get_site_option( 'global_terms_enabled' ), 1 ) ?>/> <?php _e( 'Maintain a global list of terms from all sites across the network.' ); ?></label><br />
     51                <label><input type="radio" id="global_terms_enabled" name="global_terms_enabled" value="0"<?php checked( get_site_option( 'global_terms_enabled' ), 0 ) ?>/> <?php _e( 'Disabled' ); ?></label></td>
     52            </tr>
     53        </table>
     54        <h3><?php _e( 'Dashboard Settings' ); ?></h3>
     55        <table class="form-table">
     56            <tr valign="top">
     57                <th scope="row"><label for="dashboard_blog"><?php _e( 'Dashboard Site' ) ?></label></th>
    5858                <td>
    5959                    <?php
     
    6464                        $blogname = '';
    6565                    }?>
    66                     <input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr($blogname); ?>" />
    67                     <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr($blogname); ?>" class="regular-text" />
     66                    <input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr( $blogname ); ?>" />
     67                    <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr( $blogname ); ?>" class="regular-text" />
    6868                    <br />
    6969                    <?php _e( "Site path ('dashboard', 'control', 'manager', etc) or blog id.<br />New users are added to this site as the user role defined below if they don't have a site. Leave blank for the main site. Users with the subscriber role on old site will be moved to the new site if changed. The new site will be created if it does not exist." ); ?>
     
    7171            </tr>
    7272            <tr valign="top">
    73                 <th scope="row"><label for="default_user_role"><?php _e('Dashboard User Default Role') ?></label></th>
     73                <th scope="row"><label for="default_user_role"><?php _e( 'Dashboard User Default Role' ) ?></label></th>
    7474                <td>
    7575                    <select name="default_user_role" id="default_user_role"><?php
     
    8282            </tr>
    8383            <tr valign="top">
    84                 <th scope="row"><label for="admin_notice_feed"><?php _e('Admin Notice Feed') ?></label></th>
     84                <th scope="row"><label for="admin_notice_feed"><?php _e( 'Admin Notice Feed' ) ?></label></th>
    8585                <td><input name="admin_notice_feed" class="large-text" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br />
    8686                <?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br />
    87                 <?php if ( get_site_option( 'admin_notice_feed' ) != network_home_url('feed/', 'http') )
    88                     echo __( "A good one to use would be the feed from your main site: " ) . network_home_url('feed/'); ?></td>
    89             </tr>
    90         </table>
    91         <h3><?php _e('Registration Settings'); ?></h3>
    92         <table class="form-table">
    93             <tr valign="top">
    94                 <th scope="row"><?php _e('Allow new registrations') ?></th>
     87               
     88                <?php if ( get_site_option( 'admin_notice_feed' ) != get_home_url( $current_site->id, 'feed/' ) )
     89                    echo __( 'A good one to use would be the feed from your main site: ' ) . esc_url( get_home_url( $current_site->id, 'feed/' ) ) ?></td>
     90            </tr>
     91        </table>
     92        <h3><?php _e( 'Registration Settings' ); ?></h3>
     93        <table class="form-table">
     94            <tr valign="top">
     95                <th scope="row"><?php _e( 'Allow new registrations' ) ?></th>
    9596                <?php
    96                 if ( !get_site_option('registration') )
     97                if ( !get_site_option( 'registration' ) )
    9798                    update_site_option( 'registration', 'none' );
     99                $reg = get_site_option( 'registration' );
    98100                ?>
    99101                <td>
    100                     <label><input name="registration" type="radio" id="registration1" value='none'<?php checked( get_site_option('registration'), 'none') ?> /> <?php _e('Registration is disabled.'); ?></label><br />
    101                     <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 />
    102                     <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 />
    103                     <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 />
    104                     <p><?php _e('Disable or enable registration and who or what can be registered. (Default is disabled.)'); ?></p>
     102                    <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none') ?> /> <?php _e( 'Registration is disabled.' ); ?></label><br />
     103                    <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user') ?> /> <?php _e( 'User accounts may be registered.' ); ?></label><br />
     104                    <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 />
     105                    <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 />
     106                    <p><?php _e( 'Disable or enable registration and who or what can be registered. (Default is disabled.)' ); ?></p>
    105107                    <?php if ( is_subdomain_install() ) {
    106                         echo '<p>' . __('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.') . '</p>';
     108                        echo '<p>' . __( '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.' ) . '</p>';
    107109                    } ?>
    108110                </td>
     
    110112
    111113            <tr valign="top">
    112                 <th scope="row"><?php _e('Registration notification') ?></th>
     114                <th scope="row"><?php _e( 'Registration notification' ) ?></th>
    113115                <?php
    114                 if ( !get_site_option('registrationnotification') )
     116                if ( !get_site_option( 'registrationnotification' ) )
    115117                    update_site_option( 'registrationnotification', 'yes' );
    116118                ?>
    117119                <td>
    118                     <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value='yes'<?php checked( get_site_option('registrationnotification'), 'yes' ) ?> /> <?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?></label>
     120                    <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account.' ) ?></label>
    119121                </td>
    120122            </tr>
    121123
    122124            <tr valign="top" id="addnewusers">
    123                 <th scope="row"><?php _e('Add New Users') ?></th>
    124                 <td>
    125                     <label><input name="add_new_users" type="checkbox" id="add_new_users" value='1'<?php checked( get_site_option('add_new_users') ) ?> /> <?php _e('Allow site administrators to add new users to their site via the "Users->Add New" page.'); ?></label>
    126                 </td>
    127             </tr>
    128 
    129             <tr valign="top">
    130                 <th scope="row"><label for="illegal_names"><?php _e('Banned Names') ?></label></th>
    131                 <td>
    132                     <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", get_site_option('illegal_names') ) ); ?>" size="45" />
    133                     <br />
    134                     <?php _e('Users are not allowed to register these sites. Separate names by spaces.') ?>
    135                 </td>
    136             </tr>
    137 
    138             <tr valign="top">
    139                 <th scope="row"><label for="limited_email_domains"><?php _e('Limited Email Registrations') ?></label></th>
    140                 <td>
    141                     <?php $limited_email_domains = get_site_option('limited_email_domains');
     125                <th scope="row"><?php _e( 'Add New Users' ) ?></th>
     126                <td>
     127                    <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ) ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users->Add New" page.' ); ?></label>
     128                </td>
     129            </tr>
     130
     131            <tr valign="top">
     132                <th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></th>
     133                <td>
     134                    <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", get_site_option( 'illegal_names' ) ) ); ?>" size="45" />
     135                    <br />
     136                    <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?>
     137                </td>
     138            </tr>
     139
     140            <tr valign="top">
     141                <th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></th>
     142                <td>
     143                    <?php $limited_email_domains = get_site_option( 'limited_email_domains' );
    142144                    $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?>
    143                     <textarea name="limited_email_domains" id="limited_email_domains" cols='45' rows='5'><?php echo wp_htmledit_pre( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
    144                     <br />
    145                     <?php _e('If you want to limit site registrations to certain domains. Enter one domain per line.') ?>
     145                    <textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5"><?php echo wp_htmledit_pre( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
     146                    <br />
     147                    <?php _e( 'If you want to limit site registrations to certain domains. Enter one domain per line.' ) ?>
    146148                </td>
    147149            </tr>
     
    150152                <th scope="row"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></th>
    151153                <td>
    152                     <textarea name="banned_email_domains" id="banned_email_domains" cols='45' rows='5'><?php echo wp_htmledit_pre( get_site_option('banned_email_domains') == '' ? '' : implode( "\n", (array) get_site_option('banned_email_domains') ) ); ?></textarea>
     154                    <textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5"><?php echo wp_htmledit_pre( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea>
    153155                    <br />
    154156                    <?php _e('If you want to ban domains from site registrations. Enter one domain per line.') ?>
     
    161163
    162164            <tr valign="top">
    163                 <th scope="row"><label for="welcome_email"><?php _e('Welcome Email') ?></label></th>
    164                 <td>
    165                     <textarea name="welcome_email" id="welcome_email" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('welcome_email') ) ?></textarea>
    166                     <br />
    167                     <?php _e('The welcome email sent to new site owners.') ?>
    168                 </td>
    169             </tr>
    170             <tr valign="top">
    171                 <th scope="row"><label for="welcome_user_email"><?php _e('Welcome User Email') ?></label></th>
    172                 <td>
    173                         <textarea name="welcome_user_email" id="welcome_user_email" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('welcome_user_email') ) ?></textarea>
    174                     <br />
    175                     <?php _e('The welcome email sent to new users.') ?>
    176                 </td>
    177             </tr>
    178             <tr valign="top">
    179                 <th scope="row"><label for="first_post"><?php _e('First Post') ?></label></th>
    180                 <td>
    181                     <textarea name="first_post" id="first_post" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('first_post') ) ?></textarea>
    182                     <br />
    183                     <?php _e('The first post on a new site.') ?>
    184                 </td>
    185             </tr>
    186             <tr valign="top">
    187                 <th scope="row"><label for="first_page"><?php _e('First Page') ?></label></th>
    188                 <td>
    189                     <textarea name="first_page" id="first_page" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('first_page') ) ?></textarea>
    190                     <br />
    191                     <?php _e('The first page on a new site.') ?>
    192                 </td>
    193             </tr>
    194             <tr valign="top">
    195                 <th scope="row"><label for="first_comment"><?php _e('First Comment') ?></label></th>
    196                 <td>
    197                     <textarea name="first_comment" id="first_comment" rows='5' cols='45' class="large-text"><?php echo stripslashes( get_site_option('first_comment') ) ?></textarea>
    198                     <br />
    199                     <?php _e('The first comment on a new site.') ?>
    200                 </td>
    201             </tr>
    202             <tr valign="top">
    203                 <th scope="row"><label for="first_comment_author"><?php _e('First Comment Author') ?></label></th>
    204                 <td>
    205                     <input type="text" size='40' name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" />
    206                     <br />
    207                     <?php _e('The author of the first comment on a new site.') ?>
    208                 </td>
    209             </tr>
    210             <tr valign="top">
    211                 <th scope="row"><label for="first_comment_url"><?php _e('First Comment URL') ?></label></th>
    212                 <td>
    213                     <input type="text" size='40' name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr(get_site_option('first_comment_url')) ?>" />
    214                     <br />
    215                     <?php _e('The URL for the first comment on a new site.') ?>
    216                 </td>
    217             </tr>
    218         </table>
    219         <h3><?php _e('Upload Settings'); ?></h3>
    220         <table class="form-table">
    221             <tr valign="top">
    222                 <th scope="row"><?php _e('Media upload buttons') ?></th>
     165                <th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>
     166                <td>
     167                    <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option( 'welcome_email' ) ) ?></textarea>
     168                    <br />
     169                    <?php _e( 'The welcome email sent to new site owners.' ) ?>
     170                </td>
     171            </tr>
     172            <tr valign="top">
     173                <th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>
     174                <td>
     175                    <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option( 'welcome_user_email' ) ) ?></textarea>
     176                    <br />
     177                    <?php _e( 'The welcome email sent to new users.' ) ?>
     178                </td>
     179            </tr>
     180            <tr valign="top">
     181                <th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>
     182                <td>
     183                    <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option( 'first_post' ) ) ?></textarea>
     184                    <br />
     185                    <?php _e( 'The first post on a new site.' ) ?>
     186                </td>
     187            </tr>
     188            <tr valign="top">
     189                <th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>
     190                <td>
     191                    <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option('first_page') ) ?></textarea>
     192                    <br />
     193                    <?php _e( 'The first page on a new site.' ) ?>
     194                </td>
     195            </tr>
     196            <tr valign="top">
     197                <th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>
     198                <td>
     199                    <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text"><?php echo stripslashes( get_site_option('first_comment') ) ?></textarea>
     200                    <br />
     201                    <?php _e( 'The first comment on a new site.' ) ?>
     202                </td>
     203            </tr>
     204            <tr valign="top">
     205                <th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th>
     206                <td>
     207                    <input type="text" size="40" name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" />
     208                    <br />
     209                    <?php _e( 'The author of the first comment on a new site.' ) ?>
     210                </td>
     211            </tr>
     212            <tr valign="top">
     213                <th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th>
     214                <td>
     215                    <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" />
     216                    <br />
     217                    <?php _e( 'The URL for the first comment on a new site.' ) ?>
     218                </td>
     219            </tr>
     220        </table>
     221        <h3><?php _e( 'Upload Settings' ); ?></h3>
     222        <table class="form-table">
     223            <tr valign="top">
     224                <th scope="row"><?php _e( 'Media upload buttons' ) ?></th>
    223225                <?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?>
    224                 <td><label><input type='checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1'<?php checked( !empty($mu_media_buttons[ 'image' ]) ) ?>/> <?php _e( 'Images' ); ?></label><br />
    225                 <label><input type='checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1'<?php checked( !empty($mu_media_buttons[ 'video' ]) ) ?>/> <?php _e( 'Videos' ); ?></label><br />
    226                 <label><input type='checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1'<?php checked( !empty($mu_media_buttons[ 'audio' ]) ) ?>/> <?php _e( 'Music' ); ?></label><br />
     226                <td><label><input type="checkbox" id="mu_media_buttons_image" name="mu_media_buttons[image]" value="1"<?php checked( ! empty( $mu_media_buttons['image'] ) ) ?>/> <?php _e( 'Images' ); ?></label><br />
     227                <label><input type="checkbox" id="mu_media_buttons_video" name="mu_media_buttons[video]" value="1"<?php checked( ! empty( $mu_media_buttons['video'] ) ) ?>/> <?php _e( 'Videos' ); ?></label><br />
     228                <label><input type="checkbox" id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value="1"<?php checked( ! empty( $mu_media_buttons['audio'] ) ) ?>/> <?php _e( 'Music' ); ?></label><br />
    227229                <?php _e( 'The media upload buttons to display on the "Write Post" page. Make sure you update the allowed upload file types below as well.' ); ?></td>
    228230            </tr>
    229231
    230232            <tr valign="top">
    231                 <th scope="row"><?php _e('Site upload space') ?></th>
    232                 <td>
    233                 <label><input type='checkbox' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0'<?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '<input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br />
    234             </tr>
    235 
    236             <tr valign="top">
    237                 <th scope="row"><label for="upload_filetypes"><?php _e('Upload file types') ?></label></th>
     233                <th scope="row"><?php _e( 'Site upload space' ) ?></th>
     234                <td>
     235                <label><input type="checkbox" id="upload_space_check_disabled" name="upload_space_check_disabled" value="0"<?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '<input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br />
     236            </tr>
     237
     238            <tr valign="top">
     239                <th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></th>
    238240                <td><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></td>
    239241            </tr>
    240242
    241243            <tr valign="top">
    242                 <th scope="row"><label for="fileupload_maxk"><?php _e('Max upload file size') ?></label></th>
    243                 <td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option('fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></td>
     244                <th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></th>
     245                <td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></td>
    244246            </tr>
    245247        </table>
     
    248250        $languages = get_available_languages();
    249251        if ( ! empty( $languages ) ) {
    250             $lang = get_site_option('WPLANG');
     252            $lang = get_site_option( 'WPLANG' );
    251253?>
    252         <h3><?php _e('Network Wide Settings'); ?></h3>
     254        <h3><?php _e( 'Network Wide Settings' ); ?></h3>
    253255        <div class="updated inline"><p><strong><?php _e( 'Notice:' ); ?></strong> <?php _e( 'These settings may be overridden by site owners.' ); ?></p></div>
    254256        <table class="form-table">
     
    256258                ?>
    257259                <tr valign="top">
    258                     <th><label for="WPLANG"><?php _e('Default Language') ?></label></th>
     260                    <th><label for="WPLANG"><?php _e( 'Default Language' ) ?></label></th>
    259261                    <td>
    260262                        <select name="WPLANG" id="WPLANG">
    261                             <?php mu_dropdown_languages( $languages, get_site_option('WPLANG') ); ?>
     263                            <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?>
    262264                        </select>
    263265                    </td>
     
    268270?>
    269271
    270         <h3><?php _e('Menu Settings'); ?></h3>
     272        <h3><?php _e( 'Menu Settings' ); ?></h3>
    271273        <table id="menu" class="form-table">
    272274            <tr valign="top">
     
    277279            $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );
    278280            foreach ( (array) $menu_items as $key => $val ) {
    279                 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" .  ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>";
     281                echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" .  ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>";
    280282            }
    281283            ?>
     
    286288        <?php do_action( 'wpmu_options' ); // Add more options here ?>
    287289
    288         <p class="submit"><input type="submit" class="button-primary" name="Submit" value="<?php esc_attr_e('Save Changes') ?>" /></p>
     290        <p class="submit"><input type="submit" class="button-primary" name="Submit" value="<?php esc_attr_e( 'Save Changes' ) ?>" /></p>
    289291    </form>
    290292</div>
    291293
    292 <?php include('./admin-footer.php'); ?>
     294<?php include( './admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.