New hook for when comment status is changed.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1365 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eef22d1091
commit
557fe886cd
|
@ -915,6 +915,7 @@ function wp_set_comment_status($comment_id, $comment_status) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($wpdb->query($query)) {
|
if ($wpdb->query($query)) {
|
||||||
|
do_action('wp_set_comment_status', $comment_id);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue