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
This commit is contained in:
Sergey Biryukov 2020-04-20 08:39:06 +00:00
parent 30a35a4806
commit 71dea21c5f
4 changed files with 7 additions and 7 deletions

View File

@ -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() ) {

View File

@ -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;
<?php
if ( IS_PROFILE_PAGE ) {
/**
* Fires after the 'Personal Options' settings table on the 'Your Profile' editing screen.
* Fires after the 'Personal Options' settings table on the 'Profile' editing screen.
*
* The action only fires if the current user is editing their own profile.
*
@ -705,7 +705,7 @@ endif;
<?php
if ( IS_PROFILE_PAGE ) {
/**
* Fires after the 'About Yourself' settings table on the 'Your Profile' editing screen.
* Fires after the 'About Yourself' settings table on the 'Profile' editing screen.
*
* The action only fires if the current user is editing their own profile.
*

View File

@ -313,7 +313,7 @@ function wp_admin_bar_my_account_menu( $wp_admin_bar ) {
array(
'parent' => 'user-actions',
'id' => 'edit-profile',
'title' => __( 'Edit My Profile' ),
'title' => __( 'Edit Profile' ),
'href' => $profile_url,
)
);

View File

@ -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.