WordPress.org

Make WordPress Core

Changeset 7618


Ignore:
Timestamp:
04/07/08 21:25:31 (6 years ago)
Author:
ryan
Message:

Fix add_users_page() when current user does not have edit_users cap. Props mattyrob. fixes #6621 for trunk

File:
1 edited

Legend:

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

    r7276 r7618  
    5353    $submenu['users.php'][10] = array(__('Your Profile'), 'read', 'profile.php'); 
    5454} else { 
     55    $_wp_real_parent_file['users.php'] = 'profile.php'; 
    5556    $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php'); 
    5657} 
Note: See TracChangeset for help on using the changeset viewer.