• The changes in Widget Logic v.6.0.6 applying a filter to allow some function only to be used in Widget Logic field is not supporting the full spectrum of conditional function offered by WordPress.

    A lot have noted the absence of is_tree, but it is also missing most of the custom post type, taxonomy and post_format offered via register in WordPress.

    To the default array of widget_logic_allowed_functions should be added:
    is_tax, is_post_type_archive, has_post_format, is_singular, has_category, in_category

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m baffled by this version, was it requested maybe from wordpress team to improve security?

    And to present it as a minor version is not okay

    Thread Starter mgrenierfarmmedia

    (@mgrenierfarmmedia)

    And even if it was a minor version, the plugin since 6.0 has been twisted to thing it should not do. Why does it offer a Live Match result as a block widget is beyond me.

    I am good with hooking our own ACF function to widget logic in the functions.php file but it is not working for our site. Instead I had to put the function into the plugin code…so we’ll need to be careful with updates until this bug is fixed. Throws this error…

    PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in …./widget/logic/function/main_function.php:23

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘widget_logic_allowed_functions is not supporting basic functions’ is closed to new replies.