Page MenuHomePhabricator

Make $wgEnableMultiBlocks queryable
Open, Stalled, Needs TriagePublicFeature

Description

Currently, there seems to be no way for front-end users to check whether $wgEnableMultiBlocks is enabled on a given wiki. This complicates the development of JavaScript tools related to user blocking, since any action=block request with the newblock parameter set to true will always fail when the variable is not enabled.

I propose adding an enablemultiblocks field to the ApiQuerySiteinfo module.

Details

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1187969 had a related patch set uploaded (by Dragoniez; author: Dragoniez):

[mediawiki/core@master] Expose $wgEnableMultiBlocks in meta=siteinfo

https://gerrit.wikimedia.org/r/1187969

I instead believe $wgEnableMultiBlocks is a temporary setting that should be finally removed (similar to $wgEnablePartialBlocks which is already removed).

Patch in itself is fine, but I would also be interested to know how long living the $wg is expected to be.

Of course, it's added in 1.42, meaning it's part of the 1.43 LTS...

Dragoniez changed the task status from Open to Stalled.Oct 12 2025, 12:53 PM