Core Function
View Source on Trac ↗ _wp_upgrade_revisions_of_post()
_wp_upgrade_revisions_of_post( mixed $post, mixed $revisions ) Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post WP_Post | Post object. Required |
| $revisions array | Current revisions of the post. Required |
Return Value
(bool)
true if the revisions were upgraded, false if problems.
Function Information
Since Version
3.6.0
Source File
wp-includes/revision.php
Advertisement