Skip to content

Commit

Permalink
Fix PHP 5.2 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Dec 6, 2018
1 parent 46b6dc9 commit 54523d8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/gutenberg/class-kirki-modules-gutenberg.php
Expand Up @@ -240,6 +240,9 @@ private function is_disabled( $args = array() ) {
* @since 3.0.35
*/
public function load_fonts() {

$modules_webfonts = $this->modules_webfonts;
$google_fonts = $this->google_fonts;
foreach ( $this->configs as $config_id => $args ) {

if ( $this->is_disabled( $args ) ) {
Expand All @@ -251,16 +254,16 @@ public function load_fonts() {

$async = new Kirki_Modules_Webfonts_Async(
$config_id,
$this->modules_webfonts::get_instance(),
$this->google_fonts::get_instance()
$modules_webfonts::get_instance(),
$google_fonts::get_instance()
);

$async->webfont_loader();
$async->webfont_loader_script();

$local_fonts = new Kirki_Modules_Webfonts_Local(
$this->modules_webfonts::get_instance(),
$this->google_fonts::get_instance()
$modules_webfonts::get_instance(),
$google_fonts::get_instance()
);

$local_fonts->add_styles();
Expand Down

0 comments on commit 54523d8

Please sign in to comment.