Make WordPress Core


Ignore:
Timestamp:
04/16/2010 01:35:44 PM (15 years ago)
Author:
nacin
Message:

Fix the blog settings checkboxes on ms-sites.php. fixes #12889

File:
1 edited

Legend:

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

    r14070 r14102  
    1010require_once( './admin.php' );
    1111
    12 if ( !is_multisite() )
     12if ( ! is_multisite() )
    1313    wp_die( __( 'Multisite support is not enabled.' ) );
    1414
     
    249249        // update blogs table
    250250        $blog_data = stripslashes_deep( $_POST['blog'] );
     251        $blog_data_checkboxes = array( 'public', 'archived', 'spam', 'mature', 'deleted' );
     252        foreach ( $blog_data_checkboxes as $c )
     253            $blog_data[ $c ] = ! empty( $_POST['blog'][ $c ] );
    251254        update_blog_details( $id, $blog_data );
    252255
Note: See TracChangeset for help on using the changeset viewer.