Skip to content

Commit

Permalink
Merge pull request #17 from cristian-ungureanu/master
Browse files Browse the repository at this point in the history
Fix: Typekit font urls coming with double quotes
  • Loading branch information
aristath authored Oct 21, 2022
2 parents 780e564 + ff5e4fa commit 19fa29b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wptt-webfont-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ public function get_remote_files_from_css() {

// Add the file URL.
$font_family_url = rtrim( ltrim( $match[0], 'url(' ), ')' );
$font_family_url = str_replace( '"', '', $font_family_url );

// Make sure to convert relative URLs to absolute.
$font_family_url = $this->get_absolute_path( $font_family_url );
Expand Down

0 comments on commit 19fa29b

Please sign in to comment.