WordPress.org

Make WordPress Core

Ticket #48237: 48237.diff

File 48237.diff, 683 bytes (added by itowhid06, 19 months ago)
  • src/wp-includes/ms-deprecated.php

    diff --git a/src/wp-includes/ms-deprecated.php b/src/wp-includes/ms-deprecated.php
    index cbc27bc856..0ceab16eda 100644
    a b function wpmu_admin_do_redirect( $url = '' ) { 
    274274        if ( isset( $_GET['ref'] ) && isset( $_POST['ref'] ) && $_GET['ref'] !== $_POST['ref'] ) {
    275275                wp_die( __( 'A variable mismatch has been detected.' ), __( 'Sorry, you are not allowed to view this item.' ), 400 );
    276276        } elseif ( isset( $_POST['ref'] ) ) {
    277                 $ref = $_POST[ 'ref' ];
     277                $ref = $_POST['ref'];
    278278        } elseif ( isset( $_GET['ref'] ) ) {
    279                 $ref = $_GET[ 'ref' ];
     279                $ref = $_GET['ref'];
    280280        }
    281281
    282282        if ( $ref ) {