[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 15:59:49 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
-------------------------------+------------------------------
Changes (by boonebgorges):
* keywords: => reporter-feedback
Comment:
Hi @Jonathandejong - Welcome to WordPress Trac!
I can't think of a reason why WP itself would be triggering a post
deletion when clicking on a post name from edit.php.
Your best next step is to get a backtrace. I'd suggest writing a small
plugin that records the contents of `$_SERVER` as well as
`debug_backtrace()` into a log file whenever `wp_delete_post()` is called.
Then, use the site until you trigger the redirect behavior you've
described.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35871#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list