Make WordPress Core

Ticket #26769: 26769.5.diff

File 26769.5.diff, 4.7 KB (added by donmhico, 4 years ago)

Used just Profile

  • src/wp-admin/menu.php

    diff --git src/wp-admin/menu.php src/wp-admin/menu.php
    index 2248a75164..edacdaefed 100644
    if ( current_user_can( 'list_users' ) ) { 
    264264                $submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );
    265265        }
    266266
    267         $submenu['users.php'][15] = array( __( 'Your Profile' ), 'read', 'profile.php' );
     267        $submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' );
    268268} else {
    269269        $_wp_real_parent_file['users.php'] = 'profile.php';
    270         $submenu['profile.php'][5]         = array( __( 'Your Profile' ), 'read', 'profile.php' );
     270        $submenu['profile.php'][5]         = array( __( 'Profile' ), 'read', 'profile.php' );
    271271        if ( current_user_can( 'create_users' ) ) {
    272272                $submenu['profile.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
    273273        } elseif ( is_multisite() ) {
  • src/wp-admin/user-edit.php

    diff --git src/wp-admin/user-edit.php src/wp-admin/user-edit.php
    index d8e1ffb9e6..49aff443a6 100644
    switch ( $action ) { 
    127127
    128128                if ( IS_PROFILE_PAGE ) {
    129129                        /**
    130                          * Fires before the page loads on the 'Your Profile' editing screen.
     130                         * Fires before the page loads on the 'Profile' editing screen.
    131131                         *
    132132                         * The action only fires if the current user is editing their own profile.
    133133                         *
    endif; 
    386386                <?php
    387387                if ( IS_PROFILE_PAGE ) {
    388388                        /**
    389                          * Fires after the 'Personal Options' settings table on the 'Your Profile' editing screen.
     389                         * Fires after the 'Personal Options' settings table on the 'Profile' editing screen.
    390390                         *
    391391                         * The action only fires if the current user is editing their own profile.
    392392                         *
    endif; 
    705705                <?php
    706706                if ( IS_PROFILE_PAGE ) {
    707707                        /**
    708                          * Fires after the 'About Yourself' settings table on the 'Your Profile' editing screen.
     708                         * Fires after the 'About Yourself' settings table on the 'Profile' editing screen.
    709709                         *
    710710                         * The action only fires if the current user is editing their own profile.
    711711                         *
  • src/wp-includes/admin-bar.php

    diff --git src/wp-includes/admin-bar.php src/wp-includes/admin-bar.php
    index 753e5ab5be..00a0bcde8b 100644
    function wp_admin_bar_my_account_menu( $wp_admin_bar ) { 
    313313                        array(
    314314                                'parent' => 'user-actions',
    315315                                'id'     => 'edit-profile',
    316                                 'title'  => __( 'Edit My Profile' ),
     316                                'title'  => __( 'Edit Profile' ),
    317317                                'href'   => $profile_url,
    318318                        )
    319319                );
  • tests/phpunit/tests/formatting/Autop.php

    diff --git tests/phpunit/tests/formatting/Autop.php tests/phpunit/tests/formatting/Autop.php
    index 9314715460..6a672345d7 100644
    When a new version is released, <a href="%2$s" title="If you are already logged 
    1919Upgrading is a couple of clicks!</p>
    2020<p>Then you can start enjoying the WordPress experience:</p>
    2121<ul>
    22 <li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users &#8250; Your Profile</a></li>
     22<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users &#8250; Profile</a></li>
    2323<li>Start publishing at <a href="%4$s" title="Create a new post">Posts &#8250; Add New</a> and at <a href="%5$s" title="Create a new page">Pages &#8250; Add New</a></li>
    2424<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 &#8250; Add New</a></li>
    2525<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 &#8250; Add New Themes</a></li>
    Upgrading is a couple of clicks! 
    4444
    4545Then you can start enjoying the WordPress experience:
    4646<ul>
    47 <li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users &#8250; Your Profile</a></li>
     47<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users &#8250; Profile</a></li>
    4848<li>Start publishing at <a href="%4$s" title="Create a new post">Posts &#8250; Add New</a> and at <a href="%5$s" title="Create a new page">Pages &#8250; Add New</a></li>
    4949<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 &#8250; Add New</a></li>
    5050<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 &#8250; Add New Themes</a></li>