Codex tools: Log in
Returns the fields that will be compared when post revisions are diffed.
Note: This function is for use by other core functions only, and should not be used in plugins or themes. It is included here for completeness.
Determines which fields of posts are to be saved in revisions. If passed a post array, it will return a post array ready to be inserted into the posts table as a post revision. Otherwise, it returns an array whose keys are the post fields to be saved for post revisions.
<?php _wp_post_revision_fields( $post, $autosave ); ?>
Using the function to get the list of revision fields:
foreach ( _wp_post_revision_fields() as $field => $field_title ) : /* ... */
Using the function to prepare a post for insertion into the database as a revision:
$post = _wp_post_revision_fields( $post );
For an autosave:
$post = _wp_post_revision_fields( $post, true );
_wp_post_revision_fields() is located in