Make WordPress Core

Changeset 34842


Ignore:
Timestamp:
10/06/2015 12:58:17 AM (9 years ago)
Author:
helen
Message:

Revisions: Add a wp_post_revision_title_expanded filter.

This allows for content to be added to revision lists, such as in the revisions metabox.

fixes #9681.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r34768 r34842  
    16491649        $revision_date_author = sprintf( $autosavef, $revision_date_author );
    16501650
    1651     return $revision_date_author;
     1651    /**
     1652     * Filter the formatted author and date for a revision.
     1653     *
     1654     * @since 4.4.0
     1655     *
     1656     * @param string  $revision_date_author The formatted string.
     1657     * @param WP_Post $revision             The revision object.
     1658     * @param bool    $link                 Whether to link to the revisions page, as passed into
     1659     * wp_post_revision_title_expanded().
     1660     */
     1661    return apply_filters( 'wp_post_revision_title_expanded', $revision_date_author, $revision, $link );
    16521662}
    16531663
Note: See TracChangeset for help on using the changeset viewer.