Fix google fonts links output if empty

This commit is contained in:
Tetrakern 2024-02-08 16:48:26 +01:00
parent f8da09fdec
commit ae4db534bb

View File

@ -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>