Commit graph

100555 commits

Author SHA1 Message Date
Amir Sarabadani
443c94de3f Rename four logging indexes to have log_ prefix
To follow database coding convention and avoid clashes in RDBMS engines
where indexes are global

Bug: T270033
Change-Id: I17028bba489d04b01d22c39dc8935a4f0f771c7e
2020-12-21 07:39:50 +00:00
DannyS712
d464f84182 Fix a typo: matser -> master
Bug: T201491
Change-Id: I2230195439582b1977d0c84295a5e8d9ee07a6cf
2020-12-21 06:38:42 +00:00
jenkins-bot
55407a960a Merge "Cleanup SpecialBlockTest" 2020-12-21 03:35:23 +00:00
jenkins-bot
6a532fd3b6 Merge "Correct minor things in RELEASE-NOTES" 2020-12-20 22:46:42 +00:00
jenkins-bot
268d10b1b7 Merge "Change "1 hidden category" to "a hidden category"" 2020-12-20 22:30:15 +00:00
Amir Aharoni
ac981497e0 Correct minor things in RELEASE-NOTES
* Language code for Mara language.
* Task number for Nias language.

Change-Id: Ib2b62383c1d96f1984c051ee130bd992ce945e24
2020-12-21 00:01:21 +02:00
jenkins-bot
dee1ab460c Merge "Rename all sites indexes" 2020-12-20 21:33:34 +00:00
jenkins-bot
5c660de5d0 Merge "Add Access-Control-Max-Age to $wgAllowedCorsHeaders" 2020-12-20 19:08:10 +00:00
jenkins-bot
e465223c2e Merge "Add MessagesNia.php" 2020-12-20 17:15:33 +00:00
jenkins-bot
81ee21c2f0 Merge "Remove the message listingcontinuesabbrev" 2020-12-20 13:43:34 +00:00
jenkins-bot
cb5d4497a5 Merge "Cache some context and service variables" 2020-12-20 12:42:21 +00:00
Amir Aharoni
14ab3d9598 Remove the message listingcontinuesabbrev
It was removed from the code in
I437e6079b20e110047f93fb5c09aae40189f1ec0

Change-Id: I35002cc079fd2f09bd684fdea839e96832e0188c
2020-12-20 14:24:19 +02:00
Amir Aharoni
12520d503c Change "1 hidden category" to "a hidden category"
It will read more nicely.

Change-Id: I7e7f4c75aeef89baa7281858e09627762499366c
2020-12-20 14:23:14 +02:00
Martin Urbanec
c3f1bb5cb3 Add MessagesNia.php
Bug: T270418
Change-Id: I2a482dd178f14dd6281411440a9e302fc6272c51
2020-12-20 08:14:50 +01:00
Ammar Abdulhamid
2bd536b83a Cleanup SpecialBlockTest
Needs to call parent::tearDown() after the table reset.

Use direct assertion and MediaWikiTestCase abstraction
where possible

Change-Id: Iad00569867e6f9a4579ae93b22fc0f570cde6bd7
2020-12-20 02:54:16 +01:00
Reedy
d2781d9b5c Cache some context and service variables
Change-Id: I1217d9d5112774bb3ad124605239dcc1705ab2eb
2020-12-20 01:32:07 +00:00
jenkins-bot
464e64721e Merge "Add 1.31.11, 1.31.12, 1.35.1 to HISTORY" 2020-12-20 01:27:48 +00:00
jenkins-bot
d37e8a9e4e Merge "LogPager: if log_id is set, don't use public exclude clause" 2020-12-19 16:40:55 +00:00
jenkins-bot
1b24634a17 Merge "ApiBase: update outdated comment about canApiHighLimits" 2020-12-19 11:24:18 +00:00
Umherirrender
86ea6965d3 Add missing @param/@return to MockHttpTrait
Change-Id: I38cb2e0e7f7a0f6a0199670f7aa56a1522d6628c
2020-12-19 07:21:51 +00:00
jenkins-bot
7725586a69 Merge "Remove unneeded return type hint from function in ApiParamValidator" 2020-12-19 07:14:32 +00:00
jenkins-bot
2fa4152473 Merge "Deprecate a bunch of global functions" 2020-12-18 23:36:21 +00:00
jenkins-bot
9f272a13ba Merge "Fix extraneous indents in ResourceLoaderTestCase" 2020-12-18 22:22:25 +00:00
jenkins-bot
3800b427d7 Merge "ClassicInterwikiLookup: Fix typo in comment" 2020-12-18 22:07:09 +00:00
jenkins-bot
309e04a0cc Merge "Use transparent svg checker image on filepages and lose the background colour" 2020-12-18 21:59:55 +00:00
DannyS712
1567f9bafe Fix extraneous indents in ResourceLoaderTestCase
Change-Id: I5a22337fb1a8098bee526453530c85a8bb18e364
2020-12-18 21:49:07 +00:00
C. Scott Ananian
3cfe800871 ClassicInterwikiLookup: Fix typo in comment
Change-Id: I24bf99554f6005bc37d2c5aa4dc0fd18c1585388
2020-12-18 21:36:27 +00:00
DannyS712
f4e21014ce Deprecate a bunch of global functions
* wfAcceptToPrefs
* wfClearOutputBuffers
* wfConfiguredReadOnlyReason
* wfDebugMem
* wfGetPrecompiledData
* wfNegotiateType

Bug: T264976
Bug: T264979
Bug: T264981
Bug: T264983
Bug: T264984
Bug: T264985
Change-Id: Ia05bc84e4d1be7c8a02472f32e2c009e4bb32032
2020-12-18 21:34:50 +00:00
Umherirrender
0b10c1b039 Add missing @return to FileBackendGroupTestTrait
Change-Id: Ifb9eef6594a9520cd687adc287fcab389c3c977c
2020-12-18 22:08:38 +01:00
Umherirrender
e8a638b96a Remove unneeded return type hint from function in ApiParamValidator
Always throws an exception

Change-Id: I2c95109a956e23425767b98bc35ae61b9df82e04
2020-12-18 21:48:04 +01:00
jenkins-bot
a166abb115 Merge "Remove MediaWikiIntegrationTestCase::assertType" 2020-12-18 20:26:28 +00:00
jenkins-bot
d95463a1aa Merge "pipeline: Fix malformed pipeline config" 2020-12-18 19:55:38 +00:00
jenkins-bot
87798f1751 Merge "UploadStash - fallback to RequestContext" 2020-12-18 19:26:32 +00:00
Daimona Eaytoy
6f7132cbcf Remove MediaWikiIntegrationTestCase::assertType
Deprecated since 1.35, not compatible with PHPUnit 8. This could've
happened earlier, but here we go.

Unused in known repos (except for the sniff looking for this usage):
https://codesearch.wmcloud.org/search/?q=assertType%5C(&i=nope&files=php&repos=

Bug: T192167
Change-Id: I479cf71d0941c35096d21686077b4d1cbc4f898d
2020-12-18 19:23:14 +00:00
Dan Duvall
ce5fdcb1b6 pipeline: Fix malformed pipeline config
Change-Id: I9a8fd80627831b06f7db6aca0e057fb8349d7677
2020-12-18 10:25:53 -08:00
Isarra
87084efd8d Use transparent svg checker image on filepages and lose the
background colour

By making the checker transparent and not setting a background
colour, we can avoid clashing with dark skins, lightboxes, night
mode, etc by effectively just inheriting whatever the rest of the
page is doing.

SVG checker is slightly larger in terms of filesize, but better
supports HiDPI devices.

Change-Id: I9afdd95a2ce4a56ee58024b2eb2dc2a19c1695ca
2020-12-18 17:54:05 +00:00
Arlo Breault
b12f5d8e20 Sync up with Parsoid parserTests.txt
This now aligns with Parsoid commit 67180924cc1d78eed9b300b6f867498da51c35bc

Change-Id: Icb1c8c3cc4e19db9fa5c93b62a6afadb9f6676dc
2020-12-18 12:30:25 -05:00
jenkins-bot
daa59c789f Merge "Consistent label escaping in makeBrokenImageLinkObj" 2020-12-18 17:20:48 +00:00
Arlo Breault
c2cef6cb58 Consistent label escaping in makeBrokenImageLinkObj
Html::element is more lenient about which characters it escapes.

But really this is just factored out of the next patch for ease of
review.

Change-Id: I9abb4d866a624df7bf4628ab9cc581967e715160
2020-12-18 11:41:09 -05:00
Translation updater bot
65e6b735d4 Localisation updates from https://translatewiki.net.
Change-Id: I7ca7fedb3b5d6022e762c4d2d64acf6497b613da
2020-12-18 08:23:23 +01:00
jenkins-bot
4a74d87995 Merge "Remove hard deprecated GenderCache::singleton" 2020-12-18 04:11:47 +00:00
Reedy
06c01dade8 Add 1.31.11, 1.31.12, 1.35.1 to HISTORY
Bug: T263807
Change-Id: Ib7898206d978f2191a654ba5d342cef0a538314f
2020-12-18 03:24:54 +00:00
jenkins-bot
50425c7ceb Merge "SECURITY: Act like users don't exist if hidden from viewer" 2020-12-18 02:39:32 +00:00
jenkins-bot
b68d4de2c7 Merge "SECURITY: Act like users don't exist if hidden from viewer" 2020-12-18 02:35:40 +00:00
DannyS712
324a46f9a7 Remove hard deprecated GenderCache::singleton
Bug: T249019
Change-Id: Id0d368dc8fda78465806215a46b06022bc658b85
2020-12-18 02:21:33 +00:00
DannyS712
7cce318589 UploadStash - fallback to RequestContext
Bug: T246735
Change-Id: Ib4c30e15f97428ff8edb7df16589b9dfa5c972a2
2020-12-18 02:19:35 +00:00
jenkins-bot
468d293aa8 Merge "SECURITY: Set a dummy title for Action buttons on Special:Log" 2020-12-18 02:08:47 +00:00
DannyS712
b5e7f210cd SECURITY: Act like users don't exist if hidden from viewer
When viewing Special:Contributions for a hidden user and
a missing user, or the user page of a hidden user and a
missing user, if the viewer cannot see hidden users
the output should be the same for hidden users and
missing users.

To that end
* In OutputPage.php, only set the `wgRelevantUserName` javascript
  variable if the user is not hidden, or the viewer can see hidden
  users
* In Article.php, show the `userpage-userdoesnotexist-view` on user
  pages of hidden users if the viewer cannot see hidden users
* In Skin.php, do not add user-specific sidebar links (contributions,
  logs, mute, etc.) if the user is hidden and the viewer cannot see
  hidden users
* In SpecialContributions.php, stop calling Skin::setRelevantUser
  for non-existing users, so that callers of Skin::getRelevantUser
  can ignore users that are hidden from the viewer without creating
  divergent behavior
* In SpecialContributions.php, for users that do exist but are
  hidden from the viewer, don't show `sp-contributions-footer`,
  but do show `contributions-userdoesnotexist`

Bug: T120883
Change-Id: I83b723402f315447bc4b50992e28620e3daace8f
2020-12-18 00:35:54 +00:00
DannyS712
c711960e3f SECURITY: Act like users don't exist if hidden from viewer
When viewing Special:Contributions for a hidden user and
a missing user, or the user page of a hidden user and a
missing user, if the viewer cannot see hidden users
the output should be the same for hidden users and
missing users.

To that end
* In EditPage.php, for users that exist but are hidden from the
  viewer, do show `userpage-userdoesnotexist` and do not show
  an excerpt from the block log.

Bug: T120883
Change-Id: Ife272a0eb1f3322bc8eb30ca803bd21801acba3e
2020-12-18 00:35:19 +00:00
jenkins-bot
9b1b1920c2 Merge "RELEASE-NOTES-1.36: Refresh list of updated libraries and alpha-sort" 2020-12-18 00:21:05 +00:00