Make WordPress Core

Changeset 6356


Ignore:
Timestamp:
12/05/2007 07:34:57 AM (17 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r6026 r6356  
    138138
    139139if (! user_can_access_admin_page()) {
     140    do_action('admin_page_access_denied');
    140141    wp_die( __('You do not have sufficient permissions to access this page.') );
    141142}
Note: See TracChangeset for help on using the changeset viewer.