Make WordPress Core


Ignore:
Timestamp:
02/06/2024 08:40:38 AM (17 months ago)
Author:
youknowriad
Message:

Editor: Introduce the Font Library post types and low level APIs.

This is the first step towards adding the font library to WordPress.
This commit includes the font library and font face CPTs.
It also adds the necessary APIs and classes to register and manipulate font collections.

This PR backports the font library post types and low level APIs to Core. This is the first step to include the font library entirely into Core. Once this merged, we'll open a PR with the necessary REST API controllers.

Props youknowriad, get_dave, grantmkin, swissspidy, hellofromtonya, mukesh27, mcsf.
See #59166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r57306 r57539  
    749749// Font management.
    750750add_action( 'wp_head', 'wp_print_font_faces', 50 );
     751add_action( 'deleted_post', '_wp_after_delete_font_family', 10, 2 );
     752add_action( 'before_delete_post', '_wp_before_delete_font_face', 10, 2 );
    751753
    752754unset( $filter, $action );
Note: See TracChangeset for help on using the changeset viewer.