check_and_publish_future_post() should set global $post
|Reported by:||MattyRob||Owned by:|
The above function check to see if posts with a 'future' post type are due to become visible on a blog and triggers a bunch of hooks like the post transition hooks.
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.
Declaring the $post variable as a global in the check_and_publish_future_post() function resolves some of these differences, if possible perhaps the $post_id global should be declared somewhere too but I can't figure out where just yet.
Change History (15)
- Keywords dev-feedback removed
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed