* Update extensions/DiscussionTools from branch 'REL1_43'
to 42af19725c5e579fdc3c165849e789f6a7cec91c
- Localisation updates from https://translatewiki.net.
Change-Id: I9267321e1dcf1e4b4053573d6e8adda374f1f9b7
* Update extensions/ConfirmEdit from branch 'REL1_43'
to 51d0661cff6cd0c12c3518ef7ac2d1a4d19692a9
- Localisation updates from https://translatewiki.net.
Change-Id: I708a4f13e6131fc069a3493511c151756c2e9f66
* Update extensions/Echo from branch 'REL1_43'
to 221fb808a32fdb544656d161d76b683342708d25
- Localisation updates from https://translatewiki.net.
Change-Id: I4dd9f189b5ae07f83a48dce723fc82e6e960c5f0
* Update extensions/CiteThisPage from branch 'REL1_43'
to 3fa7f83d96420613a15f389c6fe6e7276563a71e
- Localisation updates from https://translatewiki.net.
Change-Id: I58a250adad85eda3a5fab9e221207b68a61891a4
* Update extensions/AbuseFilter from branch 'REL1_43'
to 6e1f68aa5fcb2c6653a3e526749d3a2dfa941fd2
- Localisation updates from https://translatewiki.net.
Change-Id: Idf0c5b98adad49cb0ae336ad74e19c84f180f23b
* Update extensions/Math from branch 'REL1_43'
to 15bb2dd72f9b6bfddfbeeb396dd995d8f6fa75b9
- tests: Remove redundant WANObjectCache override
Since 2020 with change Ia60cb0bc18b23, the main cache is enabled
with a hash bag by default (and reset between each test), so this
override is identical to the default. Since WANObjectCache is a
wrapper around the main cache, simplify the cases where an override
is needed, to use the setMainCache() helper instead.
Remove double checking of the fake itself. This is well-tested within
core already.
Change-Id: Ie63e972c90c9c4187c9ca349a47784ce4136b44c
(cherry picked from commit f92f8b0702a6367bea32dabb65727ecfca3ba676)
* Update extensions/Math from branch 'REL1_43'
to 97840f5163427a0dc2847474b7add88b80c671ba
- Move colors to texutil
* get rid of BaseMapping class
Change-Id: Ifa9f6b52f5a72f0537ddb3ca8845ca12855871c8
(cherry picked from commit 250ed0688ded65e23812ed3592096ea34aaa09b0)
This patch reworks RestrictionStore::getCascadeProtectionSourcesInternal
to return a third and fourth array:
* One for cascading restrictions originating from templatelinks
* Another for those originating from imagelinks
They are used in PermissionManager::checkCascadingSourcesRestrictions
to differentiate cascading protection of file content and file page,
but could also be used in the future by action=info and other callers.
Bug: T24521
Bug: T62109
Bug: T140010
Change-Id: Ia5863f418538106f4fd657c672298ff6ac835805
(cherry picked from commit 7a4952ef2c5d593fae9419bad39f3e9894f42adf)
Users should have 'reupload' or 'reupload-own' rights to do file revert.
Bug: T304474
Change-Id: I2d0eaeeea237286741708c2b5920fe7cca3acf50
(cherry picked from commit 7b4aee237e257954195c4d695b2cfe2a9a3b4116)
* Update extensions/Math from branch 'REL1_43'
to 748f51c19da40b4f9593fcc5b19776bb17237a3f
- Pass state by reference
The idea of the state is that it can be changed. However, the
variable was not passed by reference.
For example, the derivative after det was applied twice.
Bug: T386562
Change-Id: I91b79418e4f1e33b2c54fad1ca1513f129d6c508
(cherry picked from commit ae5c056802d27801ab7d06e4aa1987528b91e0a9)
* Update extensions/Math from branch 'REL1_43'
to 630aac46937fabee697e7f059f80dd142d841e91
- Improve Nodes documentation
Classes in MMLmappings are under refactoring, so no changes done there
Change-Id: I3e450a02ec401ae780f037aa08edb68df173e3d0
(cherry picked from commit 6d0e8012c16cd79f279884b919c956699e61d44d)
* Update extensions/Math from branch 'REL1_43'
to 183aeb7320b7924a0c1394e5c2fa373a894ed57e
- Add various function documentation
All cases using union types or mixed type, it is not possible to use
type declaration with php7.4 for this functions.
Change-Id: I347d55324001bcaacbe1ba8abacc6d953af530ec
(cherry picked from commit bee3ac6690f6d67cbaab5a6e90eecf3b6d9f6e3f)
* Update extensions/Math from branch 'REL1_43'
to 883be554dbca6a681f12fd44d2efdda153844d39
- Fix: rendering of _1
_1 was converted by the preprocessor to
\displaystyle _1 and the DQ node got
\displaystyle rather than an empty node as input.
This change renders the base (here displaystyle) and
checks if the result is empty instead of checking
if the input is empty. Thus, both variants
{}_1 and _1 render correctly
Bug: T386071
Change-Id: I0366a8d6636368d437c9905961989e9882d4e1f6
(cherry picked from commit b4f3514c2a27c948074cf2f61b88e85c58cf9dd6)
* Update extensions/Math from branch 'REL1_43'
to 27a8b844f9114dae0769682f75c562e2dfd81937
- Improve TexUtilTest
Split set test and soft test.
Remove legacy separation to sets and maps.
Change-Id: I2ec4a0ae1a05837e6d870ed1f4fac84e1bc5d255
(cherry picked from commit b63bae6aad9dfceded134652f597a02cd35b2ad4)
* Update extensions/Math from branch 'REL1_43'
to 1fa6908c540f83d4a4d0ff3f4f74b04e5e7b08f2
- Add changes test
The native Math rendering mode is transitioning into
a more stable state. To avoid regression, we start
adding changes test to avoid unintended side effects
for modifications made. The maintenance script
provides a mechanism, to easily update the references
after manual review.
When creating the *unit* tests it was required to
move forward with refactoring the code to better
support the concept of services. Thus new service
injection was added to make the code testable by
unit code without to disable the old entry paths.
The newly introduced property, rawError is a
workaround as it calls
\MediaWiki\Message\Message::fetchMessage
which relies on MediaWikiServices to be present.
Bug: T386071
Change-Id: I52c1b23194dda41a85e28d436a62d34a19154783
(cherry picked from commit 1916e4cf21ce6944ab99d241508bc128fbfa3f84)
* Update extensions/Math from branch 'REL1_43'
to f28d9ba2668e982bff5febff4a04e1dcbe46bbbb
- Merge "Add type annotations to TexUtil" into REL1_43
- Add type annotations to TexUtil
Add method return type annotations to TexUtil class
Bug: T385953
Change-Id: I9586718cabce6bc0db977ddc6f845c83c6b6cff5
(cherry picked from commit 5f2bfac605239029d2d378040585b516889df40d)
* Update extensions/Math from branch 'REL1_43'
to 5b1e4e0c6e2af19916579ba481e62d80a88211f5
- Merge "move base macros to texutil" into REL1_43
- move base macros to texutil
* remove getCancelByKey as it only used in tests
Change-Id: Iabfd90f3d8b97a388084463bfd1a960093f30666
(cherry picked from commit 59c6f1bfba7fd60d28b4c00aed06896f8dd74421)
* Update extensions/Math from branch 'REL1_43'
to e34209700a1e24ed03c3479b8bd5e0b82643a59f
- Merge "Remove AMSMappings" into REL1_43
- Remove AMSMappings
They are already fully integrated into texutil.
Rename the _rendering groups to callback.
Add convenience function to sort texutil.json
Change-Id: I059e2c75f990870389654c8df9b77bad4805b5b2
(cherry picked from commit 28cffd95865682f3258c67614ee12fffcc727ee1)
* Update extensions/Math from branch 'REL1_43'
to ac44af496efd845c773df643de0d79501c5c661e
- Merge "Move special functions to texutil.json" into REL1_43
- Move special functions to texutil.json
textvisiblespace rendering does not exist.
Change-Id: I504f3ed0f5d68589750ed5f6c0048cb5130027e2
(cherry picked from commit 88120e016ce87324a11a7baeb529b0a947cacc00)
* Update extensions/Math from branch 'REL1_43'
to 3a4f1abbc56810fa3c2c798752439a11cced9ef1
- Merge "Move special functions to texutil.json" into REL1_43
- Move special functions to texutil.json
Only tilde exists.
See T385953 for the removal of callback
Change-Id: I9ebff23424b9bb1c137084202277d912108b195a
(cherry picked from commit e9e45ebc182ddb85fd52c1604ef2d2c06bcc3e86)
* Update extensions/Math from branch 'REL1_43'
to 5fd2fe79b5e841d6b0b8d039b9dae5c114981a7a
- Merge "Move mhchem functions to texutil.json" into REL1_43
- Move mhchem functions to texutil.json
Instead of using a dedicated mhchem_rendering we use callback
as a group. By doing so the nested if-statement in BaseMethods
can be removed step by step.
Change-Id: Ie8cac74b77bee8214b10752e0a9e7052a93ba433
(cherry picked from commit 8e0c072e2a44ca78cd4f000140a036c9aa46fc90)
* Update extensions/Math from branch 'REL1_43'
to 3daf7ed9b8c7d18ff4b8f08a077f33a03cdb085b
- Merge "Move base operators to texutil.json" into REL1_43
- Move base operators to texutil.json
Include "-" as a regular operator. Follow the same logic as done in
I9b8ed15fd71f9c7bf3e9747a497b9068f69047fe.
Change-Id: I1bb409d6bbcb7472af755cecc10208ae590d668e
(cherry picked from commit ed9aac47fbed9d075dc5128409ee922951d09553)
* Update extensions/Math from branch 'REL1_43'
to a60b606324bbf3052b1f4e39060fed2ac004abc2
- Merge "Move AMS macros to texutil.json" into REL1_43
- Move AMS macros to texutil.json
Remove pointers to not yet implemented rendering functions.
Bug: T385936
Change-Id: If2cf4abfac8e026a8df831e5f005dd0ba6877799
(cherry picked from commit 866e5c7e2b2e032935a85ab1662e7d983ec56f42)
* Update extensions/Math from branch 'REL1_43'
to 5db9003e68b892cd0899728b55176f895370cde4
- Merge "Move AMS environments to texutil.json" into REL1_43
- Move AMS environments to texutil.json
Keep all unused environments and potentially superfluous parameters
for now. Remove environments which are not implemented.
Change-Id: Ic17c3423db66416330b2a025d767fce7b204cb9e
(cherry picked from commit cfcdfac07d74804ad5d29945972fe4c73b7370be)
* Update extensions/Math from branch 'REL1_43'
to 1cc0a06b26855aa3546a256445ac1ffd27206bc8
- Merge "Move AMS operators to texutil.json" into REL1_43
- Move AMS operators to texutil.json
Change-Id: I9b8ed15fd71f9c7bf3e9747a497b9068f69047fe
(cherry picked from commit 80da57b2ed6b508fc40fe29cd5e3db2406639e70)
* Update extensions/Math from branch 'REL1_43'
to bbc0e43b733a590d9102b146cb43423ec5dfce8b
- Merge "WikiTexVC: Document public function in TexNode and sub classes" into REL1_43
- WikiTexVC: Document public function in TexNode and sub classes
The class hierachy is very big.
To avoid issues with function overrides, no type declarations are added.
Change-Id: Ieacebc20aac607678c579b72a9d83a262bff2eaa
(cherry picked from commit 7cdbb8ee980d321cb0e8daf661547240b4929daf)
* Update extensions/Math from branch 'REL1_43'
to aea0d12452049bf28da44eb001d3877ec9f7b307
- Merge "Add @inheritDoc to functions" into REL1_43
- Add @inheritDoc to functions
Add @inheritDoc to functions found by the FunctionComment
sniff to remove the exclusion of the sniff.
The activated sniff avoids that new code is missing doc comments or
type declarations for arguments and return value.
Exclude WikiTexVC folder from phpcs to make fixes in separate patches
Change-Id: I9886082467069895247ebf6914aad6f209978b83
(cherry picked from commit ee278665f5f3dce857041be019dec96802c85f48)
* Update extensions/Math from branch 'REL1_43'
to 7266301409196f915f205f6ace9cc3c1fa2b00e5
- Merge "Avoid null from MathRenderer::isInDatabase" into REL1_43
- Avoid null from MathRenderer::isInDatabase
readFromCache() is overridden in MathNativeMML class,
resulting in a null value for MathRenderer::$storedInCache
Set the class property to the result of the readFromCache() function
Change-Id: Iebb34cb6feed57a8d0ee9c945c5b335356810f2a
(cherry picked from commit e6d2bda52255085b34bb35f7627f25165d970816)
* Update extensions/Math from branch 'REL1_43'
to 3475fab44fa9fe1d46fa95291926e88f72d5fe04
- Merge "Use type declaration on undocumented public functions" into REL1_43
- Use type declaration on undocumented public functions
Change-Id: Iefd186c95adbf6318c02f36c41a79837df3aa205
(cherry picked from commit 170da2f16ffa5803d6b929b72c68bf1081db3311)
* Update extensions/Math from branch 'REL1_43'
to 9627c9093d537481df2728969b7b65e272344e85
- Merge "WikiTexVC: Use type declaration on undocumented public functions" into REL1_43
- WikiTexVC: Use type declaration on undocumented public functions
Change-Id: Ifb503a25509776efc99cf553d4ea961989e72e3e
(cherry picked from commit 3470e40b7509dee161d293c07ce6cff07a07fa5d)
* Update extensions/Math from branch 'REL1_43'
to d9c708277c00c53e3773bf49247e00c51977bbde
- Merge "Handle RevisionedUnresolvedRedirectException" into REL1_43
- Handle RevisionedUnresolvedRedirectException
MathWikibaseConnector::fetchPageUrl() calls
EntityRevisionLookup::getEntityRevision() which might
throw two different exceptions types.
* Add the previously unhandled exception type
RevisionedUnresolvedRedirectException
to the existing exception handler
Bug: T385599
Change-Id: I02277fd15efb5743f32e78a9d17051d4bd70e9ab
(cherry picked from commit b6076c405d5b1527c0279fc7c6e925fdc10cfc50)
* Update extensions/Math from branch 'REL1_43'
to b7e3a60a85a02b113a60b8e5a80ce90910d218e6
- Merge "Move \implies mapping from AMS to BaseMapping" into REL1_43
- Move \implies mapping from AMS to BaseMapping
\implies was the only (used) macro in AmsMappings
"SymbolMacros". Moved it th base function.
\impliedby was not whitelisted and thus not usable.
Change-Id: I2dab96f6e5add1d7f6ccc1c3759df6328163ee2e
(cherry picked from commit eccfb25981cee660508e055a8fac05604c016a1a)
* Update extensions/Math from branch 'REL1_43'
to d8831a4703370b7e806f670bbbacee7524df8661
- Merge "Simplify delimiter handling" into REL1_43
- Simplify delimiter handling
Remove special handling for delimiters and
move all delimiter data to texutil.json
* Unify AMS and non-AMS identifiers
Change-Id: I38fb5ecd928b4091d4b61c4ae8912ffae97c0400
(cherry picked from commit fa461a1d46a46765825885692ae88fb3491c8fca)
* Update extensions/Math from branch 'REL1_43'
to f2e81d6e0b094912171d00cda836c3b0a94aad92
- Merge "Simplify AMS delimiter handling" into REL1_43
- Simplify AMS delimiter handling
Remove special handling for AMS delimiters and
move all the data texutil.json
Change-Id: Ie1884b4bce853d647a5b4d6d78d43d69aa06c0f9
(cherry picked from commit 1c456a62dd0ac7406646e81e41b0bfa94321f92a)
* Update extensions/Math from branch 'REL1_43'
to 3972cff73ebf77e0400f71ec4c83cc8486b1eb42
- Merge "Add function documentation to protected functions" into REL1_43
- Add function documentation to protected functions
Add php-doc to undocumented protected functions to complete
documentation.
All cases using union types, it is not possible to use
type-declaration with php7.4 for this functions.
The activated sniff avoids that new code is missing doc comments or
real-typehints for arguments and return value.
Change-Id: Iddfa452012c66051bc07de015278a2888afa45e1
(cherry picked from commit f85b8ea8b00b50947fe3ca466230bf9a340f214e)
* Update extensions/Math from branch 'REL1_43'
to 6fa3ba740ecb5d848970bcad906a4c6abb83fbdd
- Merge "Use type-declaration on undocumented protected functions" into REL1_43
- Use type-declaration on undocumented protected functions
Change-Id: I45978c1b90fa9b86ffd67fdd3632e7f3cd659ef2
(cherry picked from commit 1b1a1ff86c07766cf57b2162645b185d02b7d966)
* Update extensions/Math from branch 'REL1_43'
to a2ab22d8aaa9e96048d4df7d1cd54212dc56e403
- Merge "Fix rendering of \operatorname{a}'" into REL1_43
- Fix rendering of \operatorname{a}'
LaTeX allows to render derivatives in combination with
operatorname in a way tha the derivative is put after
the operator and before the function application
space. This mimics that behavior as a special case.
Bug: T384794
Change-Id: I80c3c314ca0a33b36f5bd993bb3786b8d5dce310
(cherry picked from commit 05fdce7cc19a5ff8f56612e1f86b225a460c92ae)
* Update extensions/Math from branch 'REL1_43'
to db4e7d59ff106de77d57d0c9ee636c91f611fb6f
- Merge "Add function documentation to private functions" into REL1_43
- Add function documentation to private functions
Add php-doc to undocumented private functions to complete documentation.
All cases using union types, it is not possible to use
type-declaration with php7.4 for this functions.
The activated sniff avoids that new code is missing doc comments or
real-typehints for arguments and return value.
Change-Id: I3d0ab428c689f5fcf7b9a4fd3a796a5b23d2c33c
(cherry picked from commit bd02eed1a4d3142154f0584e0b8e73014a71ba4e)
* Update extensions/Math from branch 'REL1_43'
to 4bcbd077f094acca2bc09f88caca162db65c4842
- Merge "Use type-declaration on undocumented private functions" into REL1_43
- Use type-declaration on undocumented private functions
Change-Id: Id34fb56d6b0b88bf20bab4501ea0c6005a9c8812
(cherry picked from commit c13b21a75783a4b2898910d8153304c02774eba6)
* Update extensions/Math from branch 'REL1_43'
to 88d0477015d543ba7e913016109debfce1742447
- Use array as message argument when calling OutputPage::addWikiMsgArray
This is a requirement in MW 1.43 as well,
per https://gerrit.wikimedia.org/g/mediawiki/core/+/REL1_43/includes/Output/OutputPage.php#4939
Change-Id: I5b3bf8a5766042495b69103542ae4960e1d51140
(cherry picked from commit 2280511de96f13d5ddd9e8a6066be7a2c4481e9a)
The extraneous sequence \r\n is not required.
Avoid the use of hexcode to avoid future confusions.
Bug: T388733
Change-Id: I1092ff76ed5e8221e43ea7b70cf0c9d9d3abb1f3
(cherry picked from commit 6753123a0629de81ce4899958180272736e7ba61)
* Update skins/MinervaNeue from branch 'REL1_43'
to bd38c5b02e85cb0ca5408826c7e4cc871c91129f
- Localisation updates from https://translatewiki.net.
Change-Id: I00d9e1116abaabd67d495435736aecd107d462a1