[wp-trac] [WordPress Trac] #21580: check_and_publish_future_post() should set global $post

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 18 03:28:35 UTC 2012


#21580: check_and_publish_future_post() should set global $post
--------------------------+------------------------------
 Reporter:  MattyRob      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cron          |     Version:  3.4.1
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by scribu):

 > Hooks such as draft_to_publish behave differently from future_to_publish
 because certain variables that are global in the former case are not in
 the latter case.

 Please be more specific.

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


More information about the wp-trac mailing list