Changeset 40606
- Timestamp:
- 05/10/2017 07:40:56 PM (8 years ago)
- Location:
- trunk/src/wp-includes/rest-api/endpoints
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r39954 r40606 77 77 'context' => $this->get_context_param( array( 'default' => 'view' ) ), 78 78 'password' => array( 79 'description' => __( 'The password for the p ost if it is password protected.' ),79 'description' => __( 'The password for the parent post of the comment (if the post is password protected).' ), 80 80 'type' => 'string', 81 81 ), … … 99 99 ), 100 100 'password' => array( 101 'description' => __( 'The password for the p ost if it is password protected.' ),101 'description' => __( 'The password for the parent post of the comment (if the post is password protected).' ), 102 102 'type' => 'string', 103 103 ), -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r40605 r40606 2151 2151 if ( $post_type->hierarchical || 'attachment' === $this->post_type ) { 2152 2152 $query_params['parent'] = array( 2153 'description' => __( 'Limit result set to those ofparticular parent IDs.' ),2153 'description' => __( 'Limit result set to items with particular parent IDs.' ), 2154 2154 'type' => 'array', 2155 2155 'items' => array( -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r40601 r40606 12 12 * 13 13 * @since 4.7.0 14 * 014 * 15 15 * @see WP_REST_Controller 16 16 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r40377 r40606 397 397 if ( isset( $request['parent'] ) ) { 398 398 if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) { 399 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can 399 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); 400 400 } 401 401 … … 503 503 if ( isset( $request['parent'] ) ) { 504 504 if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) { 505 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can 505 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); 506 506 } 507 507
Note: See TracChangeset
for help on using the changeset viewer.