[wp-trac] Re: [WordPress Trac] #5801: safety measure for cron to publish future post

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 8 21:12:22 GMT 2008


#5801: safety measure for cron to publish future post
---------------------+------------------------------------------------------
 Reporter:  hailin   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.5      
Component:  General  |      Version:           
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by ryan):

  * milestone:  2.6 => 2.5

Comment:

 wp_publish_post can be used outside of a future post publication context.
 Requests to publish drafts should not be ignored.  Perhaps a better fix
 would be to hook a publish_future_post() function to the
 publish_future_post action that does the necessary checks before calling
 wp_publish_post().

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


More information about the wp-trac mailing list