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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 7 18:24:11 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:  reopened => closed
 * resolution:   => invalid


Comment:

 Check the post type of the post objects before doing anything.

 If your post type supported revisions, you'd see both actions fire twice
 -- transition then save for the revision, transition then save for the
 post.

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


More information about the wp-trac mailing list