PHP Notice for bg, padding and radius
-
I am running my site with WP_DEBUG enabled and I have Query Monitor active. Icon Widget is generating 3 PHP Notices for the ‘bg’, ‘padding’ and ‘radius’ elements of the $instance array.
I do realise that the PHP Notice is at the trivial end of issues. I just like to have “quiet” code that doesn’t generate any notices, warnings or errors.
I suggest giving these three attributes non-empty default values in the form() function.
Maybe:
‘bg’ => ‘transparen’,
‘padding’ => ‘0’,
‘radius’ => ‘0’,In the meantime I’ll use the ‘icon_widget_defaults’ filter to make this change.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Notice for bg, padding and radius’ is closed to new replies.