WordPress.org

Make WordPress Core

Changeset 20092


Ignore:
Timestamp:
03/02/2012 10:01:41 PM (6 years ago)
Author:
duck_
Message:

Drop unnecessary if-statements which also have some strange logic. Fixes #20159.

Location:
trunk/wp-admin/network
Files:
2 edited

Legend:

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

    r19937 r20092  
    7979                    wp_die( __( 'You do not have permission to access this page.' ) );
    8080
    81                 if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
    82                     $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
    83 
     81                $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
    8482                $blogfunction = '';
    8583
  • trunk/wp-admin/network/users.php

    r19579 r20092  
    120120                check_admin_referer( 'bulk-users-network' );
    121121
    122                 if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
    123                     $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
    124 
     122                $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
    125123                $userfunction = '';
    126124
Note: See TracChangeset for help on using the changeset viewer.