WordPress.org

Make WordPress Core

Ticket #13764: conditional-delete-check-sans-notice.13764.diff

File conditional-delete-check-sans-notice.13764.diff, 650 bytes (added by filosofo, 5 years ago)
  • wp-admin/ms-edit.php

     
    571571                if ( ! current_user_can( 'manage_network_users' ) ) 
    572572                        wp_die( __( 'You do not have permission to access this page.' ) ); 
    573573 
    574                 if ( is_array( $_POST['blog'] ) && ! empty( $_POST['blog'] ) ) { 
     574                if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) { 
    575575                        foreach ( $_POST['blog'] as $id => $users ) { 
    576576                                foreach ( $users as $blogid => $user_id ) { 
    577577                                        if ( ! empty( $_POST['delete'] ) && 'reassign' == $_POST['delete'][$blogid][$id] )