diff --git a/wp-includes/fonts.php b/wp-includes/fonts.php index 88495fc44a..3a76993008 100644 --- a/wp-includes/fonts.php +++ b/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 ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6317ef70b1..a455ed50bf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60198'; +$wp_version = '6.9-alpha-60203'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.