mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01: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. 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:
parent
30a35a4806
commit
71dea21c5f
@ -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() ) {
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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,
|
||||
)
|
||||
);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user