Skip to content
Permalink
Browse files

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
  • Loading branch information...
SergeyBiryukov committed Oct 7, 2019
1 parent c2ffe16 commit fd7240cab048f83381c0e7dcdf9df7a68d617e9f
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 ) {

0 comments on commit fd7240c

Please sign in to comment.
You can’t perform that action at this time.