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:
Ryan Boren
2011-04-06 17:44:29 +00:00
parent 71eeebc9bc
commit 259c415b7b
5 changed files with 26 additions and 23 deletions

View File

@@ -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 )