[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:37:01 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):

 Thanks for updating the Codex and I'm glad to hear avoiding use of globals
 isn't going to make my code database heavy.

 @Nacin, I reported this because of an issue raised with me around plugin
 conflict, the other plugin takes no parameters and is beyond my control so
 maybe I should decline the request as a wontfix too!

 @Scribu, I copied your code above exactly including those add action lines
 - still doesn't work. The do_action line being hooked to
 (do_action("{$old_status}_to_{$new_status}", $post);) only passes $post.

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


More information about the wp-trac mailing list