This patch skip the [[Category:#]] parsing logic when the Title is in NS_MEDIAWIKI and ends with .js or .css. This way the code is kept as is and pages are no more categorized. How to reproduce the issue: $ echo 'var foo = "[[Category:bug32450]]"' \ | php maintenance/parse.php --title MediaWiki:Foobar.js <p>var foo = "" </p> $ Note how the text got stripped. After this patch: $ echo 'var foo = "[[Category:bug32450]]"' \ | php maintenance/parse.php --title MediaWiki:Foobar.js <p>var foo = "[[Category:bug32450]]" </p> $ TEST PLAN: ========== $ php parserTests.php --quiet This is MediaWiki version 1.19alpha (r103473). Reading tests from "tests/parser/parserTests.txt"... Reading tests from "tests/parser/extraParserTests.txt"... Passed 654 of 654 tests (100%)... ALL TESTS PASSED! $ |
||
|---|---|---|
| .. | ||
| jasmine | ||
| parser | ||
| phpunit | ||
| qunit | ||
| selenium | ||
| .htaccess | ||
| parserTests.php | ||
| RunSeleniumTests.php | ||
| testHelpers.inc | ||
| TestsAutoLoader.php | ||