Make WordPress Core


Ignore:
Timestamp:
06/27/2023 05:52:06 AM (13 months ago)
Author:
isabel_brison
Message:

Editor: add navigation fallback.

Creates a fallback menu for the Navigation block including an API endpoint to retrieve it.

Props get_dave, spacedmonkey, kebbet, flixos90, mikeschroder, ramonopoly, audrasjb.
Fixes 58557.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r56014 r56052  
    377377    // Site Editor Export.
    378378    $controller = new WP_REST_Edit_Site_Export_Controller();
     379    $controller->register_routes();
     380
     381    // Navigation Fallback.
     382    $controller = new WP_REST_Navigation_Fallback_Controller();
    379383    $controller->register_routes();
    380384}
Note: See TracChangeset for help on using the changeset viewer.