Add comment_count to the posts table. Props donncha. fixes #1860
git-svn-id: http://svn.automattic.com/wordpress/trunk@3104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -56,8 +56,7 @@ case 'delete-comment' :
|
||||
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
|
||||
die('-1');
|
||||
|
||||
if ( wp_set_comment_status($comment->comment_ID, "delete") ) {
|
||||
do_action('delete_comment', $comment->comment_ID);
|
||||
if ( wp_delete_comment($comment->comment_ID) ) {
|
||||
die('1');
|
||||
} else {
|
||||
die('0');
|
||||
|
||||
Reference in New Issue
Block a user