Changeset 46608
- Timestamp:
- 10/28/2019 07:02:31 PM (5 years ago)
- 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
r46586 r46608 407 407 if ( in_array( 'caption', $fields, true ) ) { 408 408 /** This filter is documented in wp-includes/post-template.php */ 409 $caption = apply_filters( 'the_excerpt', apply_filters( 'get_the_excerpt', $post->post_excerpt, $post ) ); 409 $caption = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post ); 410 /** This filter is documented in wp-includes/post-template.php */ 411 $caption = apply_filters( 'the_excerpt', $caption ); 410 412 $data['caption'] = array( 411 413 'raw' => $post->post_excerpt, -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r46586 r46608 1559 1559 if ( rest_is_field_included( 'excerpt', $fields ) ) { 1560 1560 /** 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 ); 1562 1564 $data['excerpt'] = array( 1563 1565 'raw' => $post->post_excerpt,
Note: See TracChangeset
for help on using the changeset viewer.