CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Sat, 11 Oct 2025 13:32:54 GMT
content-type: text/html;charset=utf-8
vary: Accept-Encoding
etag: W/"anonymous/Wed, 10 May 2017 19:40:56 GMT/b120dd5f8733c3dc9d9b965f2c8db4c0"
cache-control: must-revalidate
alt-svc: h3=":443"; ma=86400
x-nc: HIT
content-encoding: gzip
Changeset 40606 – WordPress Trac
Changeset 40606
- Timestamp:
- 05/10/2017 07:40:56 PM (8 years ago)
- Author:
- jnylen0
- Message:
-
REST API: Improve a few more strings added after the 4.7 string freeze.
See #39178.
See also #40720 for potential follow-up steps.
- 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.