mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Deprecate wp_clone(). Call clone directly. Props hakre. fixes #16813
git-svn-id: https://develop.svn.wordpress.org/trunk@17613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1394,7 +1394,7 @@ function wp_set_comment_status($comment_id, $comment_status, $wp_error = false)
|
||||
return false;
|
||||
}
|
||||
|
||||
$comment_old = wp_clone(get_comment($comment_id));
|
||||
$comment_old = clone get_comment($comment_id);
|
||||
|
||||
if ( !$wpdb->update( $wpdb->comments, array('comment_approved' => $status), array('comment_ID' => $comment_id) ) ) {
|
||||
if ( $wp_error )
|
||||
|
||||
Reference in New Issue
Block a user