Drop UserGetImplictGroups, deprecated since 1.25
authorJames D. Forrester <jforrester@wikimedia.org>
Wed, 10 Oct 2018 22:28:34 +0000 (15:28 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Wed, 10 Oct 2018 22:30:00 +0000 (15:30 -0700)
Change-Id: Iffe29131fcc85d3477fe93508902d8ea982289f5

RELEASE-NOTES-1.32
docs/hooks.txt
includes/user/User.php

index ba05a4f..fe1c7d4 100644 (file)
@@ -342,6 +342,7 @@ because of Phabricator reports.
 * File / MediaHandler::getStreamHeaders(), deprecated since 1.30, was removed.
 * The hook 'DoEditSectionLink', deprecated since 1.25, has been removed. Use
   the hook 'SkinEditSectionLinks' instead.
+* The hook 'UserGetImplicitGroups', deprecated since 1.25, has been removed.
 
 === Deprecations in 1.32 ===
 * HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit
index e80e179..9757a7e 100644 (file)
@@ -3724,10 +3724,6 @@ $user: User object
 &$timestamp: timestamp, change this to override local email authentication
   timestamp
 
-'UserGetImplicitGroups': DEPRECATED since 1.25!
-Called in User::getImplicitGroups().
-&$groups: List of implicit (automatically-assigned) groups
-
 'UserGetLanguageObject': Called when getting user's interface language object.
 $user: User object
 &$code: Language code that will be used to create the object
index 12623e8..7787901 100644 (file)
@@ -5113,16 +5113,13 @@ class User implements IDBAccessObject, UserIdentity {
 
        /**
         * Get a list of implicit groups
+        * TODO: Should we deprecate this? It's trivial, but we don't want to encourage use of globals.
+        *
         * @return array Array of Strings Array of internal group names
         */
        public static function getImplicitGroups() {
                global $wgImplicitGroups;
-
-               $groups = $wgImplicitGroups;
-               # Deprecated, use $wgImplicitGroups instead
-               Hooks::run( 'UserGetImplicitGroups', [ &$groups ], '1.25' );
-
-               return $groups;
+               return $wgImplicitGroups;
        }
 
        /**