From 3f747a63952e5a7e3e56e91ac4f69ac45a8c92e3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 5 Oct 2015 18:33:28 +0000 Subject: [PATCH] Revisions: Also pass the `$revision` post object to the `wp_prepare_revision_for_js` filter, introduced in [34541]. Props helen. Fixes #28627. Built from https://develop.svn.wordpress.org/trunk@34832 git-svn-id: http://core.svn.wordpress.org/trunk@34797 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/revision.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index db6ea9b570..3595226111 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -230,9 +230,10 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null * 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 $revision The revision's WP_Post object. * @param WP_Post $post The revision's parent WP_Post object. */ - $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $post ); + $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 929bc4a471..bc899f773a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34831'; +$wp_version = '4.4-alpha-34832'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.