Make WordPress Core


Ignore:
Timestamp:
11/29/2009 08:05:39 PM (15 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.