diff options
author | C. Scott Ananian <cscott@cscott.net> | 2023-12-15 09:57:45 -0500 |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2024-03-29 18:30:02 -0400 |
commit | c2df535b9c40eed752d523d34e39c71e500d976d (patch) | |
tree | 0923309f729c3b3017318a6c692648743abdf623 /RELEASE-NOTES-1.42 | |
parent | c2a8a3e99ef0f88510002f70f72f447d121ae7e6 (diff) | |
download | mediawikicore-c2df535b9c40eed752d523d34e39c71e500d976d.tar.gz mediawikicore-c2df535b9c40eed752d523d34e39c71e500d976d.zip |
Substitute category default sort key when filling links table, not at parse time
This ensures uniform treatment of all places that call `addCategory`
without duplicating the `defaultsort` code; it also ensures that the
effect of the {{DEFAULTSORT}} parser function is independent of page
position.
Bug: T40435
Bug: T353530
Change-Id: I4480a6d59e766fa4eddc9ec9117c58b66771bb47
Diffstat (limited to 'RELEASE-NOTES-1.42')
-rw-r--r-- | RELEASE-NOTES-1.42 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/RELEASE-NOTES-1.42 b/RELEASE-NOTES-1.42 index 9ffefafa3c53..ed75d7a1483d 100644 --- a/RELEASE-NOTES-1.42 +++ b/RELEASE-NOTES-1.42 @@ -230,6 +230,19 @@ because of Phabricator reports. - ipblocks * ParserOutput::setFlag() and ::getFlag(), deprecated in 1.38, were removed. You should use ::setOutputFlag() and ::getOutputFlag() instead. +* The parser does not substitute the default category sort key at + parse time; this is substituted when the category links table is + updated instead. As a result {{DEFAULTSORT}} will affect all the + contents of the page (not just categories added after the location + of {{DEFAULTSORT}} in the article) and + ParserOutput::getCategorySortKey() will return the empty string + (still meaning "use the default sort key") instead of the immediate + value of {{DEFAULTSORT}}. ParserOutput::getCategorySortKey() will + directly reflect the category link contents, instead of having + postprocessing done to it (character references decoded, newlines + replaced, language conversion). That postprocessing is now done + when the category links table is updated, and so it consistently + applies even when categories are added directly via API. * PostgresUpdater::addPgEnumValue() unused everywhere, have been removed without deprecation. Use of ENUM is highly discouraged. * ILoadBalancer::getAnyOpenConnection() has been removed without deprecation, |