Ticket #16162: 16162.2.patch

File 16162.2.patch, 1.2 KB (added by SergeyBiryukov, 2 years ago)
  • wp-admin/edit-tags.php

     
    7878 
    7979        wp_delete_term( $tag_ID, $taxonomy ); 
    8080 
    81         $location = add_query_arg( 'message', 2, $location ); 
     81        $location = add_query_arg( array( 'message' => 2, 'paged' => $wp_list_table->get_pagenum() ), $location ); 
    8282        wp_redirect( $location ); 
    8383        exit; 
    8484 
     
    103103                        $location = $referer; 
    104104        } 
    105105 
    106         $location = add_query_arg( 'message', 6, $location ); 
     106        $location = add_query_arg( array( 'message' => 6, 'paged'=> $wp_list_table->get_pagenum() ), $location ); 
    107107        wp_redirect( $location ); 
    108108        exit; 
    109109 
  • wp-admin/upload.php

     
    8484                                } 
    8585 
    8686                                $location = add_query_arg( array( 'attached' => $attached ) , $location ); 
    87                                 wp_redirect( $location ); 
    88                                 exit; 
    8987                        } 
    9088                        break; 
    9189                case 'trash': 
     
    120118                        break; 
    121119        } 
    122120 
     121        $location = add_query_arg( 'paged', $wp_list_table->get_pagenum() ); 
    123122        wp_redirect( $location ); 
    124123        exit; 
    125124} elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) {