mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1161,9 +1161,9 @@ function wp_transition_comment_status($new_status, $old_status, $comment) {
|
||||
// Call the hooks
|
||||
if ( $new_status != $old_status ) {
|
||||
do_action('transition_comment_status', $new_status, $old_status, $comment);
|
||||
do_action("comment_${old_status}_to_$new_status", $comment);
|
||||
do_action("comment_{$old_status}_to_{$new_status}", $comment);
|
||||
}
|
||||
do_action("comment_${new_status}_$comment->comment_type", $comment->comment_ID, $comment);
|
||||
do_action("comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user