We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 771b48d commit ebdcaabCopy full SHA for ebdcaab
admin/create-theme/theme-fonts.php
@@ -22,7 +22,12 @@ public static function get_user_activated_fonts() {
22
}
23
24
public static function copy_activated_fonts_to_theme() {
25
- $font_families_to_copy = static::get_user_activated_fonts();
+ $user_settings = MY_Theme_JSON_Resolver::get_user_data()->get_settings();
26
+ if ( ! isset( $user_settings['typography']['fontFamilies']['custom'] ) ) {
27
+ return null;
28
+ }
29
+
30
+ $font_families_to_copy = $user_settings['typography']['fontFamilies']['custom'];
31
32
// If there are no custom fonts, bounce out
33
if ( is_null( $font_families_to_copy ) ) {
0 commit comments