mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 21:48:36 +01:00
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
This commit is contained in:
parent
de262f553c
commit
7eeafa3537
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user