From 7eeafa353772dae89e6b5e33e4ed55a2d97fb571 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 21:17:15 +0000 Subject: [PATCH] In `wp_set_comment_status()`, the `default` case returns, so no default value for `$status` is needed. See #27882. Built from https://develop.svn.wordpress.org/trunk@28324 git-svn-id: http://core.svn.wordpress.org/trunk@28152 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 52879ebbe5..c81e4c5ce2 100644 --- a/wp-includes/comment.php +++ b/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':