我正在使用 wordpress 主题并在安装它之后。它是这样说的:
Warning: Invalid argument supplied for foreach() in /mnt/web7/c0/97/51996897/htdocs/salashomecooking/wp-content/themes/wootique/functions/admin-functions.php on line 3193
这是de函数。foreach 从第 3193 行开始
if ( ! function_exists( 'wooframework_load_google_fonts' ) ) {
function wooframework_load_google_fonts() {
global $woo_used_google_fonts;
$c = 0;
$fonts = '';
foreach( $woo_used_google_fonts as $font ) {
if( $c > 0 ) {
$fonts .= '|';
} else {
++$c;
}
$fonts .= $font;
}
woo_shortcode_typography_loadgooglefonts( $fonts , 'woo-used-google-fonts' );
} // End wooframework_load_google_fonts()
}
add_action( 'wp_footer' , 'wooframework_load_google_fonts' );
如何解决这个问题?谢谢