summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/wp-includes/fonts.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wp-includes/fonts.php b/src/wp-includes/fonts.php
index 88495fc44a..3a76993008 100644
--- a/src/wp-includes/fonts.php
+++ b/src/wp-includes/fonts.php
@@ -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 );
}
}