diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index 117529d19c..4ed2026dcb 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -76,7 +76,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller { 'args' => array( 'context' => $this->get_context_param( array( 'default' => 'view' ) ), 'password' => array( - 'description' => __( 'The password for the post if it is password protected.' ), + 'description' => __( 'The password for the parent post of the comment (if the post is password protected).' ), 'type' => 'string', ), ), @@ -98,7 +98,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller { 'description' => __( 'Whether to bypass trash and force deletion.' ), ), 'password' => array( - 'description' => __( 'The password for the post if it is password protected.' ), + 'description' => __( 'The password for the parent post of the comment (if the post is password protected).' ), 'type' => 'string', ), ), diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index 4862fae564..39593cbe3e 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -2150,7 +2150,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { if ( $post_type->hierarchical || 'attachment' === $this->post_type ) { $query_params['parent'] = array( - 'description' => __( 'Limit result set to those of particular parent IDs.' ), + 'description' => __( 'Limit result set to items with particular parent IDs.' ), 'type' => 'array', 'items' => array( 'type' => 'integer', diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php index 131e34cdc9..8b0efcdf3d 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php @@ -11,7 +11,7 @@ * Core class used to access revisions via the REST API. * * @since 4.7.0 - *0 + * * @see WP_REST_Controller */ class WP_REST_Revisions_Controller extends WP_REST_Controller { diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php index 2245ed7b9f..299b034329 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php @@ -396,7 +396,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller { public function create_item( $request ) { if ( isset( $request['parent'] ) ) { if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) { - return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can not set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); + return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); } $parent = get_term( (int) $request['parent'], $this->taxonomy ); @@ -502,7 +502,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller { if ( isset( $request['parent'] ) ) { if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) { - return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can not set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); + return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); } $parent = get_term( (int) $request['parent'], $this->taxonomy ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4fcd916b24..c7b6a582c2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40605'; +$wp_version = '4.8-alpha-40606'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.