File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
ReduxCore/inc/fields/typography Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 ' ]);
You can’t perform that action at this time.
0 commit comments