Coding Standards: Fix WPCS issues in wp-includes/ms-deprecated.php
.
Props itowhid06. Fixes #48237. git-svn-id: https://develop.svn.wordpress.org/trunk@46420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c2ffe16248
commit
fd7240cab0
@ -274,9 +274,9 @@ function wpmu_admin_do_redirect( $url = '' ) {
|
||||
if ( isset( $_GET['ref'] ) && isset( $_POST['ref'] ) && $_GET['ref'] !== $_POST['ref'] ) {
|
||||
wp_die( __( 'A variable mismatch has been detected.' ), __( 'Sorry, you are not allowed to view this item.' ), 400 );
|
||||
} elseif ( isset( $_POST['ref'] ) ) {
|
||||
$ref = $_POST[ 'ref' ];
|
||||
$ref = $_POST['ref'];
|
||||
} elseif ( isset( $_GET['ref'] ) ) {
|
||||
$ref = $_GET[ 'ref' ];
|
||||
$ref = $_GET['ref'];
|
||||
}
|
||||
|
||||
if ( $ref ) {
|
||||
|
Loading…
Reference in New Issue
Block a user