- 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-revisions-controller.php
r51786 r51962 50 50 public function __construct( $parent_post_type ) { 51 51 $this->parent_post_type = $parent_post_type; 52 $this->namespace = 'wp/v2';53 52 $this->rest_base = 'revisions'; 54 53 $post_type_object = get_post_type_object( $parent_post_type ); 55 54 $this->parent_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name; 55 $this->namespace = ! empty( $post_type_object->rest_namespace ) ? $post_type_object->rest_namespace : 'wp/v2'; 56 56 $this->parent_controller = $post_type_object->get_rest_controller(); 57 57
Note: See TracChangeset
for help on using the changeset viewer.