[wp-trac] [WordPress Trac] #43633: Duplicate links to edit profile dropdown in toolbar
WordPress Trac
noreply at wordpress.org
Tue Mar 27 00:34:00 UTC 2018
#43633: Duplicate links to edit profile dropdown in toolbar
-------------------------------------+------------------------------
Reporter: danieltj | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui
-------------------------------------+------------------------------
Comment (by netweb):
I stand by what I wrote in comment:5, the primary purpose of the
`wp_admin_bar_my_account_menu()` function is to add "My Account" items to
the admin bar which are the ''user profile'' links, first the user profile
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/admin-
bar.php#L291 #L291], and then, if it is not multisite
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/admin-
bar.php#L266 #L266] the "Edit My Profile" link is added.
[attachment:43633.2.diff] changes multisite behaviour by changing the
first link to link to a users post archive rather than the current link to
the dashboard [https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/admin-bar.php#L267 #L267], this is currently used I expect due to
all of the multisite blog/site/network juggling complexities that are
required to retrieve any user related content in multisite environments.
Also adding a filter as proposed in [attachment:43633.2.diff] puts the
onus on developers to opt-out of a what is a breaking change being
introduced into WordPress and these types of change should be avoided.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43633#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list