Changeset 61429 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php
- Timestamp:
- 01/05/2026 04:31:14 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php
r59718 r61429 182 182 183 183 $locations = get_nav_menu_locations(); 184 $menu = isset( $locations[ $location->name ] ) ? $locations[ $location->name ] :0;184 $menu = $locations[ $location->name ] ?? 0; 185 185 186 186 $fields = $this->get_fields_for_response( $request ); … … 243 243 244 244 $locations = get_nav_menu_locations(); 245 $menu = isset( $locations[ $location->name ] ) ? $locations[ $location->name ] :0;245 $menu = $locations[ $location->name ] ?? 0; 246 246 if ( $menu ) { 247 247 $path = rest_get_route_for_term( $menu );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)