WordPress.org

Make WordPress Core

Ticket #17545: 17545.diff

File 17545.diff, 1.6 KB (added by kawauso, 3 years ago)
  • wp-admin/network/site-themes.php

     
    4343$_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] );  
    4444$referer = remove_query_arg( $temp_args, wp_get_referer() ); 
    4545 
     46if ( ! empty( $_REQUEST['paged'] ) ) 
     47        $referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer ); 
     48 
    4649$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; 
    4750 
    4851if ( ! $id ) 
  • wp-admin/network/site-users.php

     
    5757 
    5858$action = $wp_list_table->current_action(); 
    5959 
     60// Clean up request URI from temporary args for screen options/paging uri's to work as expected. 
     61$_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] );  
     62$referer = remove_query_arg( 'update', wp_get_referer() ); 
     63 
     64if ( ! empty( $_REQUEST['paged'] ) ) 
     65        $referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer ); 
     66 
    6067if ( $action ) { 
    6168        switch_to_blog( $id ); 
    6269         
     
    146153        } 
    147154         
    148155        restore_current_blog(); 
    149         wp_redirect( add_query_arg( 'update', $update, wp_get_referer() ) ); 
     156        wp_redirect( add_query_arg( 'update', $update, $referer ) ); 
    150157        exit(); 
    151158} 
    152159 
    153160if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) { 
    154         wp_redirect( wp_get_referer() ); 
     161        wp_redirect( $referer ); 
    155162        exit(); 
    156163} 
    157164