Closed stklcode closed 10 months ago
show_widget_roles
Widget is gone, i.e. nobody can see it.
We set a default 'show_widget_roles' => array() unconditionally. Empty array is equivalent to "no roles checked", so nobody can see anything.
'show_widget_roles' => array()
Preserve null or unset options and only sanitize, if actually set.
null
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
No Coverage information 0.0% Duplication
Steps to reproduce
show_widget_roles
option set).Observed (mis)behavior
Widget is gone, i.e. nobody can see it.
We set a default
'show_widget_roles' => array()
unconditionally. Empty array is equivalent to "no roles checked", so nobody can see anything.Solution
Preserve
null
or unset options and only sanitize, if actually set.