Docs: Coding standards fix after [46608].
See #48303 Built from https://develop.svn.wordpress.org/trunk@46609 git-svn-id: http://core.svn.wordpress.org/trunk@46406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
817807e5be
commit
c08dbe5236
|
@ -406,9 +406,11 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
|
|||
|
||||
if ( in_array( 'caption', $fields, true ) ) {
|
||||
/** This filter is documented in wp-includes/post-template.php */
|
||||
$caption = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
|
||||
$caption = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
|
||||
|
||||
/** This filter is documented in wp-includes/post-template.php */
|
||||
$caption = apply_filters( 'the_excerpt', $caption );
|
||||
$caption = apply_filters( 'the_excerpt', $caption );
|
||||
|
||||
$data['caption'] = array(
|
||||
'raw' => $post->post_excerpt,
|
||||
'rendered' => $caption,
|
||||
|
|
|
@ -1558,9 +1558,11 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
|||
|
||||
if ( rest_is_field_included( 'excerpt', $fields ) ) {
|
||||
/** This filter is documented in wp-includes/post-template.php */
|
||||
$excerpt = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
|
||||
$excerpt = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
|
||||
|
||||
/** This filter is documented in wp-includes/post-template.php */
|
||||
$excerpt = apply_filters( 'the_excerpt', $excerpt );
|
||||
$excerpt = apply_filters( 'the_excerpt', $excerpt );
|
||||
|
||||
$data['excerpt'] = array(
|
||||
'raw' => $post->post_excerpt,
|
||||
'rendered' => post_password_required( $post ) ? '' : $excerpt,
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-alpha-46608';
|
||||
$wp_version = '5.4-alpha-46609';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue