Make WordPress Core

Changeset 14022


Ignore:
Timestamp:
04/06/2010 11:13:44 PM (15 years ago)
Author:
nacin
Message:

In ms-sites.php blog, display 'mature' option for root blog. Also, small styling cleanups.

File:
1 edited

Legend:

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

    r14020 r14022  
    121121                            <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></td>
    122122                        </tr>
     123                        <tr>
     124                            <th scope="row"><?php _e( 'Site Settings' ); ?></th>
     125                            <td>
    123126                        <?php
    124127                        if ( $is_main_site )
     
    130133                                'spam'     => __('Spam'),
    131134                                'deleted'  => __('Deleted'),
    132                                 'mature'  => __('Mature'),
    133135                            );
    134 
     136                        $checked_fields['mature'] = __( 'Mature' );
    135137                        foreach ( $checked_fields as $field_key => $field_label ) {
    136138                        ?>
    137                         <tr class="form-field">
    138                             <th scope="row"><label for="blog_<?php echo $field_key; ?>"><?php echo $field_label; ?></label></th>
    139                             <td><input type="checkbox" name="blog[<?php echo $field_key; ?>]" id="blog_<?php echo $field_key; ?>" value="<?php echo $details->$field_key; ?>"<?php checked( $details->$field_key ); ?> /></td>
     139                                <input type="checkbox" name="blog[<?php echo $field_key; ?>]" id="blog_<?php echo $field_key; ?>" value="<?php echo $details->$field_key; ?>"<?php checked( $details->$field_key ); ?> />
     140                                <label for="blog_<?php echo $field_key; ?>"><?php echo $field_label; ?></label><br/>
     141                        <?php } ?>
     142                            </td>
    140143                        </tr>
    141                         <?php } ?>
    142144                    </table>
    143145                    <p class="submit" style="text-align:center;"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Update Options' ) ?>" /></p>
Note: See TracChangeset for help on using the changeset viewer.