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

Props sebastian.pisula.
Fixes #35474.

git-svn-id: https://develop.svn.wordpress.org/trunk@36321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2016-01-15 19:27:57 +00:00
parent 13e7e78ddd
commit 20580bed82
1 changed files with 3 additions and 1 deletions

View File

@ -380,10 +380,12 @@ function get_the_excerpt( $post = null ) {
* Filter the retrieved post excerpt. * Filter the retrieved post excerpt.
* *
* @since 1.2.0 * @since 1.2.0
* @since 4.5.0 Introduced the `$post` parameter.
* *
* @param string $post_excerpt The post excerpt. * @param string $post_excerpt The post excerpt.
* @param WP_Post $post Post object.
*/ */
return apply_filters( 'get_the_excerpt', $post->post_excerpt ); return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
} }
/** /**