Remove ints from switch. see #11073

git-svn-id: https://develop.svn.wordpress.org/trunk@12150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-11-05 22:53:31 +00:00
parent 08c7020ab8
commit 6c86018563
1 changed files with 0 additions and 2 deletions

View File

@ -1181,12 +1181,10 @@ function wp_set_comment_status($comment_id, $comment_status, $wp_error = false)
switch ( $comment_status ) {
case 'hold':
case '0':
case 0:
$status = '0';
break;
case 'approve':
case '1':
case 1:
$status = '1';
if ( get_option('comments_notify') ) {
$comment = get_comment($comment_id);