diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
index 99a491de27..f3096444f2 100644
a
|
b
|
class WP_REST_Autosaves_Controller extends WP_REST_Revisions_Controller { |
67 | 67 | |
68 | 68 | $this->parent_controller = $parent_controller; |
69 | 69 | $this->revisions_controller = new WP_REST_Revisions_Controller( $parent_post_type ); |
70 | | $this->rest_namespace = 'wp/v2'; |
| 70 | $this->namespace = 'wp/v2'; |
71 | 71 | $this->rest_base = 'autosaves'; |
72 | 72 | $this->parent_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name; |
73 | 73 | } |
… |
… |
class WP_REST_Autosaves_Controller extends WP_REST_Revisions_Controller { |
81 | 81 | */ |
82 | 82 | public function register_routes() { |
83 | 83 | register_rest_route( |
84 | | $this->rest_namespace, |
| 84 | $this->namespace, |
85 | 85 | '/' . $this->parent_base . '/(?P<id>[\d]+)/' . $this->rest_base, |
86 | 86 | array( |
87 | 87 | 'args' => array( |
… |
… |
class WP_REST_Autosaves_Controller extends WP_REST_Revisions_Controller { |
107 | 107 | ); |
108 | 108 | |
109 | 109 | register_rest_route( |
110 | | $this->rest_namespace, |
| 110 | $this->namespace, |
111 | 111 | '/' . $this->parent_base . '/(?P<parent>[\d]+)/' . $this->rest_base . '/(?P<id>[\d]+)', |
112 | 112 | array( |
113 | 113 | 'args' => array( |