我正在使用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
这是功能。 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' );
如何解决这个问题? 感谢