Compare [[https://office.wikimedia.org/wiki/Homepage?useskin=vector&useskinversion=1|officewiki on old Vector]] with [[https://office.wikimedia.org/wiki/Homepage?useskin=vector&useskinversion=2|officewiki on new Vector]] (while not logged in). The first has a "Log in" link, the second has a "Create account" link (which of course does not work for a private wiki).
**Expected behavior:**
- Create account link is not displayed
- Log in link stays within the user menu
# Developer notes
The account creation link is unconditionally added.
It should check if the menu item exists.
Replicate with:
```
$wgHooks['SkinTemplateNavigation::Universal'][] = function ( $skinTemplate, &$links ) {
unset( $links['user-menu']['createaccount'] );
};
```
# Acceptance criteria
* [ ] Private wikis do not show `Create account` link for anon users
* [ ] Public wikis do show `Create account` link for anon users
# QA steps
- In `LocalSettings.php`, add the following config to test whether `Create account` link shows in the personal menu:
```
$wgGroupPermissions['*']['createaccount'] = false;
```
- Without above config, the `Create account` link should be visible.
- With above config, the `Create account` link should not be visible.