[wp-trac] [WordPress Trac] #19074: 'transition_post_status' is executed before 'save_post'

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 6 18:10:55 UTC 2011


#19074: 'transition_post_status' is executed before 'save_post'
--------------------------+----------------------
 Reporter:  M66B          |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Post Types    |     Version:  3.2.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 It isn't done differently for custom post types. wp_insert_post() is used
 for pages, posts, custom post types.

 You'll need to check your checkbox on transition_post_status in order to
 have the value ready for those hooks.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19074#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list