[wp-trac] Re: [WordPress Trac] #8792: Transitions should be called even if the status hasn't changed

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 5 10:47:17 GMT 2009


#8792: Transitions should be called even if the status hasn't changed
-------------------------+--------------------------------------------------
 Reporter:  nbachiyski   |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.8      
Component:  General      |      Version:  2.7      
 Severity:  normal       |   Resolution:           
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Comment (by nbachiyski):

 Replying to [comment:2 jacobsantos]:
 > Yeah, you'll probably want to look at Subscribe2 plugin and test with
 that.

 It doesn't use {{{transition_post_status}}}, it lists all types in
 {{{xxx_to_publish}}} hooks.

 The change isn't big and if we include in the plugin upgrade docs it won't
 cause any trouble. I like it a lot better than introducing a new hook or
 just adding the old status to the common hook, because it will be a lot
 more generic and more cases can be handled with less code.

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


More information about the wp-trac mailing list