我試圖在完成網站後上線,但發生錯誤 警告:implode():無效參數傳遞在線674上的functions.phpWarning:implode():無效的參數傳遞在線上的函數.php 674
foreach ($one_array_font as $font => $variants) {
$font = str_replace(' ', '+', $font);
$variants = implode(',', array_values($variants['variant']));
$all_final_fonts[] = $font.':'.$variants;
}
$gfont = implode('|', $all_final_fonts); /* <-- This line fails */
wp_enqueue_style('zn_all_g_fonts', '//fonts.googleapis.com/css?family='.$gfont.''.$subset);
if ($data['zn_main_style'] == 'dark') {
wp_enqueue_style('zn-dark-style', get_template_directory_uri() . '/css/dark-theme.css',array() ,false,'all');
}
if (!empty ($data['g_fonts_subset'])) {
$subset = '&subset='.str_replace(' ' , '' , $data['g_fonts_subset']);
}
什麼是674線?我不是一個嚮導 –
有代碼$ gfont = implode('|',$ all_final_fonts);它有錯嗎? – StManozz
我該如何修復 – StManozz