Merge "Remove the deprecated GetBlockedStatus hook"

This commit is contained in:
jenkins-bot 2019-10-21 17:11:27 +00:00 committed by Gerrit Code Review
commit baf3d4b803
3 changed files with 2 additions and 9 deletions

View file

@ -98,6 +98,8 @@ because of Phabricator reports.
ApiBlockInfoTrait::getBlockDetails instead.
* The mediawiki.ui.text module, deprecated in 1.28 and unused, was removed.
* AbstractBlock::mReason, deprecated in 1.34, is no longer public.
* The GetBlockedStatus, deprecated in 1.34, has been removed. Instead, use the
GetUserBlock hook.
* …
=== Deprecations in 1.35 ===

View file

@ -1585,10 +1585,6 @@ entitled to be in.
$user: user to promote.
&$promote: groups that will be added.
'GetBlockedStatus': DEPRECATED since 1.34 - use GetUserBlock instead. After
loading blocking status of a user from the database
&$user: user (object) being checked
'GetCacheVaryCookies': Get cookies that should vary cache options.
$out: OutputPage object
&$cookies: array of cookies name, add a value to it if you want to add a cookie

View file

@ -1760,11 +1760,6 @@ class User implements IDBAccessObject, UserIdentity {
$this->mHideName = 0;
$this->mAllowUsertalk = false;
}
// Avoid PHP 7.1 warning of passing $this by reference
$thisUser = $this;
// Extensions
Hooks::run( 'GetBlockedStatus', [ &$thisUser ], '1.34' );
}
/**