Make WordPress Core


Ignore:
Timestamp:
11/14/2010 03:50:02 PM (13 years ago)
Author:
scribu
Message:

Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r16357 r16365  
    11621162    if ( $new_status != $old_status ) {
    11631163        do_action('transition_comment_status', $new_status, $old_status, $comment);
    1164         do_action("comment_${old_status}_to_$new_status", $comment);
    1165     }
    1166     do_action("comment_${new_status}_$comment->comment_type", $comment->comment_ID, $comment);
     1164        do_action("comment_{$old_status}_to_{$new_status}", $comment);
     1165    }
     1166    do_action("comment_{$new_status}_{$comment->comment_type}", $comment->comment_ID, $comment);
    11671167}
    11681168
Note: See TracChangeset for help on using the changeset viewer.