Prevent WSOD when no comments selected for bulk action. See #15572

git-svn-id: http://svn.automattic.com/wordpress/trunk@16580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-25 02:05:52 +00:00
parent 4e87af0b1f
commit 37cfa3acde

View File

@ -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;
}