Changeset 9490 for trunk/wp-includes/comment.php
- Timestamp:
- 11/03/2008 06:44:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r9379 r9490 156 156 return $_comment; 157 157 } elseif ( $output == ARRAY_A ) { 158 return get_object_vars($_comment); 158 $__comment = get_object_vars($_comment); 159 return $__comment; 159 160 } elseif ( $output == ARRAY_N ) { 160 return array_values(get_object_vars($_comment)); 161 $__comment = array_values(get_object_vars($_comment)); 162 return $__comment; 161 163 } else { 162 164 return $_comment; … … 779 781 do_action("comment_${old_status}_to_$new_status", $comment); 780 782 } 781 do_action("comment_${new_status}_$comment->comment_type", $comment-> ID, $comment);783 do_action("comment_${new_status}_$comment->comment_type", $comment->comment_ID, $comment); 782 784 } 783 785 … … 1077 1079 wp_update_comment_count($comment_post_ID); 1078 1080 do_action('edit_comment', $comment_ID); 1081 $comment = get_comment($comment_ID); 1079 1082 wp_transition_comment_status($comment_approved, $comment->comment_approved, $comment); 1080 1083 return $rval;
Note: See TracChangeset
for help on using the changeset viewer.