Changeset 11860
- Timestamp:
- 08/21/2009 01:27:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r11836 r11860 1117 1117 } 1118 1118 1119 $comment_old = get_comment($comment_id); 1120 1119 1121 if ( !$wpdb->update( $wpdb->comments, array('comment_approved' => $status), array('comment_ID' => $comment_id) ) ) { 1120 1122 if ( $wp_error ) … … 1129 1131 1130 1132 do_action('wp_set_comment_status', $comment_id, $comment_status); 1131 wp_transition_comment_status($comment_status, $comment ->comment_approved, $comment);1133 wp_transition_comment_status($comment_status, $comment_old->comment_approved, $comment); 1132 1134 1133 1135 wp_update_comment_count($comment->comment_post_ID);
Note: See TracChangeset
for help on using the changeset viewer.