From fd7240cab048f83381c0e7dcdf9df7a68d617e9f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 7 Oct 2019 15:16:44 +0000 Subject: [PATCH] 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 --- src/wp-includes/ms-deprecated.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/ms-deprecated.php b/src/wp-includes/ms-deprecated.php index cbc27bc856..0ceab16eda 100644 --- a/src/wp-includes/ms-deprecated.php +++ b/src/wp-includes/ms-deprecated.php @@ -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 ) {