trustedlogin / Remove-Dashboard-Access

This WordPress plugin limits user access to the dashboard based on whether users have a chosen capability. Disallowed users are redirected to a chosen URL.
https://wordpress.org/plugins/remove-dashboard-access-for-non-admins/
49 stars 12 forks source link

Remove "Invalid argument supplied for foreach()" warnings when the menu isn't set #22

Closed mmcev106 closed 2 years ago

mmcev106 commented 5 years ago

I'm not sure... I spent about a half hour trying to identify the scenario in our test environment but didn't have any luck. I do know we're getting a ton of these lines in our production logs:

PHP Warning: Invalid argument supplied for foreach() in /app001/www/emerge/wp-content/plugins/remove-dashboard-access-for-non-admins/inc/class.rda-remove-access.php on line 93