Make WordPress Core

Changeset 34831


Ignore:
Timestamp:
10/05/2015 06:02:41 PM (10 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

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

    r34541 r34831  
    217217         * @since 4.4.0
    218218         *
    219          * @param array   $revisions_data The bootstrapped data for the revisions screen.
     219         * @param array   $revisions_data {
     220         *     The bootstrapped data for the revisions screen.
     221         *
     222         *     @type int        $id         Revision ID.
     223         *     @type string     $title      Title for the revision's parent WP_Post object.
     224         *     @type int        $author     Revision post author ID.
     225         *     @type string     $date       Date the revision was modified.
     226         *     @type string     $dateShort  Short-form version of the date the revision was modified.
     227         *     @type string     $timeAgo    GMT-aware amount of time ago the revision was modified.
     228         *     @type bool       $autosave   Whether the revision is an autosave.
     229         *     @type bool       $current    Whether the revision is both not an autosave and the post
     230         *                                  modified date matches the revision modified date (GMT-aware).
     231         *     @type bool|false $restoreUrl URL if the revision can be restored, false otherwise.
     232         * }
    220233         * @param WP_Post $post           The revision's parent WP_Post object.
    221234         */
Note: See TracChangeset for help on using the changeset viewer.