Remove ints from switch. see #11073

git-svn-id: http://svn.automattic.com/wordpress/trunk@12150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-05 22:53:31 +00:00
parent b75a06af15
commit 87208b9a48

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