fix core issue delete post also called for trash
fix core issue delete post also called for trash