@@ -80,8 +80,10 @@ |
||
80 | 80 | * @param string $family The font-family name. |
81 | 81 | * @return Kirki_Fonts_Google_Local |
82 | 82 | */ |
83 | - public static function do( $family ) { |
|
83 | + public static function do { |
|
84 | + ( $family ) { |
|
84 | 85 | $key = sanitize_key( $family ); |
86 | + } |
|
85 | 87 | if ( ! isset( self::$instances[ $key ] ) ) { |
86 | 88 | self::$instances[ $key ] = new self( $family ); |
87 | 89 | } |
@@ -91,7 +91,9 @@ |
||
91 | 91 | $fonts = array_keys( $this->googlefonts->fonts ); |
92 | 92 | $fonts = array_unique( $fonts ); |
93 | 93 | foreach ( $fonts as $family ) { |
94 | - $css .= Kirki_Fonts_Google_Local::do( $family )->get_css(); |
|
94 | + $css .= Kirki_Fonts_Google_Local::do { |
|
95 | + ( $family )->get_css(); |
|
96 | + } |
|
95 | 97 | } |
96 | 98 | if ( $css ) { |
97 | 99 | echo '<style id="kirki-local-webfonts-' . esc_attr( sanitize_key( $this->config_id ) ) . '">' . $css . '</style>'; // WPCS: XSS ok. |