- 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-posts-controller.php
r51962 r51964 2061 2061 2062 2062 foreach ( $taxonomies as $tax ) { 2063 $taxonomy_ obj = get_taxonomy( $tax );2063 $taxonomy_route = rest_get_route_for_taxonomy_items( $tax ); 2064 2064 2065 2065 // Skip taxonomies that are not public. 2066 if ( empty( $taxonomy_ obj->show_in_rest) ) {2066 if ( empty( $taxonomy_route ) ) { 2067 2067 continue; 2068 2068 } 2069 2070 $tax_base = ! empty( $taxonomy_obj->rest_base ) ? $taxonomy_obj->rest_base : $tax;2071 2072 2069 $terms_url = add_query_arg( 2073 2070 'post', 2074 2071 $post->ID, 2075 rest_url( 'wp/v2/' . $tax_base )2072 rest_url( $taxonomy_route ) 2076 2073 ); 2077 2074
Note: See TracChangeset
for help on using the changeset viewer.