Skip to content

Commit

Permalink
Remove unneeded directory construction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Sep 1, 2023
1 parent e2be8d3 commit fe107a0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/experimental/fonts/font-library/class-wp-font-family.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,6 @@ private function download_or_move_font_faces( $files ) {
}

$new_font_faces = array();

$wp_content_dir = WP_CONTENT_DIR;

// Construct the path to the fonts directory
$fonts_dir = trailingslashit($wp_content_dir) . 'fonts';

wp_mkdir_p($fonts_dir);
// var_dump($fonts_dir);

foreach ( $this->data['fontFace'] as $font_face ) {
// If the fonts are not meant to be dowloaded or uploaded
Expand Down

0 comments on commit fe107a0

Please sign in to comment.