[wp-trac] [WordPress Trac] #23906: post_save callback is passed post instead of revision, breaking back-compat
WordPress Trac
noreply at wordpress.org
Tue Apr 9 10:17:04 UTC 2013
#23906: post_save callback is passed post instead of revision, breaking back-compat
--------------------------+-------------------------
Reporter: iandunn | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Revisions | Version: trunk
Severity: normal | Resolution: worksforme
Keywords: |
--------------------------+-------------------------
Changes (by kovshenin):
* status: new => closed
* resolution: => worksforme
* milestone: 3.6 =>
Comment:
Looks like this is caused by [23842], however, `wp_insert_post` is running
more than once, but you're running `wp_die` causing it to stop execution
after the first round, which looks wrong. Prior to that change, the
revision is saved first, then the post. After the change it's vice versa,
but I confirmed that both the post and the revision are passed through the
`save_post` hook.
Closing as worksforme, feel free to reopen.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23906#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list