From 5e90fb1b3e2db1cf9416372e108b7f989feea520 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 21:16:42 +0000 Subject: [PATCH] In `wp_set_comment_status()`, the `default` case returns, so no default value for `$status` is needed. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28324 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 52879ebbe5..c81e4c5ce2 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -1734,7 +1734,6 @@ function wp_new_comment( $commentdata ) { function wp_set_comment_status($comment_id, $comment_status, $wp_error = false) { global $wpdb; - $status = '0'; switch ( $comment_status ) { case 'hold': case '0':