[wp-trac] [WordPress Trac] #11815: _future_post_hook should not call _deprecated_argument()

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 7 19:47:58 UTC 2010


#11815: _future_post_hook should not call _deprecated_argument()
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:  westi
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  3.0  
Component:  Plugins       |     Version:       
 Severity:  blocker       |    Keywords:       
--------------------------+-------------------------------------------------
 wp_transition_post_status() passes $post->ID to all
 "${new_status}_$post->post_type" actions, which _future_post_hook chokes
 on.

 Because the _deprecated_argument() error that is triggered blocks headers
 from being sent, this really screws up the ability to schedule a future
 post.

 This argument was never used by _future_post_hook, but we should just
 leave it in anyway and mark it with a comment.

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


More information about the wp-trac mailing list