diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php --- a/wp/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php Wed Sep 21 18:19:35 2022 +0200 @@ -67,7 +67,7 @@ $this->parent_controller = $parent_controller; $this->revisions_controller = new WP_REST_Revisions_Controller( $parent_post_type ); - $this->rest_namespace = 'wp/v2'; + $this->namespace = 'wp/v2'; $this->rest_base = 'autosaves'; $this->parent_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name; } @@ -81,12 +81,12 @@ */ public function register_routes() { register_rest_route( - $this->rest_namespace, + $this->namespace, '/' . $this->parent_base . '/(?P[\d]+)/' . $this->rest_base, array( 'args' => array( 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the autosave.' ), 'type' => 'integer', ), ), @@ -107,16 +107,16 @@ ); register_rest_route( - $this->rest_namespace, + $this->namespace, '/' . $this->parent_base . '/(?P[\d]+)/' . $this->rest_base . '/(?P[\d]+)', array( 'args' => array( 'parent' => array( - 'description' => __( 'The ID for the parent of the object.' ), + 'description' => __( 'The ID for the parent of the autosave.' ), 'type' => 'integer', ), 'id' => array( - 'description' => __( 'The ID for the object.' ), + 'description' => __( 'The ID for the autosave.' ), 'type' => 'integer', ), ), @@ -425,7 +425,7 @@ $response->data = $this->filter_response_by_context( $response->data, $context ); /** - * Filters a revision returned from the API. + * Filters a revision returned from the REST API. * * Allows modification of the revision right before it is returned. *