- Timestamp:
- 10/31/2021 11:15:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r51786 r51962 68 68 $this->parent_controller = $parent_controller; 69 69 $this->revisions_controller = new WP_REST_Revisions_Controller( $parent_post_type ); 70 $this->namespace = 'wp/v2';71 70 $this->rest_base = 'autosaves'; 71 $this->namespace = ! empty( $post_type_object->rest_namespace ) ? $post_type_object->rest_namespace : 'wp/v2'; 72 72 $this->parent_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name; 73 73 }
Note: See TracChangeset
for help on using the changeset viewer.