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

Hook in at after_setup_theme instead of plugins_loaded #2

Closed ahizzle closed 9 years ago

ahizzle commented 9 years ago

When used with bbPress, enabling debug mode shows this error message: "Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) "

Changing the hook seems to maintain the desired functionality, w/o the error message. See also https://core.trac.wordpress.org/ticket/24169

ahizzle commented 9 years ago

Ping?

DrewAPicture commented 9 years ago

Hi there, sorry for the delay. I've actually moved it to the init hook as of v1.1.3.