我收到此错误:
注意:未定义的索引:将鼠标悬停在/home/fairdealoverseas/public_html/wp-content/themes/visahub/option-tree/theme-interface.php中的第167行
我在网上找不到任何解决方案。
这是代码:
if( !function_exists( 'VisaHub_option_tree_link_value' ) ){
function VisaHub_option_tree_link_value( $class, $color, $key ){
if( $key == '' or $class == '' or $color == '' ) return;
if( VisaHub_option( $key ) ){
return sprintf( '%1$s{ %2$s:%3$s; }
%1$s:hover{ %2$s:%4$s; }
%1$s:active { %2$s:%5$s; }
%1$s:visited { %2$s:%6$s; }
%1$s:focus { %2$s:%7$s; }',
$class, $color,
VisaHub_option( $key )['link'],
VisaHub_option( $key )['hover'],
VisaHub_option( $key )['active'],
VisaHub_option( $key )['visited'],
VisaHub_option( $key )['focus']
);
}
}
}