Allow plugins to handle admin page access failures. Fixes #5379 props donncha

git-svn-id: http://svn.automattic.com/wordpress/trunk@6356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-12-05 07:34:57 +00:00
parent 0ad360cc00
commit 63c48d25b9
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.') );
}