Remove duplicate login button from user links user menu.

Bug: T287585
Change-Id: I8f040be7f76911ca05268981b270e2eb44b2ff96
This commit is contained in:
Clare Ming 2021-07-28 15:32:25 -06:00
parent 7205a0b8e3
commit 27996c496b
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ class Hooks {
unset( $content_navigation['user-menu']['createaccount'] );
// "Login" link is handled manually by Vector
unset( $content_navigation['user-menu']['login'] );
// Remove duplicate "Login" link added by SkinTemplate::buildPersonalUrls if group read permissions
// are set to false.
unset( $content_navigation['user-menu']['login-private'] );
}
// ULS and user page links are hidden at lower resolutions.