Allow plugins to handle admin page access failures. Fixes #5379 props donncha
git-svn-id: https://develop.svn.wordpress.org/trunk@6356 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
efccf5d5b8
commit
e52d27014b
@ -137,6 +137,7 @@ unset($id);
|
||||
uksort($menu, "strnatcasecmp"); // make it all pretty
|
||||
|
||||
if (! user_can_access_admin_page()) {
|
||||
do_action('admin_page_access_denied');
|
||||
wp_die( __('You do not have sufficient permissions to access this page.') );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user