_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

Upgrade the revisions author, add the current post as a revision and set the revisions version to 1

Related Functions

wp_prepare_revisions_for_js, _wp_post_revision_fields, _wp_post_revision_data, wp_ajax_get_revision_diffs, wp_get_revision_ui_diff

Top Google Results

User discussions

wpseek mobile