Skip to content

Commit

Permalink
Merge pull request #2106 from dedalx/develop
Browse files Browse the repository at this point in the history
Update class-kirki-fonts-google.php
  • Loading branch information
aristath committed Mar 5, 2019
2 parents feb8863 + ae3acfc commit 859cb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/webfonts/class-kirki-fonts-google.php
Expand Up @@ -213,7 +213,7 @@ public function process_fonts() {

// If this is not a valid variant for this font-family
// then unset it and move on to the next one.
if ( ! in_array( $variant, $font_variants, true ) ) {
if ( ! in_array( strval( $variant ), $font_variants, true ) ) {
$variant_key = array_search( $variant, $this->fonts[ $font ], true );
unset( $this->fonts[ $font ][ $variant_key ] );
continue;
Expand Down

0 comments on commit 859cb05

Please sign in to comment.