Make WordPress Core


Ignore:
Timestamp:
02/07/2024 09:18:38 AM (16 months ago)
Author:
youknowriad
Message:

REST API: Introduce the necessary endpoints for the font library.

This commits add three endpoints to retrieve and manipulate fonts in WordPress.
This commit also means that we now have a fully functional Font Library in the site editor.

Props get_dave, youknowriad, mmaattiiaass, grantmkin, swissspidy, mcsf, jorbin, ocean90.
See #59166.

File:
1 edited

Legend:

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

    r57312 r57548  
    392392    $controller = new WP_REST_Navigation_Fallback_Controller();
    393393    $controller->register_routes();
     394
     395    // Font Collections.
     396    $font_collections_controller = new WP_REST_Font_Collections_Controller();
     397    $font_collections_controller->register_routes();
    394398}
    395399
Note: See TracChangeset for help on using the changeset viewer.