[wp-trac] [WordPress Trac] #22170: before_delete_posts does not support custom post types
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 13 06:41:07 UTC 2012
#22170: before_delete_posts does not support custom post types
-------------------------------+----------------------
Reporter: ZaneMatthew | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Post Types | Version: 3.4.2
Severity: normal | Resolution: invalid
Keywords: reporter-feedback |
-------------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
{{{
register_post_type( 'test' );
$id = wp_insert_post( array( 'post_type' => 'test' ) );
var_dump( $id );
var_dump( did_action( 'before_delete_post' ) ); // 0
wp_delete_post( $id );
var_dump( did_action( 'before_delete_post' ) ); // 1
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22170#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list