[wp-trac] [WordPress Trac] #32533: wp_delete_post() is not deleting "wp_term_relationships"

WordPress Trac noreply at wordpress.org
Fri May 29 21:15:36 UTC 2015


#32533: wp_delete_post() is not deleting "wp_term_relationships"
----------------------------+-----------------------------
 Reporter:  vishalkakadiya  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Taxonomy        |    Version:  4.2.2
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 I am working with '''custom post types''' and '''custom taxonomy''',
 recently i need to delete unwanted posts from the database.

 I used '''wp_delete_post()''' function with the second argument was
 '''"true"''' to delete the post and all the related data to that
 particular post.

 But I found that it is not deleting the data from the
 '''"wp_term_relationships"''' table clearly notice that it is happens with
 '''"custom taxonomy"''' made for the '''"custom post types"'''.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32533>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list