Skip to content

Commit

Permalink
update exclusion tag
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Dec 19, 2024
1 parent 6e47819 commit 2591bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/Engine/Optimization/GoogleFonts/Combine.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function optimize( $html ): string {
$filtered_fonts = array_filter(
$fonts,
function ( $font ) use ( $exclusions ) {
return ! $this->is_excluded( $font['url'], $exclusions );
return ! $this->is_excluded( $font[0], $exclusions );
}
);

Expand Down
2 changes: 1 addition & 1 deletion inc/Engine/Optimization/GoogleFonts/CombineV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function optimize( $html ): string {
$filtered_tags = array_filter(
$font_tags,
function ( $tag ) use ( $exclusions ) {
return ! $this->is_excluded( $tag['url'], $exclusions );
return ! $this->is_excluded( $tag[0], $exclusions );
}
);

Expand Down

0 comments on commit 2591bff

Please sign in to comment.