mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Don't use private wpdb vars. See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1382,9 +1382,7 @@ function wp_update_comment($commentarr) {
|
||||
$comment_approved = 1;
|
||||
|
||||
$data = compact('comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt');
|
||||
$wpdb->update($wpdb->comments, $data, compact('comment_ID'));
|
||||
|
||||
$rval = $wpdb->rows_affected;
|
||||
$rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
|
||||
|
||||
clean_comment_cache($comment_ID);
|
||||
wp_update_comment_count($comment_post_ID);
|
||||
|
||||
Reference in New Issue
Block a user