[wp-trac] [WordPress Trac] #15572: White screen bulk action but no selected comments
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 24 21:04:31 UTC 2010
#15572: White screen bulk action but no selected comments
--------------------------+-------------------------------------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version: 3.1
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
1. Visit wp-admin/edit-comments.php
2. Perform a bulk action without checking any comments
3. White screen
The problem is that wp_get_refere() is returning false (since
`_wp_http_referer` == `REQUEST_URI`) and so the
[http://core.trac.wordpress.org/browser/trunk/wp-admin/edit-
comments.php#L33 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 [http://core.trac.wordpress.org/browser/trunk/wp-admin/edit-
comments.php?rev=15132#L96 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15572>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list