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:
Peter Westwood 2007-12-05 07:34:57 +00:00
parent efccf5d5b8
commit e52d27014b
1 changed files with 1 additions and 0 deletions

View File

@ -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.') );
}