Warning on type select and data callback
-
Hi,
fist Thanks a lot for the awesome plugin.
I am using the latest version of redux as separated plugin. v4.1.20I have used select type field with the data=callback.
My code:array( 'id' => 'my_id', 'type' => 'select', 'title' => 'my title', 'data' => 'callback', 'args' => 'my_func_name', ),
My function return an array and the field in option panel works correct.
But there is a warning:Notice: Undefined offset: 0 in C:\xampp\htdocs\kianpanel\wp-content\plugins\redux-framework\redux-core\inc\classes\class-redux-wordpress-data.php on line 470
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in C:\xampp\htdocs\kianpanel\wp-content\plugins\redux-framework\redux-core\inc\classes\class-redux-wordpress-data.php on line 470
I think there is a problem in redux. I have checked the $args by var_dump. It return twice. Once empty array and another one with an array included my function_name.
Can you check it?
Thanks
- The topic ‘Warning on type select and data callback’ is closed to new replies.