WordPress.org

Make WordPress Core

Changeset 19394


Ignore:
Timestamp:
11/22/2011 05:55:55 AM (7 years ago)
Author:
nacin
Message:

Remove 'update' from site-users.php on redirect. props PeteMall, fixes #18895.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-users.php

    r19122 r19394  
    3333    '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
    3434);
     35
     36$_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] );
     37$referer = remove_query_arg( 'update', wp_get_referer() );
    3538
    3639$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
     
    148151   
    149152    restore_current_blog();
    150     wp_redirect( add_query_arg( 'update', $update, wp_get_referer() ) );
     153    wp_redirect( add_query_arg( 'update', $update, $referer ) );
    151154    exit();
    152155}
    153156
    154157if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
    155     wp_redirect( wp_get_referer() );
     158    wp_redirect( $referer );
    156159    exit();
    157160}
Note: See TracChangeset for help on using the changeset viewer.