我建立了一个wordpress主题选项的函数。
但是现在我收到了以下错误信息,我做错了什么?
if(isset($thm_options['custom_font1_eot']))
$w_custom_font1_src[] = "url('{$thm_options['custom_font1_eot']['url']}?#iefix') format('embedded-opentype')";
if(isset($thm_options['custom_font1_woff']))
$w_custom_font1_src[] = "url('{$thm_options['custom_font1_woff']['url']}') format('woff')";
if(isset($thm_options['custom_font1_ttf']))
$w_custom_font1_src[] = "url('{$thm_options['custom_font1_ttf']['url']}') format('truetype')";
致命错误:[]运算符不支持字符串 是否有任何遗漏的代码?
$w_custom_font1_src .= "url..."
。 - user4962466