Page MenuHomePhabricator

UserToggles hook no longer work in 1.16
Closed, DeclinedPublic

Description

If an extension uses the UserToggles hook to add a checkbox to the "Misc" tab in preferences, this functionality no longer works in MediaWiki 1.16.

If this hook is now deprecated, this ticket should update the docs at http://www.mediawiki.org/wiki/Manual:Hooks/UserToggles and in /docs/HOOKS.

Example:

function wfToggle($extraToggles) {

global $wgMessageCache;
$extraToggles[] = 'foo';
$wgMessageCache->addMessage('tog-foo', 'my checkbox text');
return true;

}

Note: I am fairly sure that the deprecated $wgMessageCache->addMessage() call is NOT the problem.


Version: 1.16.x
Severity: major

Details

Reference
bz24785

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:09 PM
bzimport set Reference to bz24785.

Confirmed that the UserToggles hook is still in the 1.16 code in /includes/User.php.

This hook is no longer functional. I have removed some vestiges of it in User.php in r71062. and have marked the hook page appropriately.