widget-options icon indicating copy to clipboard operation
widget-options copied to clipboard

Missing built-in function in `widgetopts_get_allowed_wp_functions` - `in_category`

Open ChrisBoik opened this issue 3 months ago • 0 comments

Hi there,

Creating this issue to track missing built-ins in the new "widgetopts_get_allowed_wp_functions" eval protection function.

I was severely affected after update as I have a large number of widgets using:

  • in_category

Used as follows: !in_category( array( 'rankings-hockey-boys-1st', 'rankings-hockey-girls-1st', 'directory') )

Apologies, I would love to PR but cannot at the moment but can do.

Side note question on another issue I raised via support once before

I raised this other query with support before to no avail, I am currently writing my own filter snippet to force show hidden widgets in the admin customiser view that are hidden on devices because in the customiser view the mobile view switcher doesn't trigger the widget options to show. I'll document in another issue/PR perhaps unless intentional. This was changed over a year ago now.

ChrisBoik avatar Oct 09 '25 20:10 ChrisBoik