Skip to content

Commit 19fa29b

Browse files
authored
Merge pull request #17 from cristian-ungureanu/master
Fix: Typekit font urls coming with double quotes
2 parents 780e564 + ff5e4fa commit 19fa29b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wptt-webfont-loader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ public function get_remote_files_from_css() {
419419

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

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

0 commit comments

Comments
 (0)