Make WordPress Core

Changeset 46609


Ignore:
Timestamp:
10/28/2019 07:33:24 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Coding standards fix after [46608].

See #48303

Location:
trunk/src/wp-includes/rest-api/endpoints
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

    r46608 r46609  
    407407                if ( in_array( 'caption', $fields, true ) ) {
    408408                        /** This filter is documented in wp-includes/post-template.php */
    409                         $caption         = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
     409                        $caption = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
     410
    410411                        /** This filter is documented in wp-includes/post-template.php */
    411                         $caption         = apply_filters( 'the_excerpt', $caption );
     412                        $caption = apply_filters( 'the_excerpt', $caption );
     413
    412414                        $data['caption'] = array(
    413415                                'raw'      => $post->post_excerpt,
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r46608 r46609  
    15591559                if ( rest_is_field_included( 'excerpt', $fields ) ) {
    15601560                        /** This filter is documented in wp-includes/post-template.php */
    1561                         $excerpt         = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
     1561                        $excerpt = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
     1562
    15621563                        /** This filter is documented in wp-includes/post-template.php */
    1563                         $excerpt         = apply_filters( 'the_excerpt', $excerpt );
     1564                        $excerpt = apply_filters( 'the_excerpt', $excerpt );
     1565
    15641566                        $data['excerpt'] = array(
    15651567                                'raw'       => $post->post_excerpt,
Note: See TracChangeset for help on using the changeset viewer.