WordPress.org

Make WordPress Core

Changeset 34832


Ignore:
Timestamp:
10/05/2015 06:32:38 PM (4 years ago)
Author:
DrewAPicture
Message:

Revisions: Also pass the $revision post object to the wp_prepare_revision_for_js filter, introduced in [34541].

Props helen.
Fixes #28627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r34831 r34832  
    231231         *     @type bool|false $restoreUrl URL if the revision can be restored, false otherwise.
    232232         * }
     233         * @param WP_Post $revision       The revision's WP_Post object.
    233234         * @param WP_Post $post           The revision's parent WP_Post object.
    234235         */
    235         $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $post );
     236        $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post );
    236237    }
    237238
Note: See TracChangeset for help on using the changeset viewer.