Page MenuHomePhabricator

Deprecate ParserOptions::setExternalLinkTarget()
Open, Needs TriagePublic

Description

The $wgExternalLinkTarget configuration option is mostly site-static, except for a single use in the Installer:

https://codesearch.wmcloud.org/search/?q=setExternalLinkTarget&i=nope&files=&excludeFiles=&repos=

The installer uses an ad-hoc parser anyway (see T317644). It should just reset the site configuration as needed, rather than use a parser option here.

We can start by marking ParserOptions::setExternalLinkTarget() @internal, and deprecate and remove it once the Installer is rewritten to use Parsoid.

Event Timeline

Change 831904 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Mark ParserOptions::{get,set}ExternalLinkTarget() @internal

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

Change 831904 merged by jenkins-bot:

[mediawiki/core@master] Mark ParserOptions::{get,set}ExternalLinkTarget() @internal

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