Make WordPress Core


Ignore:
Timestamp:
02/24/2010 12:18:18 AM (16 years ago)
Author:
nacin
Message:

Don't use private wpdb vars. See #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r13242 r13353  
    13831383
    13841384    $data = compact('comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt');
    1385     $wpdb->update($wpdb->comments, $data, compact('comment_ID'));
    1386 
    1387     $rval = $wpdb->rows_affected;
     1385    $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
    13881386
    13891387    clean_comment_cache($comment_ID);
Note: See TracChangeset for help on using the changeset viewer.