WordPress.org

Make WordPress Core

Changeset 17128


Ignore:
Timestamp:
12/23/2010 07:45:19 PM (10 years ago)
Author:
nacin
Message:

Prevent notices in the allblogs and allusers branches. props SergeyBiryukov, see #15920.

File:
1 edited

Legend:

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

    r17084 r17128  
    186186
    187187    case 'allblogs':
    188         if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {
     188        if ( ( isset( $_POST['doaction'] ) || isset( $_POST['doaction2'] ) ) && isset( $_POST['allblogs'] ) ) {
    189189            check_admin_referer( 'bulk-sites' );
    190190
     
    195195                $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
    196196
     197            $blogfunction = '';
    197198
    198199            foreach ( (array) $_POST['allblogs'] as $key => $val ) {
     
    375376            wp_die( __( 'You do not have permission to access this page.' ) );
    376377
    377         if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {
     378        if ( ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) && isset( $_POST['allusers'] ) ) {
    378379            check_admin_referer( 'bulk-users-network' );
    379380
    380381            if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
    381382                $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
     383
     384            $userfunction = '';
    382385
    383386            foreach ( (array) $_POST['allusers'] as $key => $val ) {
Note: See TracChangeset for help on using the changeset viewer.