- Timestamp:
- 11/01/2021 03:26:06 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r51962 r51964 58 58 public function __construct( $taxonomy ) { 59 59 $this->taxonomy = $taxonomy; 60 $this->namespace = 'wp/v2';61 60 $tax_obj = get_taxonomy( $taxonomy ); 62 61 $this->rest_base = ! empty( $tax_obj->rest_base ) ? $tax_obj->rest_base : $tax_obj->name; 62 $this->namespace = ! empty( $tax_obj->rest_namespace ) ? $tax_obj->rest_namespace : 'wp/v2'; 63 63 64 64 $this->meta = new WP_REST_Term_Meta_Fields( $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.