diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 9c28e5c524..4cc857306d 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -380,10 +380,12 @@ function get_the_excerpt( $post = null ) { * Filter the retrieved post excerpt. * * @since 1.2.0 + * @since 4.5.0 Introduced the `$post` parameter. * * @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 ); } /**