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

git-svn-id: https://develop.svn.wordpress.org/trunk@20092 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-03-02 22:01:41 +00:00
parent c306dddb62
commit c6d3eafb7e
2 changed files with 2 additions and 6 deletions

View File

@ -78,9 +78,7 @@ if ( isset( $_GET['action'] ) ) {
if ( ! current_user_can( 'manage_sites' ) )
wp_die( __( 'You do not have permission to access this page.' ) );
if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
$doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
$doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
$blogfunction = '';
foreach ( (array) $_POST['allblogs'] as $key => $val ) {

View File

@ -119,9 +119,7 @@ if ( isset( $_GET['action'] ) ) {
if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
check_admin_referer( 'bulk-users-network' );
if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
$doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
$doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
$userfunction = '';
foreach ( (array) $_POST['allusers'] as $key => $val ) {