[wp-trac] Re: [WordPress Trac] #5608: Future Private Post is immediately visible

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 1 21:54:24 GMT 2008


#5608: Future Private Post is immediately visible
-------------------------------+--------------------------------------------
 Reporter:  mattyrob           |        Owner:  anonymous
     Type:  defect             |       Status:  new      
 Priority:  low                |    Milestone:  2.6      
Component:  Administration     |      Version:  2.3.2    
 Severity:  normal             |   Resolution:           
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Comment (by Otto42):

 Replying to [comment:3 MattyRob]:
 > Can I propose 2 potential fixes for this:
 >
 > 1/ Add a date parameter into the get_posts function to ensure future
 posts are not displayed based on time rather than post_status being future
 >
 > 2/ Introduce a new post_status of 'future_private'
 >
 > It is still affecting (8226)

 Seems like a lot of trouble to go to. I think it's simpler than that.

 The post_status should be set to "future", but the cron job that is
 scheduled should a parameter indicating the private status of the post.
 The publish_future_post hook will pass this along to whatever function is
 publishing it, and then the post will get changed to private, along with
 all the future_to_private hooks getting run and such.

 Posts are published by the cron job. That's what future means. If we have
 the job itself send along how to publish the post, then it will take care
 of it for you.

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


More information about the wp-trac mailing list