- Timestamp:
- 12/14/2018 12:54:51 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43770
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r43987 r44127 1522 1522 if ( in_array( 'content', $fields, true ) ) { 1523 1523 $data['content'] = array( 1524 'raw' => $post->post_content,1524 'raw' => $post->post_content, 1525 1525 /** This filter is documented in wp-includes/post-template.php */ 1526 'rendered' => post_password_required( $post ) ? '' : apply_filters( 'the_content', $post->post_content ), 1527 'protected' => (bool) $post->post_password, 1526 'rendered' => post_password_required( $post ) ? '' : apply_filters( 'the_content', $post->post_content ), 1527 'protected' => (bool) $post->post_password, 1528 'block_version' => block_version( $post->post_content ), 1528 1529 ); 1529 1530 } … … 2063 2064 ), 2064 2065 'properties' => array( 2065 'raw' => array(2066 'raw' => array( 2066 2067 'description' => __( 'Content for the object, as it exists in the database.' ), 2067 2068 'type' => 'string', 2068 2069 'context' => array( 'edit' ), 2069 2070 ), 2070 'rendered' => array(2071 'rendered' => array( 2071 2072 'description' => __( 'HTML content for the object, transformed for display.' ), 2072 2073 'type' => 'string', … … 2074 2075 'readonly' => true, 2075 2076 ), 2076 'protected' => array( 2077 'block_version' => array( 2078 'description' => __( 'Version of the content block format used by the object.' ), 2079 'type' => 'integer', 2080 'context' => array( 'edit' ), 2081 'readonly' => true, 2082 ), 2083 'protected' => array( 2077 2084 'description' => __( 'Whether the content is protected with a password.' ), 2078 2085 'type' => 'boolean',
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)