mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
New hook for when comment status is changed.
git-svn-id: https://develop.svn.wordpress.org/trunk@1365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b2b196d3de
commit
9df4c2452a
@ -915,6 +915,7 @@ function wp_set_comment_status($comment_id, $comment_status) {
|
||||
}
|
||||
|
||||
if ($wpdb->query($query)) {
|
||||
do_action('wp_set_comment_status', $comment_id);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user