Make WordPress Core

Changeset 13505


Ignore:
Timestamp:
02/28/2010 06:41:45 PM (16 years ago)
Author:
wpmuguru
Message:

more ms warnings cleanup, props ocean90, see #12409

File:
1 edited

Legend:

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

    r13504 r13505  
    210210                }
    211211
    212                 if ( $_POST['update_home_url'] == 'update' ) {
     212                if ( isset( $_POST['update_home_url'] ) && $_POST['update_home_url'] == 'update' ) {
    213213                        $blog_address = get_blogaddress_by_domain($_POST['blog']['domain'], $_POST['blog']['path']);
    214214                        if ( get_option( 'siteurl' ) !=  $blog_address )
     
    229229
    230230                // user roles
    231                 if ( is_array( $_POST[ 'role' ] ) == true ) {
     231                if ( isset( $_POST[ 'role' ] ) && is_array( $_POST[ 'role' ] ) == true ) {
    232232                        $newroles = $_POST[ 'role' ];
    233233                        reset( $newroles );
     
    242242
    243243                // remove user
    244                 if ( isset($_POST[ 'blogusers' ]) && is_array( $_POST[ 'blogusers' ] ) ) {
     244                if ( isset( $_POST[ 'blogusers' ] ) && is_array( $_POST[ 'blogusers' ] ) ) {
    245245                        reset( $_POST[ 'blogusers' ] );
    246246                        foreach ( (array) $_POST[ 'blogusers' ] as $key => $val )
     
    249249
    250250                // change password
    251                 if ( is_array( $_POST[ 'user_password' ] ) ) {
     251                if ( isset( $_POST[ 'user_password' ] ) && is_array( $_POST[ 'user_password' ] ) ) {
    252252                        reset( $_POST[ 'user_password' ] );
    253253                        $newroles = $_POST[ 'role' ];
     
    271271
    272272                // add user?
    273                 if ( $_POST[ 'newuser' ] != '' ) {
     273                if ( isset( $_POST[ 'user_password' ] ) && !empty( $_POST[ 'newuser' ] ) ) {
    274274                        $newuser = $_POST[ 'newuser' ];
    275275                        $userid = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM " . $wpdb->users . " WHERE user_login = %s", $newuser ) );
Note: See TracChangeset for help on using the changeset viewer.