plugin updates
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user