Changeset 56586 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
- Timestamp:
- 09/14/2023 12:44:23 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r54288 r56586 177 177 public function prepare_item_for_response( $item, $request ) { 178 178 // Restores the more descriptive, specific name for use within this method. 179 $post_type = $item; 179 $post_type = $item; 180 180 181 $taxonomies = wp_list_filter( get_object_taxonomies( $post_type->name, 'objects' ), array( 'show_in_rest' => true ) ); 181 182 $taxonomies = wp_list_pluck( $taxonomies, 'name' );
Note: See TracChangeset
for help on using the changeset viewer.