Changeset 49300
- Timestamp:
- 10/24/2020 01:52:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r48102 r49300 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; … … 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( … … 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(
Note: See TracChangeset
for help on using the changeset viewer.