White screen bulk action but no selected comments
|Reported by:||duck_||Owned by:||scribu|
- 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.