[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 20:07:43 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 boonebgorges):
Yes, I was thinking something like:
{{{
add_action( 'before_delete_post', function() {
error_log( print_r( debug_backtrace(), true ) );
error_log( print_r( $_SERVER, true ) );
}, 0 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35871#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list