[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 16:31: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 MattyRob):

 Here you go:

 http://codex.wordpress.org/Global_Variables

 It does read to me as encouraging use of the variables.

 From an efficiency perspective too is it not better to access variables
 like post rather than querying the database again?

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


More information about the wp-trac mailing list