Skip to content

Commit 5180dfb

Browse files
fix(customizer): resolve font settings namespace review
Agent-Logs-Url: https://github.com/helsingborg-stad/Municipio/sessions/a7976a2b-1549-4ac8-9373-c80188045b78 Co-authored-by: sebastianthulin <797129+sebastianthulin@users.noreply.github.com>
1 parent 54dab46 commit 5180dfb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

library/Customizer/Fonts/FontSettings.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Municipio\Customizer\Fonts;
66

7-
use Kirki\Compatibility\Kirki;
8-
97
/**
108
* Reads managed and legacy font settings.
119
*/
@@ -32,7 +30,7 @@ class FontSettings
3230
*/
3331
public static function getUploadedFontNames(): array
3432
{
35-
$uploadedFonts = Kirki::get_option(FontCatalog::UPLOADED_FONTS_SETTING, []);
33+
$uploadedFonts = \Kirki\Compatibility\Kirki::get_option(FontCatalog::UPLOADED_FONTS_SETTING, []);
3634

3735
if (!is_array($uploadedFonts)) {
3836
return [];
@@ -61,7 +59,7 @@ public static function getSelectedFontFamilies(): array
6159
$fontFamilies = [];
6260

6361
foreach (self::FONT_SETTING_KEYS as $settingKey) {
64-
$value = Kirki::get_option($settingKey, []);
62+
$value = \Kirki\Compatibility\Kirki::get_option($settingKey, []);
6563

6664
if (!is_array($value) || !array_key_exists('font-family', $value) || $value['font-family'] === '') {
6765
continue;

0 commit comments

Comments
 (0)