1
我建立了一些功能主题选项wordpress。Php7.1致命错误:[]运算符不支持字符串
但现在我收到以下错误,我究竟做错了什么?
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')";
Fatal error: [] operator not supported for strings in
什么我漏掉的代码?
也许你想添加字符串已经是一个字符串'$ w_custom_font1_src的变种=“网址... “' – 0x13a
哪里是$ w_custom_font1_src定义? – aynber