wp_prepare_revisions_for_js
wp_prepare_revisions_for_js ( $post, $selected_revision_id, $from = null )
Parameters:- (WP_Post|int) post The post object or post ID.
- (int) selected_revision_id The selected revision ID.
- (int) from Optional. The revision ID to compare from.
Returns:- (array) An associative array of revision data and related settings.
Defined at: - Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Description
Prepare revisions for JavaScript.