Make WordPress Core


Ignore:
Timestamp:
04/29/2009 05:22:08 PM (16 years ago)
Author:
ryan
Message:

Fix status transitions from edit comment form. Props josephscott. fixes #8863

File:
1 edited

Legend:

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

    r11109 r11124  
    10901090    $comment = $wpdb->escape($comment);
    10911091
     1092    $old_status = $comment['comment_approved'];
     1093
    10921094    // Merge old and new fields with new fields overwriting old ones.
    10931095    $commentarr = array_merge($comment, $commentarr);
     
    11181120    do_action('edit_comment', $comment_ID);
    11191121    $comment = get_comment($comment_ID);
    1120     wp_transition_comment_status($comment_approved, $comment->comment_approved, $comment);
     1122    wp_transition_comment_status($comment->comment_approved, $old_status, $comment);
    11211123    return $rval;
    11221124}
Note: See TracChangeset for help on using the changeset viewer.