Ticket #22236: 22236.patch
File 22236.patch, 787 bytes (added by , 12 years ago) |
---|
-
wp-admin/edit.php
145 145 wp_redirect($sendback); 146 146 exit(); 147 147 } 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 } 149 156 exit; 150 157 } 151 158