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:
parent
08c7020ab8
commit
6c86018563
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user