[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 17:19:20 UTC 2012


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

Comment (by scribu):

 We didn't kill the page, but we removed the globals that shouldn't be
 accessed directly:

 http://codex.wordpress.org/Global_Variables

 Indeed, the old version of the Codex page encouraged unwaranted use of
 global variables. I didn't even know it existed, so thanks for bringing it
 up, MattyRob.

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


More information about the wp-trac mailing list