DatabaseBlock constructor accepts 'byText' property with blocker's name, and 'by' property with a blocker ID or, since I144603516b, a UserIdentity.
In cross-wiki blocking it's extremely easy to make a mistake and attribute the blocker to a local user with the same name or ID. Instead, these options for DatabaseBlock have to be hard-deprecated. The only remaining option should be providing a UserIdentity as a 'by' option.
Steps:
- Use codesearch to find all extensions that provide these options incorrectly. Make a list on this task. Fix extensions.
- Fix core.
Quick look over codesearch reveals that these options are mostly used in test codeso perhaps they can be removed without deprecation.