Hi @mica83,
The part of code you are referring to is the following :
/**
* Retrieves slider names and generate the select list
* @package Customizr
* @since Customizr 3.0.1
*/
function tc_slider_choices() {
$__options = get_option('tc_theme_options');
$slider_names = isset($__options['tc_sliders']) ? $__options['tc_sliders'] : array();
$slider_choices = array(
0 => __( '— No slider —' , 'customizr' ),
'demo' => __( '— Demo Slider —' , 'customizr' )
);
if ( $slider_names ) {
foreach( $slider_names as $tc_name => $slides) {
$slider_choices[$tc_name] = $tc_name;
}
}
return $slider_choices;
}
As you can see, the foreach construct loops on the $slider_names array. Your warning means that the $__options[‘tc_sliders’] var is set but not an array.
Can you please describe what you did right before seeing this warning message?
Thanks and I look forward to reading from you.