Page MenuHomePhabricator

TranslationEditPage::getEditInfo() internal API request uses deprecated parameter intoken
Closed, ResolvedPublic

Description

The internal API request made by TranslationEditPage::getEditInfo() is using prop=info&intoken=edit to request an edit token. That was deprecated in MediaWiki 1.24 in favor of the meta=tokens module.

Ideally you'd remove the internal API call entirely in favor of calling the appropriate backend methods directly, but at least don't make internal API calls that log deprecated feature uses to the 'api-feature-usage' channel.

Event Timeline

Nikerabbit subscribed.

This is only used for the legacy non-TUX Special:Translate interface. I have been postponing removal of it due to blockers such as not having a replacement that works without JavaScript. It seems that waiting has not been fruitful and I would consider just removing all the legacy code now.

Reedy subscribed.

See also T280806: Remove old action api token parameters... But the intoken call seems to be gone, so closing.