$vals['options'][ApiResult::META_BC_BOOLS] = array_keys( $vals['options'] );
}
- if ( isset( $this->prop['preferencestoken'] ) ) {
- $p = $this->getModulePrefix();
- $this->addDeprecation(
- [
- 'apiwarn-deprecation-withreplacement',
- "{$p}prop=preferencestoken",
- 'action=query&meta=tokens',
- ],
- "meta=userinfo&{$p}prop=preferencestoken"
- );
- }
if ( isset( $this->prop['preferencestoken'] ) &&
!$this->lacksSameOriginSecurity() &&
$user->isAllowed( 'editmyoptions' )
'rights',
'changeablegroups',
'options',
- 'preferencestoken',
'editcount',
'ratelimits',
'email',
'registrationdate',
'unreadcount',
'centralids',
+ 'preferencestoken',
],
ApiBase::PARAM_HELP_MSG_PER_VALUE => [
'unreadcount' => [
self::WL_UNREAD_LIMIT . '+',
],
],
+ ApiBase::PARAM_DEPRECATED_VALUES => [
+ 'preferencestoken' => [
+ 'apiwarn-deprecation-withreplacement',
+ $this->getModulePrefix() . "prop=preferencestoken",
+ 'action=query&meta=tokens',
+ ]
+ ],
],
'attachedwiki' => null,
];