Fix google fonts links output if empty
This commit is contained in:
parent
f8da09fdec
commit
ae4db534bb
@ -1113,9 +1113,10 @@ function fictioneer_output_head_fonts() {
|
||||
|
||||
// Output Google Fonts links (if any)
|
||||
$google_fonts_links = get_option( 'fictioneer_google_fonts_links' );
|
||||
$google_fonts_links = explode( "\n", $google_fonts_links );
|
||||
|
||||
if ( ! empty( $google_fonts_links ) ) {
|
||||
$google_fonts_links = explode( "\n", $google_fonts_links );
|
||||
|
||||
// Start HTML ---> ?>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
|
Loading…
x
Reference in New Issue
Block a user