commentmeta data orphaned when deleting a post from the trash
|Reported by:||briancolinger||Owned by:|
Adding $force_delete param to wp_delete_comment().
wp_delete_post() will now delete each comment individually using wp_delete_comment() with the $force_delete param set to true.
This fixes and issue where related commentmeta is orphaned when deleting a post from the trash.