Make WordPress Core


Ignore:
Timestamp:
10/28/2019 07:02:31 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Remove some funky nested filters.

See #48303

File:
1 edited

Legend:

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

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