Deprecate the UserIsHidden hook
This was replaced by GetUserBlock in 7a5508573a.
Handlers in production were updated to use GetUserBlock in
Ibbcd3a239.
Bug: T228948
Change-Id: I3e6da73e595e2bd6a96600fe2a6dc68a54d06a2e
This commit is contained in:
parent
ca3083c61e
commit
af24fc1a7a
3 changed files with 6 additions and 2 deletions
|
|
@ -530,6 +530,8 @@ because of Phabricator reports.
|
|||
* Specifying both the class and factory parameters for
|
||||
ApiModuleManager::addModule is now deprecated. The ObjectFactory spec should
|
||||
be used instead.
|
||||
* The UserIsHidden hook is deprecated. Use GetUserBlock instead, and add a
|
||||
system block that hides the user.
|
||||
|
||||
=== Other changes in 1.34 ===
|
||||
* …
|
||||
|
|
|
|||
|
|
@ -3729,7 +3729,9 @@ $ip: User's IP address
|
|||
false if a UserGetRights hook might remove the named right.
|
||||
$right: The user right being checked
|
||||
|
||||
'UserIsHidden': Check if the user's name should be hidden. See User::isHidden().
|
||||
'UserIsHidden': DEPRECATED since 1.34 - use GetUserBlock instead, and add a
|
||||
system block that hides the user. Check if the user's name should be hidden.
|
||||
See User::isHidden().
|
||||
$user: User in question.
|
||||
&$hidden: Set true if the user's name should be hidden.
|
||||
|
||||
|
|
|
|||
|
|
@ -2169,7 +2169,7 @@ class User implements IDBAccessObject, UserIdentity {
|
|||
if ( !$this->mHideName ) {
|
||||
// Reset for hook
|
||||
$this->mHideName = false;
|
||||
Hooks::run( 'UserIsHidden', [ $this, &$this->mHideName ] );
|
||||
Hooks::run( 'UserIsHidden', [ $this, &$this->mHideName ], '1.34' );
|
||||
}
|
||||
return (bool)$this->mHideName;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue