WordPress.org

Make WordPress Core

Changeset 16471


Ignore:
Timestamp:
11/18/10 19:55:05 (3 years ago)
Author:
ryan
Message:

Fix undefined offset warnings on pages the current user does not have perms for. Props wpdavis. fixes #15469

File:
1 edited

Legend:

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

    r15746 r16471  
    206206} 
    207207 
    208 $menu = add_menu_classes($menu); 
    209  
    210208if ( !user_can_access_admin_page() ) { 
    211209    do_action('admin_page_access_denied'); 
     
    213211} 
    214212 
     213$menu = add_menu_classes($menu); 
     214 
    215215?> 
Note: See TracChangeset for help on using the changeset viewer.