- Timestamp:
- 09/23/2019 08:24:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r46069 r46272 50 50 public function __construct( $parent_post_type ) { 51 51 $this->parent_post_type = $parent_post_type; 52 $this->parent_controller = new WP_REST_Posts_Controller( $parent_post_type );53 52 $this->namespace = 'wp/v2'; 54 53 $this->rest_base = 'revisions'; 55 54 $post_type_object = get_post_type_object( $parent_post_type ); 56 55 $this->parent_base = ! empty( $post_type_object->rest_base ) ? $post_type_object->rest_base : $post_type_object->name; 56 $this->parent_controller = $post_type_object->get_rest_controller(); 57 58 if ( ! $this->parent_controller ) { 59 $this->parent_controller = new WP_REST_Posts_Controller( $parent_post_type ); 60 } 57 61 } 58 62
Note: See TracChangeset
for help on using the changeset viewer.