- 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-templates-controller.php
r51786 r51962 34 34 public function __construct( $post_type ) { 35 35 $this->post_type = $post_type; 36 $this->namespace = 'wp/v2';37 36 $obj = get_post_type_object( $post_type ); 38 37 $this->rest_base = ! empty( $obj->rest_base ) ? $obj->rest_base : $obj->name; 38 $this->namespace = ! empty( $obj->rest_namespace ) ? $obj->rest_namespace : 'wp/v2'; 39 39 } 40 40
Note: See TracChangeset
for help on using the changeset viewer.