mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
5530fe4c11
commit
5e90fb1b3e
@ -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