WordPress.org

Make WordPress Core

Changeset 12292


Ignore:
Timestamp:
11/29/09 20:05:39 (4 years ago)
Author:
ryan
Message:

comment status transition was broken due to sneaky reference return in &get_comment. Props skeltoac

File:
1 edited

Legend:

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

    r12290 r12292  
    12631263    } 
    12641264 
    1265     $comment_old = get_comment($comment_id); 
     1265    $comment_old = wp_clone(get_comment($comment_id)); 
    12661266 
    12671267    if ( !$wpdb->update( $wpdb->comments, array('comment_approved' => $status), array('comment_ID' => $comment_id) ) ) { 
Note: See TracChangeset for help on using the changeset viewer.