mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Users: Change "Your Profile" and "My Profile" links in admin menu and toolbar to just "Profile" for consistency.
Props donmhico, bcworkz, seanchayes, mikeschroder, garrett-eclipse, akhileshsabharwal, ScottSmith, nacin, jenmylo, afercia, swissspidy, felix-edelmann, helen, melchoyce, karmatosed. Fixes #26769. git-svn-id: https://develop.svn.wordpress.org/trunk@47600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -264,10 +264,10 @@ if ( current_user_can( 'list_users' ) ) {
|
||||
$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );
|
||||
}
|
||||
|
||||
$submenu['users.php'][15] = array( __( 'Your Profile' ), 'read', 'profile.php' );
|
||||
$submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' );
|
||||
} else {
|
||||
$_wp_real_parent_file['users.php'] = 'profile.php';
|
||||
$submenu['profile.php'][5] = array( __( 'Your Profile' ), 'read', 'profile.php' );
|
||||
$submenu['profile.php'][5] = array( __( 'Profile' ), 'read', 'profile.php' );
|
||||
if ( current_user_can( 'create_users' ) ) {
|
||||
$submenu['profile.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
||||
} elseif ( is_multisite() ) {
|
||||
|
||||
Reference in New Issue
Block a user