_wp_upgrade_revisions_of_post


_wp_upgrade_revisions_of_post ( $post, $revisions )

Access:
  • private
Parameters:
  • (WP_Post) post Post object.
  • (array) revisions Current revisions of the post.
Returns:
  • (bool) true if the revisions were upgraded, false if problems.
Defined at:

Description

Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1.

Related Functions

wp_prepare_revisions_for_js, _wp_post_revision_fields, wp_save_post_revision_on_insert, _wp_post_revision_data, wp_get_revision_ui_diff

Top Google Results

User discussions

wpseek mobile