[wp-trac] [WordPress Trac] #12842: Future dated custom posts miss schedule

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 4 14:31:01 UTC 2010


#12842: Future dated custom posts miss schedule
--------------------------+-------------------------------------------------
 Reporter:  waltervos     |       Owner:                                                                            
     Type:  defect (bug)  |      Status:  new                                                                       
 Priority:  normal        |   Milestone:  3.0                                                                       
Component:  Post Types    |     Version:  3.0                                                                       
 Severity:  normal        |    Keywords:  custom post types, future dating, posts, scheduling, cron, scheduled posts
--------------------------+-------------------------------------------------

Comment(by waltervos):

 The problem was the following:

 In wp-includes/default-filters.php the function _future_post_hook is
 hooked to future_post and future_page. This assumes that there are no
 other post types. In my patch I deleted the lines that do this and added
 the line
 {{{
 add_action( 'future_' . $post_type, '_future_post_hook', 5, 2 );
 }}}

 to the register_post_type function. This takes care of future post
 capability for any post type that's created. This seemed like the most
 elegant way of doing this.

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


More information about the wp-trac mailing list