Version 6.0.6 has breaking changes
-
In version 6.0.6 there is a major breaking change in how the plugin works.
From the changelog:
= 6.0.6 =
- reworked main logic function to avoid EVAL
- !IMPORTANT! from this version not all php code will be executed in Widget Logic field
- if you need more php functions you can add it with using
add_filter('widget_logic_allowed_functions', '[your_custom_function_here]');
I’m using function “is_tree”, for example, which has not been included in the default allowed functions list, which is:
$allowed_functions = array(
'is_home', 'is_front_page', 'is_single', 'is_page', 'is_category',
'is_tag', 'is_archive', 'is_search', 'is_404', 'is_user_logged_in',
'current_user_can', 'is_active_sidebar', 'is_admin',
);My suggestion would be to tag a 7.0 release. If that is not possible, at least add is_tree function to the list, since it’s quite commonly used.
The topic ‘Version 6.0.6 has breaking changes’ is closed to new replies.