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:
ryan
2005-11-16 06:29:36 +00:00
parent 005dce9352
commit 25b644e8ce
6 changed files with 50 additions and 14 deletions

View File

@@ -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');