Changeset 46609 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 10/28/2019 07:33:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r46608 r46609 407 407 if ( in_array( 'caption', $fields, true ) ) { 408 408 /** 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 410 411 /** 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 412 414 $data['caption'] = array( 413 415 'raw' => $post->post_excerpt,
Note: See TracChangeset
for help on using the changeset viewer.