Ticket #15422: wp_transition_comment_status.patch
File wp_transition_comment_status.patch, 603 bytes (added by , 15 years ago) |
---|
-
comment.php
1096 1096 // Call the hooks 1097 1097 if ( $new_status != $old_status ) { 1098 1098 do_action('transition_comment_status', $new_status, $old_status, $comment); 1099 do_action("comment_ ${old_status}_to_$new_status", $comment);1099 do_action("comment_{$old_status}_to_{$new_status}", $comment); 1100 1100 } 1101 do_action("comment_ ${new_status}_$comment->comment_type", $comment->comment_ID, $comment);1101 do_action("comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment); 1102 1102 }