[wp-trac] [WordPress Trac] #9084: Problem when wp_insert_post_data filter changes post status

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 10 18:43:59 GMT 2009


#9084: Problem when wp_insert_post_data filter changes post status
--------------------------+-------------------------------------------------
 Reporter:  sirzooro      |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.7.1    
Component:  General       |     Version:  2.7      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 wp_insert_post() calls wp_insert_post_data filter and then continues
 without updating local variables. This can cause problems when filter will
 change them. I found this issue after I created plugin which changes posts
 status back to Draft if some conditions are not met. After this status
 change transition_post_status action is invoked with incorrect new state
 parameter. Because of this WP Status Notifier plugin incorrectly sends
 emails with notifications.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/9084>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list