Commit graph

97435 commits

Author SHA1 Message Date
Translation updater bot
7402801bcb Localisation updates from https://translatewiki.net.
Change-Id: Ia829a152081287e1ab43964e3cfa03044333e8d7
2020-07-06 09:47:51 +02:00
jenkins-bot
12b002104b Merge "Fix param type in EditPage__showStandardInputs_optionsHook" 2020-07-06 07:10:19 +00:00
jenkins-bot
30add78a9a Merge "me/contributions: filter by tag" 2020-07-06 06:01:52 +00:00
jenkins-bot
e0e9d8e35b Merge "rdbms: Fix case of class name in phpdoc" 2020-07-06 03:28:20 +00:00
jenkins-bot
f3314b54b7 Merge "preferences: Fix case of wfEscapeWikiText" 2020-07-06 03:28:15 +00:00
Umherirrender
e591232e79 preferences: Fix case of wfEscapeWikiText
Change-Id: If241255f6e9d2188ba2745796209eca727ab3fb3
2020-07-05 16:51:47 +02:00
Umherirrender
2c54d984c9 rdbms: Fix case of class name in phpdoc
Change-Id: I04b6fd37c76370bda6848cf727fb0f4b35205d91
2020-07-05 16:38:48 +02:00
JJMC89
b18bc92c6b Create mergehistory grant for mergehistory
Bug: T257097
Change-Id: Ia726cc5fc4a1e09ce3f1a55cc75cb26b44b86b7d
2020-07-04 06:21:39 +00:00
Lucas Werkmeister
2585f244c4 Fix param type in EditPage__showStandardInputs_optionsHook
In EditPage::showStandardInputs, where the hook is called, the $tabIndex
looks like it will always be an int, not a string.

Change-Id: If3bd9f628e29d078b524242f51f120a27f7ed35e
2020-07-03 18:31:05 +02:00
jenkins-bot
5de63c7396 Merge "Revert "Adding = as a parser function"" 2020-07-03 15:21:54 +00:00
C. Scott Ananian
9bd4fc0ae9 Revert "Adding = as a parser function"
This reverts commit 4bc0dc348a.

Reason for revert: Dutch Wikitionary uses {{=}} for something else;
see https://phabricator.wikimedia.org/T91154#6276915 for details.

Revert for now so it doesn't disrupt next week's train, we'll add it back with a config var or some other mitigation.

Bug: T91154
Change-Id: I9f81c7b73a04d6c1d77b67ce311cc7e6d279eb8b
2020-07-03 14:52:27 +00:00
jenkins-bot
804abf07f3 Merge "Fix some incomplete PHPDocs in Revision and related" 2020-07-03 11:57:32 +00:00
jenkins-bot
6f53c6279e Merge "Enforce maximum reason length in forms" 2020-07-03 11:54:24 +00:00
jenkins-bot
c3ca89215b Merge "EditResultBuilder: use RevisionRecord::hasSameContent" 2020-07-03 11:33:20 +00:00
jenkins-bot
9587703066 Merge "skins: Remove unused by-reference & from BaseTemplate" 2020-07-03 09:17:55 +00:00
Thiemo Kreuz
6e246aa176 skins: Remove unused by-reference & from BaseTemplate
Change-Id: Id40d2732332b1a0b186917927645c65ccd60abe6
2020-07-03 08:41:27 +00:00
Translation updater bot
39688e358e Localisation updates from https://translatewiki.net.
Change-Id: I294072b05910dcbff2207af8570fef4fb9f79dd1
2020-07-03 08:30:59 +02:00
jenkins-bot
5f021592d5 Merge "SpecialUserrights: If a viewer lacks hideuser, ignore hidden users" 2020-07-03 05:05:24 +00:00
jenkins-bot
759e58082f Merge "DBConnRef: Remove check for spl_object_id existing, always available" 2020-07-03 04:23:42 +00:00
jenkins-bot
508b851296 Merge "Debug: include username in User::getBlockedStatus wfDebug call" 2020-07-03 04:23:36 +00:00
jenkins-bot
4eecaeecf9 Merge "HookRunner: Add missing return for RevisionFromEditComplete" 2020-07-03 04:23:30 +00:00
jenkins-bot
f7ec52ebd0 Merge "maintenance/blockUsers.php: Check only for prior DatabaseBlocks" 2020-07-03 04:19:11 +00:00
jenkins-bot
96baa0693d Merge "Replace uses of Revision constants" 2020-07-03 04:19:05 +00:00
DannyS712
0867a4e870 SpecialUserrights: If a viewer lacks hideuser, ignore hidden users
Hidden users will be treated as if the account doesn't exist.

Bug: T232568
Change-Id: I8ebe77cbae9891ea2e58c837983860762c4d3794
2020-07-03 04:15:04 +00:00
DannyS712
f60b1c4240 HookRunner: Add missing return for RevisionFromEditComplete
Change-Id: I7f523f3cbfacea62bb245a112e4377a81ce53e08
2020-07-03 03:58:59 +00:00
Thalia
0a847ae6dd maintenance/blockUsers.php: Check only for prior DatabaseBlocks
BlockUsers needs to know if there is a block stored in the database
against a particular user account. This is answered by
DatabaseBlock::newFromTarget.

Prior to this, the script called User::getBlock, which can return
SystemBlocks and CompositeBlocks too. These are not stored in the
database, so are irrelevant and would cause an error on attempting to
update them.

It also meant parameter types for BlockIpCompleteHook needed to be
changed to AbstractBlock in a302833fc3.
This changes them back to DatabaseBlock.

Change-Id: Iec90d4938e76d76ac1f5b1d1e9ffb736a58d5c53
2020-07-03 03:50:56 +00:00
jenkins-bot
5499034af2 Merge "HeaderCallback: Sanitize cookie values in debug logs" 2020-07-03 03:28:53 +00:00
jenkins-bot
f38a514785 Merge "Set X-Request-Id on all web responses" 2020-07-03 03:23:05 +00:00
DannyS712
2f4b71fc6c Replace uses of Revision constants
Bug: T257010
Change-Id: Id63123e8b8becd31756d5b68ca11edb238ec8a59
2020-07-03 01:23:44 +00:00
jenkins-bot
a30af56472 Merge "Apply the clear fix on the user account form" 2020-07-02 22:29:59 +00:00
jenkins-bot
484ea3fa9a Merge "title: Make getSubpageText() return the title text if there's no subpage" 2020-07-02 20:54:27 +00:00
daniel
2cf5a251b9 me/contributions: filter by tag
Bug: T251803
Change-Id: I5ba4164abe414df4b24858422f2a601e00516d7f
2020-07-02 22:27:21 +02:00
Cindy Cicalese
7c72347ec1 Fix parameter name / variable name clash.
See comment after +2 at https://gerrit.wikimedia.org/r/c/mediawiki/core/+/604477.

Bug: T226857
Change-Id: I3fc182314b630ac6bb6bf84cde1c54c4a298640e
2020-07-02 16:07:53 -04:00
Ostrzyciel
881a1b9a90 EditResultBuilder: use RevisionRecord::hasSameContent
This is a tiny change to use RevisionRecord's hasSameContent
method instead of comparing SHA1s directly. This should also be
marginally faster.

Bug: T254074
Change-Id: Ifbdbf889eab2167ae2510dc9760771c9d4c3c3e0
2020-07-02 22:00:09 +02:00
jdlrobson
af8fad3603 Apply the clear fix on the user account form
The account form floats elements (form and benefits) but never
clears them. As a result on the beta cluster the sign up form is
currently overlapping the footer.

Change-Id: I99d9f1e6ab82e3bec32d62b4558d20f3628dc543
2020-07-02 16:55:00 +00:00
arttsymbar
b795681612 Language: Make common implementation of findVariantLink functions of Language Converters.
Bug: T254778
Change-Id: Id44539eb6ae2efcb092e871ae149be7235f5ba73
2020-07-02 19:14:45 +03:00
jenkins-bot
43d78ac47d Merge "Add database extension to LocalSettings.php." 2020-07-02 16:10:36 +00:00
jenkins-bot
5b15d2172d Merge "language: Move converters/ to includes/language/converters" 2020-07-02 12:00:32 +00:00
jenkins-bot
d5a9be70c4 Merge "language: Put remaining language Hook interfaces under includes/" 2020-07-02 12:00:26 +00:00
jenkins-bot
072b891bb1 Merge "Tests: Cleanup case loops in mediawiki.Title" 2020-07-02 11:56:32 +00:00
jenkins-bot
6452d6ca9e Merge "docs: Improve entry point documentation" 2020-07-02 11:16:44 +00:00
jenkins-bot
2352b927aa Merge "resourceloader: Change RL hooks to be non-abortable" 2020-07-02 11:05:40 +00:00
jenkins-bot
55dbebf135 Merge "language: Move LanguageConverterFactory and TrivialLanguageConverter to includes/" 2020-07-02 10:55:06 +00:00
DannyS712
5de2f0fedb DBConnRef: Remove check for spl_object_id existing, always available
MW 1.35 requires PHP 7.2.22+, and spl_object_id was added in PHP 7.2

Change-Id: I0b25e84c3830160d0f2874df1d9ad11730388cc5
2020-07-02 10:45:38 +00:00
Translation updater bot
703ea43d86 Localisation updates from https://translatewiki.net.
Change-Id: I23392f116a48fadcb0f122ae0294cd594893a8a5
2020-07-02 08:38:45 +02:00
jenkins-bot
182c3789f7 Merge "resourceloader: Mark VueComponentParser as @internal" 2020-07-02 03:03:24 +00:00
jenkins-bot
b2ce2db332 Merge "resourceloader: Add some typehints and misc clean up" 2020-07-02 03:02:02 +00:00
Timo Tijhof
8142eeff03 resourceloader: Mark VueComponentParser as @internal
Introduced within 1.35, mark as internal before stable release.

Change-Id: Id43b861852199950cae67ca7332e85f170256001
2020-07-02 02:39:01 +00:00
Timo Tijhof
8f6b0723af docs: Improve entry point documentation
* Unlink the word "Action" in api.php description, which was unhelpfully
  being autolinked to the index.php Action baseclass.

* Add links in the first sentence to the primary classes involved in
  their handling so that the "Entry points" overview page includes
  these links (subsequent sentence/paragraphs require an additional
  click).

Change-Id: Ibe882746ea7753d5d4c90a04f6974ea807122d1c
2020-07-02 02:07:25 +00:00
Timo Tijhof
91c73f6bac resourceloader: Add some typehints and misc clean up
* Add a void return hint to methods that are not meant to return
  anything. This helps catch accidental return statements in the
  future, lets Phan better understand how methods are meant to be
  used, and might also allow PHP to better optimise the compiled
  code form (speculation).

  I did not, however, add it to publicly extended methods as that
  might mess with strict mode.

* Remove the internal getResourceLoader() method from MessageBlobStore.
  This has been redundant since 3edaa0b37c.
  The method was protected, and not considered stable to subclass
  for extensions. Hence not a breaking change.

* Add Throwable typehint to formatException() and friends.
  This is the narrowest one I could add given that the methods
  called from here already enforce the same typehint.
  Update the doc to match for now. There isn't a reason right now
  to limit this only to Exception, and given this is the method
  and not the catch statement itself, does not change behaviour.

* Remove unused ResourceLoader->getHookContainer().
  Added within 1.35 cycle, safe to remove.

* Remove unexpected `@since` for `@internal` getHookRunner().

* Remove redundant `@internal` from ResourceLoaderMwUrlModule
  methods, which itself is already `@internal`.

Change-Id: I68d33ff6feca7ef95282a7ff03eb9332adfde31c
2020-07-02 03:05:59 +01:00