Make WordPress Core

Changeset 36321


Ignore:
Timestamp:
01/15/2016 07:27:57 PM (11 years ago)
Author:
swissspidy
Message:

Post: After [36319], add $post parameter to the get_the_excerpt filter.

Props sebastian.pisula.
Fixes #35474.

File:
1 edited

Legend:

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

    r36319 r36321  
    381381         *
    382382         * @since 1.2.0
     383         * @since 4.5.0 Introduced the `$post` parameter.
    383384         *
    384385         * @param string $post_excerpt The post excerpt.
     386         * @param WP_Post $post Post object.
    385387         */
    386         return apply_filters( 'get_the_excerpt', $post->post_excerpt );
     388        return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
    387389}
    388390
Note: See TracChangeset for help on using the changeset viewer.