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:
parent
b562537d98
commit
5d5e3439e4
@ -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'][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 {
|
} else {
|
||||||
$_wp_real_parent_file['users.php'] = 'profile.php';
|
$_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' ) ) {
|
if ( current_user_can( 'create_users' ) ) {
|
||||||
$submenu['profile.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
$submenu['profile.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
||||||
} elseif ( is_multisite() ) {
|
} elseif ( is_multisite() ) {
|
||||||
|
@ -127,7 +127,7 @@ switch ( $action ) {
|
|||||||
|
|
||||||
if ( IS_PROFILE_PAGE ) {
|
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.
|
* The action only fires if the current user is editing their own profile.
|
||||||
*
|
*
|
||||||
@ -386,7 +386,7 @@ endif;
|
|||||||
<?php
|
<?php
|
||||||
if ( IS_PROFILE_PAGE ) {
|
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.
|
* The action only fires if the current user is editing their own profile.
|
||||||
*
|
*
|
||||||
@ -705,7 +705,7 @@ endif;
|
|||||||
<?php
|
<?php
|
||||||
if ( IS_PROFILE_PAGE ) {
|
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.
|
* 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(
|
array(
|
||||||
'parent' => 'user-actions',
|
'parent' => 'user-actions',
|
||||||
'id' => 'edit-profile',
|
'id' => 'edit-profile',
|
||||||
'title' => __( 'Edit My Profile' ),
|
'title' => __( 'Edit Profile' ),
|
||||||
'href' => $profile_url,
|
'href' => $profile_url,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -19,7 +19,7 @@ When a new version is released, <a href="%2$s" title="If you are already logged
|
|||||||
Upgrading is a couple of clicks!</p>
|
Upgrading is a couple of clicks!</p>
|
||||||
<p>Then you can start enjoying the WordPress experience:</p>
|
<p>Then you can start enjoying the WordPress experience:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users › Your Profile</a></li>
|
<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users › Profile</a></li>
|
||||||
<li>Start publishing at <a href="%4$s" title="Create a new post">Posts › Add New</a> and at <a href="%5$s" title="Create a new page">Pages › Add New</a></li>
|
<li>Start publishing at <a href="%4$s" title="Create a new post">Posts › Add New</a> and at <a href="%5$s" title="Create a new page">Pages › Add New</a></li>
|
||||||
<li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins › Add New</a></li>
|
<li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins › Add New</a></li>
|
||||||
<li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance › Add New Themes</a></li>
|
<li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance › Add New Themes</a></li>
|
||||||
@ -44,7 +44,7 @@ Upgrading is a couple of clicks!
|
|||||||
|
|
||||||
Then you can start enjoying the WordPress experience:
|
Then you can start enjoying the WordPress experience:
|
||||||
<ul>
|
<ul>
|
||||||
<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users › Your Profile</a></li>
|
<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users › Profile</a></li>
|
||||||
<li>Start publishing at <a href="%4$s" title="Create a new post">Posts › Add New</a> and at <a href="%5$s" title="Create a new page">Pages › Add New</a></li>
|
<li>Start publishing at <a href="%4$s" title="Create a new post">Posts › Add New</a> and at <a href="%5$s" title="Create a new page">Pages › Add New</a></li>
|
||||||
<li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins › Add New</a></li>
|
<li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins › Add New</a></li>
|
||||||
<li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance › Add New Themes</a></li>
|
<li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance › Add New Themes</a></li>
|
||||||
|
Loading…
Reference in New Issue
Block a user