WordPress.org

Make WordPress Core

Ticket #18895: 18895.2.diff

File 18895.2.diff, 929 bytes (added by PeteMall, 7 years ago)
  • wp-admin/network/site-users.php

     
    3030        '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
    3131);
    3232
     33$_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] );
     34$referer = remove_query_arg( 'update', wp_get_referer() );
     35
    3336$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
    3437
    3538if ( ! $id )
     
    144147        }
    145148       
    146149        restore_current_blog();
    147         wp_redirect( add_query_arg( 'update', $update, wp_get_referer() ) );
     150        wp_redirect( add_query_arg( 'update', $update, $referer ) );
    148151        exit();
    149152}
    150153
    151154if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
    152         wp_redirect( wp_get_referer() );
     155        wp_redirect( $referer );
    153156        exit();
    154157}
    155158