WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/22/2010 11:35:59 PM (12 years ago)
Author:
ryan
Message:

Introduce update_blog_details(). Add some phpdoc. Fix some warnings. see #11644

File:
1 edited

Legend:

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

    r12796 r12806  
    184184
    185185        // themes
    186         if ( is_array( $_POST[ 'theme' ] ) )
     186        if ( isset($_POST[ 'theme' ]) && is_array( $_POST[ 'theme' ] ) )
    187187            $_POST[ 'option' ][ 'allowedthemes' ] = $_POST[ 'theme' ];
    188188        else
     
    216216        // update blogs table
    217217        $blog_data = stripslashes_deep($_POST[ 'blog' ]);
    218         $result = $wpdb->update( $wpdb->blogs, $blog_data, array('blog_id' => $id) );
    219 
    220         update_blog_status( $id, 'spam', $_POST[ 'blog' ][ 'spam' ] );
    221         update_option( 'blog_public', $_POST[ 'blog' ][ 'public' ] );
     218        update_blog_details($id, $blog_data);
    222219
    223220        // get blog prefix
     
    238235
    239236        // remove user
    240         if ( is_array( $_POST[ 'blogusers' ] ) ) {
     237        if ( isset($_POST[ 'blogusers' ]) && is_array( $_POST[ 'blogusers' ] ) ) {
    241238            reset( $_POST[ 'blogusers' ] );
    242239            foreach ( (array) $_POST[ 'blogusers' ] as $key => $val )
Note: See TracChangeset for help on using the changeset viewer.