Make WordPress Core


Ignore:
Timestamp:
02/07/2024 09:18:38 AM (14 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/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r57494 r57548  
    190190            '/wp/v2/wp_pattern_category',
    191191            '/wp/v2/wp_pattern_category/(?P<id>[\d]+)',
     192            '/wp/v2/font-collections',
     193            '/wp/v2/font-collections/(?P<slug>[\/\w-]+)',
     194            '/wp/v2/font-families',
     195            '/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces',
     196            '/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces/(?P<id>[\d]+)',
     197            '/wp/v2/font-families/(?P<id>[\d]+)',
    192198        );
    193199
Note: See TracChangeset for help on using the changeset viewer.