Ticket #8863: wp-includes--comment.php.diff
| File wp-includes--comment.php.diff, 873 bytes (added by , 17 years ago) |
|---|
-
wp-includes/comment.php
1089 1089 // Escape data pulled from DB. 1090 1090 $comment = $wpdb->escape($comment); 1091 1091 1092 // Save status info, it might have changed 1093 $new_status = $commentarr['comment_status']; 1094 $old_status = $comment['comment_approved']; 1095 1092 1096 // Merge old and new fields with new fields overwriting old ones. 1093 1097 $commentarr = array_merge($comment, $commentarr); 1094 1098 … … 1117 1121 wp_update_comment_count($comment_post_ID); 1118 1122 do_action('edit_comment', $comment_ID); 1119 1123 $comment = get_comment($comment_ID); 1120 wp_transition_comment_status( $comment_approved, $comment->comment_approved, $comment);1124 wp_transition_comment_status( $new_status, $old_status, $comment ); 1121 1125 return $rval; 1122 1126 } 1123 1127