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

Test for ABSPATH in all files? #26

Closed n9yty closed 2 years ago

n9yty commented 3 years ago

I had come to believe that it was good practice to test if ABSPATH was defined in all the PHP files of a plugin, and I see you only test for it in the main top-level file.

I don't know if this is an issue or not, but raising this for at least consideration.

zackkatz commented 2 years ago

Thanks, @n9yty! This will be included in the next update.