Remove the deprecated GetBlockedStatus hook
Change-Id: I19d522ce32f540cc39bf482ab76f71492e4e9fd0
This commit is contained in:
parent
6e385eb875
commit
3be681e625
3 changed files with 2 additions and 9 deletions
|
|
@ -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 ===
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue