You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
theperfectwill
changed the title
[Code Review] Module / File Name
Is Array Check Needed for Admin Pages with No Underlying Code Yet
Dec 15, 2022
theperfectwill
changed the title
Is Array Check Needed for Admin Pages with No Underlying Code Yet
wponion_is_array Check Needed for Admin Pages with No Underlying Code Yet
Dec 15, 2022
theperfectwill
changed the title
wponion_is_array Check Needed for Admin Pages with No Underlying Code Yet
[Code Review] wponion_is_array Check Needed for Admin Pages with No Underlying Code Yet
Dec 16, 2022
Review
At line: https://github.com/wponion/wponion/blob/master/includes/builder/helper/container/class-functions.php#L49
We need to add
is_array
orwponion_is_array
check.This is to avoid:
Warning: foreach() argument must be of type array|object, bool given in /plugins/wponion/includes/builder/helper/container/class-functions.php
Which happens when generating an admin page with no coded options code yet.
Screenshot
Fix
Result
The text was updated successfully, but these errors were encountered: