#15416 closed defect (bug) (fixed)
Bulk edit on paginated edit.php takes you back to the first page
Reported by: | nacin | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | high |
Severity: | normal | Version: | 3.1 |
Component: | Administration | Keywords: | needs-testing has-patch |
Focuses: | Cc: |
Description
Side note: Shouldn't we have hashes for pagination? Otherwise we present ourselves a UX issue for links being copy-pasted.
Attachments (2)
Change History (14)
#2
@
14 years ago
- Cc garyc40@… added
- Keywords has_patch needs-testing added
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).
#3
@
14 years ago
- Keywords has-patch added; has_patch removed
Please keep property changes (svn:ignore in this case) out of patches.
#4
follow-up:
↓ 5
@
14 years ago
Patch updated.
Btw, is there any way I can leave out the property changes when using "svn diff" ? Is there any command line options for that? Googled around a bit but couldn't find any answers.
#5
in reply to:
↑ 4
@
14 years ago
Replying to garyc40:
Patch updated.
Thanks.
Btw, is there any way I can leave out the property changes when using "svn diff" ? Is there any command line options for that? Googled around a bit but couldn't find any answers.
Don't know. Instead, here's an alias for svn stat
that doesn't list unknown files:
mod(){ svn stat --ignore-externals | grep '^[^?X]' }
Taken from here: http://andrewnacin.com/2010/05/13/my-wordpress-bash-functions/
#9
@
14 years ago
I just high-level tested the UI regarding this fix against current trunk. It does not work for sorted pagination. Bulk actions still make you loose the sorting in sorted pagination. Sorting again after bulk actions will bring you back to page 1.
Same is in #16162 (related as well), the more general bug about sorting is in #16166.
#10
@
14 years ago
- Keywords has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
- Version set to 3.1
Related: http://core.trac.wordpress.org/ticket/14579#comment:140