Skip to content

Commit

Permalink
fixes #1438
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jun 27, 2017
1 parent d3e7992 commit 7569ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/webfonts/class-kirki-modules-webfonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ protected function init() {
public function get_method( $config_id ) {

// Figure out which method to use.
$method = apply_filters( 'kirki/googlefonts_load_method', 'embed' );
$method = apply_filters( 'kirki/googlefonts_load_method', 'link' );

// Fallback to 'embed' if value is invalid.
// Fallback to 'link' if value is invalid.
if ( 'async' !== $method && 'embed' !== $method && 'link' !== $method ) {
$method = 'embed';
$method = 'link';
}

// Fallback to 'link' if embed was not possible.
Expand Down

0 comments on commit 7569ca6

Please sign in to comment.