Opened 15 years ago
Closed 15 years ago
#15572 closed defect (bug) (fixed)
White screen bulk action but no selected comments
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.1 | Priority: | normal |
| Severity: | normal | Version: | 3.1 |
| Component: | General | Keywords: | needs-patch |
| Focuses: | Cc: |
Description
- Visit wp-admin/edit-comments.php
- Perform a bulk action without checking any comments
- White screen
The problem is that wp_get_refere() is returning false (since _wp_http_referer == REQUEST_URI) and so the redirect on line 33 does nothing then we exit.
Pre-3.1 there was no exit call after the redirect so it just fell through and redirected at the end of the bulk action block where $redirect_to is set because add_query_arg (called by remove_query_arg) uses $_SERVER['REQUEST_URI'] when the old query is false.
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [16580]) Prevent WSOD when no comments selected for bulk action. See #15572