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
This commit is contained in:
scribu 2010-11-25 02:05:52 +00:00
parent 9de282e670
commit ca6171333d

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