mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Post: After [36319], add $post
parameter to the get_the_excerpt
filter.
Props sebastian.pisula. Fixes #35474. Built from https://develop.svn.wordpress.org/trunk@36321 git-svn-id: http://core.svn.wordpress.org/trunk@36288 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1bad16273e
commit
552ed65d3b
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-1452869412612';
|
||||
$wp_version = '4.5-alpha-1452886092547';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user