summaryrefslogtreecommitdiffstats
path: root/wp-includes/fonts.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:08:41 +0000
commit3ce72ee99bc230c3df10841a69d0ff243eb1a0bb (patch)
tree035fdbe0ae826e1c990c61f5cecc91ba12545f27 /wp-includes/fonts.php
parentAdding upstream version 6.5.3+dfsg1. (diff)
downloadwordpress-3ce72ee99bc230c3df10841a69d0ff243eb1a0bb.tar.xz
wordpress-3ce72ee99bc230c3df10841a69d0ff243eb1a0bb.zip
Adding upstream version 6.5.5+dfsg1.upstream/6.5.5+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/fonts.php')
-rw-r--r--wp-includes/fonts.php2
1 files changed, 1 insertions, 1 deletions
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 );