xwp / stream

🗄️ Stream plugin for WordPress

Home Page:https://wordpress.org/plugins/stream/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Post Revision ID associated to record is not the most recent one

shadyvb opened this issue · comments

Posts connector stores revision_id meta var for updated posts, so you can view changes and later be able to restore them quickly.

The tracking action happens before the revision is actually inserted, resulting in revision_id being always one revision earlier.

@fjarrett as described in 0496628#commitcomment-7072242 , i think we need to rollback #593 and take into account that wp_transition_post_status can be used directly.

@shadyvb It's unfortunate that this was already merged and released publicly without knowing your full thoughts on the PR.

@fjarrett Sorry for that, though we probably still need to address this sometime, as it might be a breaking change for some - custom - connectors.

@shadyvb #593 PR reverted from develop in c9b171a6624e