Changeset 43770 for branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 10/19/2018 05:57:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r43737 r43770 1510 1510 if ( in_array( 'content', $fields, true ) ) { 1511 1511 $data['content'] = array( 1512 'raw' => $post->post_content,1512 'raw' => $post->post_content, 1513 1513 /** This filter is documented in wp-includes/post-template.php */ 1514 'rendered' => post_password_required( $post ) ? '' : apply_filters( 'the_content', $post->post_content ), 1515 'protected' => (bool) $post->post_password, 1514 'rendered' => post_password_required( $post ) ? '' : apply_filters( 'the_content', $post->post_content ), 1515 'protected' => (bool) $post->post_password, 1516 'block_version' => block_version( $post->post_content ), 1516 1517 ); 1517 1518 } … … 2063 2064 'readonly' => true, 2064 2065 ), 2066 'block_version' => array( 2067 'description' => __( 'Version of the content block format used by the object.' ), 2068 'type' => 'integer', 2069 'context' => array( 'edit' ), 2070 'readonly' => true, 2071 ), 2065 2072 'protected' => array( 2066 2073 'description' => __( 'Whether the content is protected with a password.' ),
Note: See TracChangeset
for help on using the changeset viewer.