Page MenuHomePhabricator

Deprecate ParserOptions::setMaxTemplateDepth()
Open, Needs TriagePublic

Description

No one appears to override this on a per-parse basis:

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

So this is always exactly equal to the wiki global configuration, which is what should be used instead.

We can start by marking ParserOptions::setMaxTemplateDepth() @internal, and deprecate and remove it later.
Related to T317647: Deprecate ParserOptions::setExternalLinkTarget().

Event Timeline

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

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

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

Change 836273 merged by jenkins-bot:

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

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