Remove user id from Special:Preferences
authorKunal Mehta <legoktm@gmail.com>
Mon, 12 May 2014 04:48:18 +0000 (21:48 -0700)
committerOri.livneh <ori@wikimedia.org>
Tue, 13 May 2014 03:39:51 +0000 (03:39 +0000)
Dating back all the way to r15, it serves no useful purpose
as users typically do not need to know their own user id.
If they really want to, they can easily look it up using the
API.

Bug: 58626
Change-Id: Ib146abb8b579bc9a3dac601aff8e2818b2ed49e4

includes/Preferences.php
languages/i18n/en.json

index 13e94dd..1f1b7dd 100644 (file)
@@ -213,13 +213,6 @@ class Preferences {
                        'section' => 'personal/info',
                );
 
-               $defaultPreferences['userid'] = array(
-                       'type' => 'info',
-                       'label-message' => array( 'uid', $userName ),
-                       'default' => $user->getId(),
-                       'section' => 'personal/info',
-               );
-
                # Get groups to which the user belongs
                $userEffectiveGroups = $user->getEffectiveGroups();
                $userGroups = $userMembers = array();
index 1c617f7..399c932 100644 (file)
        "prefs-emailconfirm-label": "Email confirmation:",
        "youremail": "Email:",
        "username": "{{GENDER:$1|Username}}:",
-       "uid": "{{GENDER:$1|User}} ID:",
        "prefs-memberingroups": "{{GENDER:$2|Member}} of {{PLURAL:$1|group|groups}}:",
        "prefs-memberingroups-type": "$1",
        "prefs-registration": "Registration time:",