Make WordPress Core


Ignore:
Timestamp:
01/18/2010 08:34:48 PM (17 years ago)
Author:
ryan
Message:

Coding standards, space after if

File:
1 edited

Legend:

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

    r12674 r12752  
    4747                                <th scope="row"><?php _e('Allow new registrations') ?></th>
    4848                                <?php
    49                                 if( !get_site_option('registration') )
     49                                if ( !get_site_option('registration') )
    5050                                        update_site_option( 'registration', 'all' );
    5151                                ?>
     
    5656                                        <label><input name="registration" type="radio" id="registration4" value='blog' <?php echo get_site_option('registration') == 'blog' ? 'checked="checked"' : ''; ?> /> <?php _e('Only logged in users can create new blogs.'); ?></label><br />
    5757                                        <p><?php _e('Disable or enable registration and who or what can be registered. (Default=all)'); ?></p>
    58                                         <?php if( is_subdomain_install() ) {
     58                                        <?php if ( is_subdomain_install() ) {
    5959                                                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 existant blog.') . "</p>";
    6060                                        } ?>
     
    6565                                <th scope="row"><?php _e('Registration notification') ?></th>
    6666                                <?php
    67                                 if( !get_site_option('registrationnotification') )
     67                                if ( !get_site_option('registrationnotification') )
    6868                                        update_site_option( 'registrationnotification', 'yes' );
    6969                                ?>
     
    202202                                <th scope="row"><?php _e('Upload media button') ?></th>
    203203                                <?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?>
    204                                 <td><label><input type='checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1' <?php if( $mu_media_buttons[ 'image' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Images' ); ?></label><br />
    205                                 <label><input type='checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1' <?php if( $mu_media_buttons[ 'video' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Videos' ); ?></label><br />
    206                                 <label><input type='checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1' <?php if( $mu_media_buttons[ 'audio' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Music' ); ?></label><br />
     204                                <td><label><input type='checkbox' id="mu_media_buttons_image" name="mu_media_buttons[image]" value='1' <?php if ( $mu_media_buttons[ 'image' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Images' ); ?></label><br />
     205                                <label><input type='checkbox' id="mu_media_buttons_video" name="mu_media_buttons[video]" value='1' <?php if ( $mu_media_buttons[ 'video' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Videos' ); ?></label><br />
     206                                <label><input type='checkbox' id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value='1' <?php if ( $mu_media_buttons[ 'audio' ] ) { echo 'checked=checked '; } ?>/> <?php _e( 'Music' ); ?></label><br />
    207207                                <?php _e( 'The media upload buttons to display on the "Write Post" page. Make sure you update the "Upload File Types" below as well.' ); ?></td>
    208208                        </tr>
     
    210210                                <th scope="row"><?php _e('Blog upload space check') ?></th>
    211211                                <td>
    212                                 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0' <?php if( !get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Enabled' ); ?></label><br />
    213                                 <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='1' <?php if( get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Disabled' ); ?></label><br />
     212                                <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0' <?php if ( !get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Enabled' ); ?></label><br />
     213                                <label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='1' <?php if ( get_site_option( 'upload_space_check_disabled' ) ) { echo 'checked=checked '; } ?>/> <?php _e( 'Disabled' ); ?></label><br />
    214214                                <?php _e( 'By default there is a limit on the total size of files uploaded but it can be disabled here.' ); ?></td>
    215215                        </tr>
     
    232232                                <td><input name="admin_notice_feed" style="width: 95%" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br />
    233233                                <?php _e( 'Display the latest post from this RSS or Atom feed on all blog dashboards. Leave blank to disable.' ); ?><br />
    234                                 <?php if( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' )
     234                                <?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' )
    235235                                        echo __( "A good one to use would be the feed from your main blog: " ) . 'http://' . $current_site->domain . $current_site->path . 'feed/'; ?></td>
    236236                        </tr>
     
    252252                <table class="form-table">
    253253                        <?php
    254                         if( is_dir( ABSPATH . LANGDIR ) && $dh = opendir( ABSPATH . LANGDIR ) )
     254                        if ( is_dir( ABSPATH . LANGDIR ) && $dh = opendir( ABSPATH . LANGDIR ) )
    255255                                while( ( $lang_file = readdir( $dh ) ) !== false )
    256                                         if( substr( $lang_file, -3 ) == '.mo' )
     256                                        if ( substr( $lang_file, -3 ) == '.mo' )
    257257                                                $lang_files[] = $lang_file;
    258258                        $lang = get_site_option('WPLANG');
    259                         if( is_array($lang_files) && !empty($lang_files) ) {
     259                        if ( is_array($lang_files) && !empty($lang_files) ) {
    260260                                ?>
    261261                                <tr valign="top">
Note: See TracChangeset for help on using the changeset viewer.