From a134491455e4f575fc5f28e106a6751567bc64bb Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 5 Oct 2015 18:03:26 +0000 Subject: [PATCH] Docs: Document the `$revision_data` parameter passed to the `wp_prepare_revision_for_js` filter with a hash notation. The hook was introduced in [34541]. See #28627. Built from https://develop.svn.wordpress.org/trunk@34831 git-svn-id: http://core.svn.wordpress.org/trunk@34796 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/revision.php | 15 ++++++++++++++- wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 756a1dd500..db6ea9b570 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -216,7 +216,20 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null * * @since 4.4.0 * - * @param array $revisions_data The bootstrapped data for the revisions screen. + * @param array $revisions_data { + * The bootstrapped data for the revisions screen. + * + * @type int $id Revision ID. + * @type string $title Title for the revision's parent WP_Post object. + * @type int $author Revision post author ID. + * @type string $date Date the revision was modified. + * @type string $dateShort Short-form version of the date the revision was modified. + * @type string $timeAgo GMT-aware amount of time ago the revision was modified. + * @type bool $autosave Whether the revision is an autosave. + * @type bool $current Whether the revision is both not an autosave and the post + * modified date matches the revision modified date (GMT-aware). + * @type bool|false $restoreUrl URL if the revision can be restored, false otherwise. + * } * @param WP_Post $post The revision's parent WP_Post object. */ $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $post ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6fabfb4653..929bc4a471 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34829'; +$wp_version = '4.4-alpha-34831'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.