WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/11/2010 02:29:15 PM (11 years ago)
Author:
ryan
Message:

user-new.php revamp. Separate caps for adding users vs. creating users. Allow supes to add via email or username. Split adding existing users and creating new users into separate forms. see #15357

File:
1 edited

Legend:

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

    r16261 r16294  
    187187    $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
    188188    $submenu['users.php'][5] = array(__('Users'), 'list_users', 'users.php');
    189     $submenu['users.php'][10] = array(_x('Add New', 'user'), 'create_users', 'user-new.php');
     189    $submenu['users.php'][10] = array(_x('Add New', 'user'), 'promote_users', 'user-new.php');
    190190
    191191    $submenu['users.php'][15] = array(__('Your Profile'), 'read', 'profile.php');
     
    193193    $_wp_real_parent_file['users.php'] = 'profile.php';
    194194    $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
    195     $submenu['profile.php'][10] = array(__('Add New User'), 'create_users', 'user-new.php');
     195    $submenu['profile.php'][10] = array(__('Add New User'), 'promote_users', 'user-new.php');
    196196}
    197197
Note: See TracChangeset for help on using the changeset viewer.