The user object does not store the name of the blocker (database field ipb_user_name).
So User::whoIs( $wgUser->blockedBy() ); is called, but that is a unnecessary select, because you can get the name from the ipblocks table instead.
- ApiQueryUserInfo::getCurrentUserInfo
- Title::checkUserBlock
- OutputPage::blockedPage
Thanks.
Version: 1.18.x
Severity: enhancement