wip
This commit is contained in:
@@ -219,15 +219,16 @@ function _wp_after_delete_font_family( $post_id, $post ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$font_faces = get_children(
|
||||
$font_faces_ids = get_children(
|
||||
array(
|
||||
'post_parent' => $post_id,
|
||||
'post_type' => 'wp_font_face',
|
||||
'fields' => 'ids',
|
||||
)
|
||||
);
|
||||
|
||||
foreach ( $font_faces as $font_face ) {
|
||||
wp_delete_post( $font_face->ID, true );
|
||||
foreach ( $font_faces_ids as $font_faces_id ) {
|
||||
wp_delete_post( $font_faces_id, true );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -265,7 +266,7 @@ function _wp_register_default_font_collections() {
|
||||
array(
|
||||
'name' => _x( 'Google Fonts', 'font collection name' ),
|
||||
'description' => __( 'Install from Google Fonts. Fonts are copied to and served from your site.' ),
|
||||
'font_families' => 'https://s.w.org/images/fonts/wp-6.7/collections/google-fonts-with-preview.json',
|
||||
'font_families' => 'https://s.w.org/images/fonts/wp-6.9/collections/google-fonts-with-preview.json',
|
||||
'categories' => array(
|
||||
array(
|
||||
'name' => _x( 'Sans Serif', 'font category' ),
|
||||
|
||||
Reference in New Issue
Block a user