mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
comment status transition was broken due to sneaky reference return in &get_comment. Props skeltoac
git-svn-id: http://svn.automattic.com/wordpress/trunk@12292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f33e161d18
commit
6aeb3bd273
@ -1262,7 +1262,7 @@ function wp_set_comment_status($comment_id, $comment_status, $wp_error = false)
|
||||
return false;
|
||||
}
|
||||
|
||||
$comment_old = get_comment($comment_id);
|
||||
$comment_old = wp_clone(get_comment($comment_id));
|
||||
|
||||
if ( !$wpdb->update( $wpdb->comments, array('comment_approved' => $status), array('comment_ID' => $comment_id) ) ) {
|
||||
if ( $wp_error )
|
||||
|
Loading…
Reference in New Issue
Block a user