[wp-trac] [WordPress Trac] #35871: before_delete_post incorrectly triggered from edit.php to post.php

WordPress Trac noreply at wordpress.org
Fri Feb 19 17:33:02 UTC 2016


#35871: before_delete_post incorrectly triggered from edit.php to post.php
-------------------------------+------------------------------
 Reporter:  Jonathandejong     |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.4.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  administration
-------------------------------+------------------------------

Comment (by Jonathandejong):

 Hi @boonebgorges - Thank you :)

 Me neither.. I was thinking of something like revisions or maybe the
 heartbeat api having a role in it.
 So should I use the {{{before_delete_post}}} hook for it or maybe
 {{{pre_delete_post}}} since it runs even earlier?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35871#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list