Find latest/published version of post using wp-cli

Answering my own question, the current revision has these properties as compared to revisions: The post_status will be “publish” not “inherit”. The post_parent will be 0 The post_type will be “post” not “revision”. Additionally, the ID of the current revision doesn’t change when you update the post; instead, the older version is given a new … Read more