From 71dea21c5fe28d3caf4802c86d72b5e178a0c44f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 20 Apr 2020 08:39:06 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@47600 git-svn-id: http://core.svn.wordpress.org/trunk@47375 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 4 ++-- wp-admin/user-edit.php | 6 +++--- wp-includes/admin-bar.php | 2 +- wp-includes/version.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 2248a75164..edacdaefed 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -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() ) { diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index d8e1ffb9e6..49aff443a6 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -127,7 +127,7 @@ switch ( $action ) { if ( IS_PROFILE_PAGE ) { /** - * Fires before the page loads on the 'Your Profile' editing screen. + * Fires before the page loads on the 'Profile' editing screen. * * The action only fires if the current user is editing their own profile. * @@ -386,7 +386,7 @@ endif; 'user-actions', 'id' => 'edit-profile', - 'title' => __( 'Edit My Profile' ), + 'title' => __( 'Edit Profile' ), 'href' => $profile_url, ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 67eda89a06..83a2051173 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47599'; +$wp_version = '5.5-alpha-47600'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.