Changeset 56586 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php
- Timestamp:
- 09/14/2023 12:44:23 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php
r56415 r56586 169 169 public function prepare_item_for_response( $item, $request ) { 170 170 // Restores the more descriptive, specific name for use within this method. 171 $location = $item; 171 $location = $item; 172 172 173 $locations = get_nav_menu_locations(); 173 174 $menu = isset( $locations[ $location->name ] ) ? $locations[ $location->name ] : 0;
Note: See TracChangeset
for help on using the changeset viewer.