From ca6171333d96b3de8cf58fad73e304938dd1f033 Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 25 Nov 2010 02:05:52 +0000 Subject: [PATCH] Prevent WSOD when no comments selected for bulk action. See #15572 git-svn-id: https://develop.svn.wordpress.org/trunk@16580 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 51bbdc35ac..288e1ec125 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -29,7 +29,7 @@ if ( $doaction ) { $doaction = ( $_REQUEST['action'] != -1 ) ? $_REQUEST['action'] : $_REQUEST['action2']; } elseif ( isset( $_REQUEST['ids'] ) ) { $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) ); - } else { + } elseif ( wp_get_referer() ) { wp_redirect( wp_get_referer() ); exit; }