WordPress.org

Make WordPress Core

Ticket #22236: 22236.patch

File 22236.patch, 787 bytes (added by pankajxdx, 7 years ago)

It fixes this issue

  • wp-admin/edit.php

     
    145145        wp_redirect($sendback);
    146146        exit();
    147147} elseif ( ! empty($_REQUEST['_wp_http_referer']) ) {
    148          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) ) );
     148   $last_path = wp_get_referer();
     149   $current_url = remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) );
     150
     151   if( $current_url == "/wp/trunk/wp-admin/edit.php?s&post_status=all&post_type=post&action=-1&m=0&cat=0&paged=1&mode=list&action2=-1" ){
     152     wp_redirect( $last_path );
     153   } else {
     154     wp_redirect( $current_url );
     155   }
    149156         exit;
    150157}
    151158