[wp-trac] [WordPress Trac] #15416: Bulk edit on paginated edit.php takes you back to the first page

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 10 08:24:17 UTC 2010


#15416: Bulk edit on paginated edit.php takes you back to the first page
----------------------------+-----------------------------------------------
 Reporter:  nacin           |       Owner:                          
     Type:  defect (bug)    |      Status:  new                     
 Priority:  high            |   Milestone:  3.1                     
Component:  Administration  |     Version:                          
 Severity:  normal          |    Keywords:  has_patch, needs-testing
----------------------------+-----------------------------------------------
Changes (by garyc40):

 * cc: garyc40@… (added)
  * keywords:  => has_patch, needs-testing


Comment:

 Patch attached.

 The reason why it gets redirected to the original page is because in
 edit.php (as well as edit-comments.php), wp_get_referer() is processed to
 feed the redirected URL back to wp_redirect().

 This means, when you go directly to edit.php?paged=3 for example, then use
 the javascript pagination feature to navigate to page 4, and do some bulk
 action there, you'll be redirected to page 3 nevertheless.

 Both edit.php and edit-comments.php have this bug. The attached patch
 fixes it for both. Also, when you delete post / comments on the last page,
 normally you'll be redirected to a page that says "No posts found". This
 patch fixes it as well (by redirecting to the correct last page).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15416#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list