diff options
Diffstat (limited to 'wp-includes/fonts.php')
-rw-r--r-- | wp-includes/fonts.php | 2 |
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 ); |