Skip to content

Commit 10cf910

Browse files
committed
Signed-off-by:KProvance <[email protected]>
1 parent 96ea55d commit 10cf910

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ReduxCore/inc/fields/typography/field_typography.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,14 @@ function makeGoogleWebfontLink($fonts) {
581581
}
582582
$link.= $family;
583583

584-
if (!empty($font['font-style'])) {
584+
if (!empty($font['font-style']) || !empty($font['all-styles'])) {
585585
$link.= ':';
586+
print_r($font['all-styles']);
586587
if (!empty($font['all-styles'])) {
587-
$link.= implode(',', $font['all-styles']);
588+
589+
$link .= implode(',', $font['all-styles']);
588590
} else if (!empty($font['font-style'])) {
589-
$link.= implode(',', $font['font-style']);
591+
$link .= implode(',', $font['font-style']);
590592
}
591593
}
592594

@@ -623,7 +625,7 @@ function makeGoogleWebfontString($fonts) {
623625
}
624626
$link.= $family;
625627

626-
if (!empty($font['font-style'])) {
628+
if (!empty($font['font-style']) || !empty($font['all-styles'])) {
627629
$link.= ':';
628630
if (!empty($font['all-styles'])) {
629631
$link.= implode(',', $font['all-styles']);

0 commit comments

Comments
 (0)