Drop 'comma' value for wgArticleCountMethod
authorJames D. Forrester <jforrester@wikimedia.org>
Wed, 28 Feb 2018 01:45:27 +0000 (17:45 -0800)
committerJames D. Forrester <jforrester@wikimedia.org>
Fri, 2 Mar 2018 00:37:23 +0000 (16:37 -0800)
commit326d655fc9309f55112538b387ed8c201158a27d
tree1a4133ba3672a16e446fba5c92f4eb9abb43715a
parent5e3b2469991ebfc3ba96bb377b9c3847410b2f86
Drop 'comma' value for wgArticleCountMethod

We have three methods for page counting currently supported for wikitext
non-redirect pages; 'any' counts any page that exists, 'link' counts any
page that has any outbound links, and 'comma' which searches for any ','
in the text having loaded it. This last option is much slower than these
other two, and is only used on a very small number of installations. Now
by dropping support for this method we can simplify this code and so run
it more often. Note that non-wikitext pages already did not support this
count method.

Installations with this setting set to 'comma', or any other string will
now work as if it was configured with 'any'.

Bug: T188472
Change-Id: I965927edcd2485ec4b49b2d80fdf216dbf19520b
RELEASE-NOTES-1.31
includes/DefaultSettings.php
includes/SiteStatsInit.php
includes/content/WikitextContent.php
tests/phpunit/includes/content/JavaScriptContentTest.php
tests/phpunit/includes/content/TextContentTest.php
tests/phpunit/includes/content/WikitextContentTest.php
tests/phpunit/includes/page/WikiPageDbTestBase.php
tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js