Opened 17 years ago
Closed 17 years ago
#11815 closed defect (bug) (fixed)
_future_post_hook should not call _deprecated_argument()
| Reported by: | nacin | Owned by: | westi |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Plugins | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
wp_transition_post_status() passes $post->ID to all "${new_status}_$post->post_type" actions, which _future_post_hook chokes on.
Because the _deprecated_argument() error that is triggered blocks headers from being sent, this really screws up the ability to schedule a future post.
This argument was never used by _future_post_hook, but we should just leave it in anyway and mark it with a comment.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [12679]) _future_post_hook should not call _deprecated_argument() as it will always get that argument from the action it is hooked to. Fixes #11815 props nacin.