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
This commit is contained in:
Scott Taylor 2014-05-06 21:16:42 +00:00
parent 5530fe4c11
commit 5e90fb1b3e

View File

@ -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':