Return early in Title::checkUserBlock() if user does not have a block.
authorDavid Barratt <dbarratt@wikimedia.org>
Sat, 16 Feb 2019 06:08:10 +0000 (01:08 -0500)
committerDavid Barratt <dbarratt@wikimedia.org>
Fri, 22 Feb 2019 02:41:39 +0000 (21:41 -0500)
commit29bd18322949e03bbeca263965308f77e0858903
tree0612eb8870fa57b49aa053fcbfcd55ebd7cf394e
parent19aa197cf261bc483ade0a08e0bcd6016223a298
Return early in Title::checkUserBlock() if user does not have a block.

To reduce the overhead of the block checks, return early if the user does not
have a block.

Bug: T216309
Change-Id: I14930fcb7987cbc83294497ab54fcfeeedc94bfe
includes/Title.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/TitlePermissionTest.php