Page MenuHomePhabricator

Support null as parameter to APCOND_AGE_FROM_EDIT
Closed, ResolvedPublic

Description

APCOND_AGE supports a special case, when if it's passed null as parameter, it reads the value of $wgAutoConfirmAge.

Given that APCOND_AGE_FROM_EDIT is conceptually very similar to APCOND_AGE, it should support the same special case of reading $wgAutoConfirmAge.

Acceptance criteria

  • [ APCOND_AGE_FROM_EDIT, null ] is by definition the same as [ APCOND_AGE_FROM_EDIT, $wgAutoConfirmAge ].

Event Timeline

Change #1243833 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/core@master] Make APCOND_AGE_FROM_EDIT fall back to $wgAutoConfirmAge

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

Change #1243833 merged by jenkins-bot:

[mediawiki/core@master] Make APCOND_AGE_FROM_EDIT fall back to $wgAutoConfirmAge

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