From 3ce72ee99bc230c3df10841a69d0ff243eb1a0bb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 1 Jul 2024 20:08:41 +0200 Subject: Adding upstream version 6.5.5+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/fonts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-includes/fonts.php') diff --git a/wp-includes/fonts.php b/wp-includes/fonts.php index 4806662..0d7cff5 100644 --- a/wp-includes/fonts.php +++ b/wp-includes/fonts.php @@ -228,7 +228,7 @@ function _wp_before_delete_font_face( $post_id, $post ) { } $font_files = get_post_meta( $post_id, '_wp_font_face_file', false ); - $font_dir = wp_get_font_dir()['path']; + $font_dir = untrailingslashit( wp_get_font_dir()['basedir'] ); foreach ( $font_files as $font_file ) { wp_delete_file( $font_dir . '/' . $font_file ); -- cgit v1.2.3