Skip to content

Commit

Permalink
fixes #2032
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Nov 28, 2018
1 parent 86cf261 commit bfec8b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gutenberg/class-kirki-modules-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function load_fonts() {
continue;
}

$this->modules_webfont_loader::$load = true;
$this->modules_webfont_loader->set_load( true );
$this->modules_webfont_loader->enqueue_scripts();

$async = new Kirki_Modules_Webfonts_Async(
Expand Down
12 changes: 12 additions & 0 deletions modules/webfont-loader/class-kirki-modules-webfont-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,16 @@ public function enqueue_scripts() {
wp_enqueue_script( 'webfont-loader', trailingslashit( Kirki::$url ) . 'modules/webfont-loader/vendor-typekit/webfontloader.js', array(), '3.0.28', true );
}
}

/**
* Set the $load property of this object.
*
* @access public
* @since 3.0.35
* @param bool $load Set to false to disable loading.
* @return void
*/
public function set_load( $load ) {
self::$load = $load;
}
}

0 comments on commit bfec8b9

Please sign in to comment.