More comment functions can accept a full object instead of comment_ID to reduce cache/db lookups.

See ##33638.



git-svn-id: https://develop.svn.wordpress.org/trunk@34129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-14 21:39:46 +00:00
parent ab7ca361dd
commit 166ee8674b
5 changed files with 83 additions and 70 deletions

View File

@@ -4265,7 +4265,7 @@ function wp_scheduled_delete() {
delete_comment_meta($comment_id, '_wp_trash_meta_time');
delete_comment_meta($comment_id, '_wp_trash_meta_status');
} else {
wp_delete_comment($comment_id);
wp_delete_comment( $del_comment );
}
}
}