Commit graph

422 commits

Author SHA1 Message Date
James D. Forrester
6c2a5c54c0 Upgrade xmp-reader from 0.9.1 to 0.9.2
Depends-On: I3d259aed48aa443c675d44a747de13f3229bb4ec
Change-Id: I0da75004fd5a07f2115b17d17d273917339e4e0f
2024-10-15 10:01:26 -04:00
James D. Forrester
c6aa4b4bd0 Upgrade php-session-serializer from 2.0.1 to 3.0.0
The breaking change is dropped PHP 7.4 support.

Depends-On: Ice6ed4d3fa376a37faae75d11cb81c9221f7f29f
Change-Id: Ib74d84f753bf5230a0e1ab8c7f7f0c664f6ba4ce
2024-10-15 10:00:36 -04:00
Reedy
fc2852f44f Remove MediaWikiVersionFetcher
Change-Id: I3a44557ed5e4ab06dde0eb8aaaba2be785faff27
2024-10-14 12:00:08 +00:00
jenkins-bot
4289b8a576 Merge "Deprecate .horizontal-gradient and .vertical-gradient Less mixins" 2024-10-12 11:10:33 +00:00
Fomafix
3f1e249b00 SpecialBlock: Hard-deprecate deprecated functions
processForm, parseExpiryInput and canBlockEmail are deprecated since
1.36.
getSuggestedDurations is deprecated since 1.42.

Depends-On: I5931525f95ff6eb76a2b30aa7a852cc86075276f
Depends-On: I6a570e503fee6676e7c54beb6f37575058a57339
Depends-On: I6890763dbe30cc33b2715e93c59cee331d8967b1
Depends-On: I99f49dd3f20032848cc7a191a6b46c5816f3bff2
Change-Id: Ibbf51d9de168d97c0ed3c827f02a356c8a579987
2024-10-10 15:52:57 +00:00
jenkins-bot
dbe8c4b9aa Merge "WebRequest: Deprecate parameter $default in getRawVal" 2024-10-10 15:05:35 +00:00
jenkins-bot
121559810b Merge "ParserOutput::setPageProperty(): emit deprecation warnings for non-strings" 2024-10-08 21:17:48 +00:00
jenkins-bot
92301453de Merge "Deprecate embedBidi the same way as getDirMark" 2024-10-06 20:02:39 +00:00
Ebrahim Byagowi
f0838fbddc Deprecate embedBidi the same way as getDirMark
With more or less same reasoning as
Ie9b78102d58e81fbc6cb22fb85da4962ee2c70b5

Bug: T375975
Change-Id: Ifd76b98aab30d8d441f0aea6784080fa060b0b83
2024-10-06 22:05:00 +03:30
Ebrahim Byagowi
f0e228645d Use <bdi> in Language::specialList
And it removes its third parameter as it's unused.

Bug: T375975
Change-Id: I261b7409817f84967ac66993e5aeaa8ff6323f8e
2024-10-05 21:10:56 +03:30
C. Scott Ananian
e205a24456 ParserOutput::setPageProperty(): emit deprecation warnings for non-strings
This was deprecated in 1.42 but did not previously emit deprecation
warnings.

Depends-On: I072b111b047cfe13e32a822678d68165d1c76f84
Depends-On: I2734383207b92f71bffc66ba2392a592a1df0954
Depends-On: I79bb5030c13e83f664da1635254f4bc171ed4f3e
Depends-On: If64a5239a40953f244657e60f95b2e938abfe447
Change-Id: Ifefd3dab43247d988b7c7ff7874c05c90fc8ce1f
2024-10-04 09:56:51 -04:00
jenkins-bot
b829ad1e42 Merge "Mark getDirMark as deprecated" 2024-10-04 11:40:48 +00:00
Ebrahim Byagowi
bc7ec83596 Remove CommentFormatter::formatStringsAsBlock
This doesn't seem to be used anywhere except the tests and the
better API is to use $formatter->createBatch() API that
doesn't expose 'ugly boolean parameters' as described by
formatInternal method above so let's remove it.

https://codesearch.wmcloud.org/search/?q=formatStringsAsBlock

Change-Id: Ia7428f5dbdf6c76b7537ae3889aef077bb26c722
2024-10-04 10:23:17 +03:30
Ebrahim Byagowi
1e5348679f Mark getDirMark as deprecated
So far I've only seen very limited correct use of getDirMark
outside HTML which one was for the {{DIRMARK}} magic word,
majority of other uses were replaceable with actual HTML markup
so let's use soft deprecation to signal third party developers
they also can go through the same way and use HTML markup
instead of hidden control characters. In future if the magicword
was the only valid use of this we can just hard code this there
and hard deprecate and eventually remove this and if it had more
uses that made sense to keep this around we can undeprecate it.

Bug: T375975
Change-Id: Ie9b78102d58e81fbc6cb22fb85da4962ee2c70b5
2024-10-04 01:25:35 +03:30
jenkins-bot
92fe6457bb Merge "Add namespace to remaining parts of Wikimedia\FileBackend" 2024-10-03 17:40:12 +00:00
jenkins-bot
e73662ede1 Merge "Mark now unused getDirMarkEntity as deprecated" 2024-10-03 17:19:38 +00:00
Ebrahim Byagowi
c941c59b0e Mark now unused getDirMarkEntity as deprecated
In HTML context the recommendation is to use <bdi> HTML tag
instead of adding a hidden character that eventually will
end up be in clipboard as described in T27277 also and this
is now unused so let's just mark this as deprecated.

There are some getDirMark() uses however that are in HTML
which should be replaced with appropiate HTML tag which
is unrelated to this deprecation anyway.

Bug: T375975
Change-Id: I5cc15ff00ade5795428c7897df23e4dbac6147a5
2024-10-03 20:11:42 +03:30
James D. Forrester
9203493606 Add namespace to remaining parts of Wikimedia\FileBackend
Bug: T353458
Change-Id: I49c843c9d8f6459c0fbf774afeea7a82fa564b59
2024-10-03 16:21:22 +00:00
Fomafix
9208216d6b WebRequest: Deprecate parameter $default in getRawVal
Use
	$request->getRawVal( 'key' ) ?? 'default'
instead of
	$request->getRawVal( 'key', 'default' )

The ?? is more flexible, avoids a wrong type detection by phan and
avoids the evaluation of the default value if not needed.

Bug: T376245
Depends-On: I3ed6b85c0d117ed7cb3a8b79f73a3eb42977891e
Change-Id: I8b02f9297b76d04e21f8cb9194f3b85631956eca
2024-10-03 15:49:33 +00:00
jenkins-bot
5d6553293e Merge "RELEASE-NOTES-1.43: Add note about mw.Uri being deprecated" 2024-10-03 14:54:51 +00:00
jenkins-bot
4627fe60af Merge "Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats" 2024-10-03 14:16:24 +00:00
jenkins-bot
db7ee3db99 Merge "Add namespace to remaining parts of Wikimedia\ObjectCache" 2024-10-03 14:02:47 +00:00
jenkins-bot
831a027afd Merge "Add namespace to Wikimedia\Redis libs" 2024-10-03 13:59:08 +00:00
James D. Forrester
bd5fb63494 RELEASE-NOTES-1.43: Add note about mw.Uri being deprecated
Bug: T374314
Change-Id: I61a9df578c0d12498769f4ef59da87b829dfe754
2024-10-03 09:43:01 -04:00
C. Scott Ananian
22cdf9cdf6 Deprecate ParserOutput::setLanguageLinks(null)
Bug: T376323
Follows-Up: I82a05a51d94782ebb9fa87ff889ca0f633b3e15c
Change-Id: I0952659ab245326e9e8352170fb0a629ec109e72
2024-10-02 16:10:39 -04:00
Amir E. Aharoni
5c1765fc21 Add Southern Ndebele language (nr)
This is done experimentally, with only a Names.php entry and
namespace translations, before we have actual localized strings.
For details, see https://www.mediawiki.org/wiki/Future_of_Language_Incubation.

I've tested it on my local MediaWiki instance, and it works
as expected: no user interface translations, but the namespaces
appear corretly in page titles, Special:AllPages, etc.,
when `$wgLanguageCode = 'nr'` is set in LocalSettings.php,
and the language name appears correctly in the dropdown in the
"Internationalisation" section in the Preferences.

Bug: T375377
Change-Id: I44cf6a6dabf2ade873506a78573db4f7783a9c99
2024-10-02 17:57:34 +00:00
jenkins-bot
659914b47b Merge "Add Duala language (dua)" 2024-10-02 16:33:19 +00:00
jenkins-bot
a80da8eacf Merge "resourceloader: Add/change ResourceLoaderModifyEmbeddedSourceUrls hook" 2024-10-02 16:12:30 +00:00
Amir E. Aharoni
0e08e6a999 Update autonym for Komering (kge)
Bug: T375947
Change-Id: I6c343a277630fbf2da3214ab7191172dda465c15
2024-10-02 12:55:58 +00:00
Amir E. Aharoni
6e9637a7ec Add Duala language (dua)
Bug: T376248
Change-Id: I70a4b323cbf1b6e34b9a079799daa8e33240cb30
2024-10-02 07:35:54 -04:00
Anne Tomasevich
0823ce884e Update Codex from v1.13.0 to v1.13.1
Bug: T322014
Bug: T362346
Bug: T373225
Bug: T375698
Bug: T376045
Change-Id: I48c5a0e781fb10893adf63921124df23587b83ad
2024-10-01 18:34:35 +00:00
Amir E. Aharoni
d4921ec7aa Add Luba-Lulua (lua) to Names.php
Bug: T375999
Change-Id: I7eb614c7fd968f245e60b644a4c87028d2fe3fcb
2024-09-30 10:10:04 -04:00
jenkins-bot
315de0e434 Merge "Deduplicate language links in ParserOutput and OutputPage" 2024-09-27 22:43:43 +00:00
James D. Forrester
cc28acc455 Add namespace to remaining parts of Wikimedia\Mime and Wikimedia\Stats
Bug: T353458
Change-Id: If0137003ab625017d322d57870448a02569668c3
2024-09-27 16:19:10 -04:00
James D. Forrester
53b67ae0a6 Add namespace to remaining parts of Wikimedia\ObjectCache
Bug: T353458
Change-Id: I3b736346550953e3b2977c14dc3eb10edc07cf97
2024-09-27 16:19:10 -04:00
James D. Forrester
2144fef6d1 Add namespace to Wikimedia\Redis libs
Bug: T353458
Change-Id: I7a874e1ee1d41a75e34b8a6b6f4d065b5b812c43
2024-09-27 16:19:10 -04:00
James D. Forrester
9e5c1e8ac7 Add namespace to IDBAccessObject and DBAccessObjectUtils
Bug: T353458
Change-Id: I23cf7991f8792d4d000d1780463d8ce76dc0aee0
2024-09-27 16:19:10 -04:00
Bartosz Dziewoński
531ba3aad0 resourceloader: Add/change ResourceLoaderModifyEmbeddedSourceUrls hook
We've discovered some new requirements.

Follow-up to 31f614f732.
The hook was not in a release yet, so we can rename it.

Bug: T371530
Change-Id: I82d8ae69c27a38c45eab5d19c063f0b9515b8ec8
2024-09-27 20:28:30 +02:00
C. Scott Ananian
7495f9bc15 Deduplicate language links in ParserOutput and OutputPage
Move deduplication of language links out of Parser.php and into the
ParserOutput in order to be compatible with alternate Parsers (Parsoid).
Clean up various inconsistencies: ensure deduplication also happens in
OutputPage when multiple ParserOutputs are merged into the final output,
and ensure that the deduplication in LinksUpdate is done in the same
order (first link prevails) as in Parser/ParserOutput/OutputPage.

Deprecate OutputPage::setLanguageLinks() (the matching
ParserOutput::setLanguageLinks() was deprecated in 1.42).

As a breaking change, return an array, not an array *reference*, from
ParserOutput::getLanguageLinks().  This allows us to safely modify the
internal representation of language links. As far as I can tell, no one
used the returned reference to sneakily modify the list of language
links, and there not a good way to have deprecated this before making
the breaking change.

While we're at it, we've added tests to ensure that language link
fragments are preserved.

Bug: T26502
Bug: T358950
Bug: T375005
Change-Id: I82a05a51d94782ebb9fa87ff889ca0f633b3e15c
2024-09-26 15:28:49 -04:00
Bartosz Dziewoński
943d089008 Replace raw HTML copyright footer message with wikitext one
Replaces 'copyright' with 'copyright-footer' and 'history_copyright'
with 'copyright-footer-history' (the original still takes precedence
if set). Adds SkinCopyrightFooterMessage hook which works the same
way as SkinCopyrightFooter for the new messages. Allows disabling
the old messages by setting $wgAllowRawHtmlCopyrightMessages = false.

Co-Authored-By: Gergő Tisza <tgr.huwiki@gmail.com>
Bug: T45646
Change-Id: I5fd5607f8d43b6e934c8d4d35097cec430c56043
2024-09-26 16:18:52 +02:00
James D. Forrester
984076f98e Add namespace to includes/api classes
Bug: T353458
Change-Id: I3ea6b08c5018ba03ba45c5766e1f46e12f6b8597
2024-09-25 19:31:14 +00:00
jenkins-bot
c61aca4101 Merge "rdbms: remove unused $domain parameter from ILoadBalancer::getReadOnlyReason()" 2024-09-24 21:22:17 +00:00
Dreamy Jazz
6547b639d8 Add SpreadAnyEditBlock hook
Why:
* A hook is needed which is called when User::spreadAnyEditBlock
  is called, so that extensions which provide alternative blocking
  mechanisims (such as the GlobalBlocking extension) can spread
  their blocks when local blocks are spread.

What:
* Add SpreadAnyEditBlockHook which is called from User
  ::spreadAnyEditBlock when it is called except when the user is
  not registered.
** The hook is called even if the user is not locally blocked
* The return value of User::spreadAnyEditBlock is modified to
  return true if either a local block or alternative blocking
  mechanism spread blocks.
* Update UserTest to test this new behaviour.

Bug: T374857
Change-Id: Id302a6362d6177c89da9cdf4e677b3822ecb85f1
2024-09-24 12:04:20 +01:00
Amir E. Aharoni
fe485a0135 Add Interslavic (Cyrillic; isv-cyrl)
Also add gender aliases to Interslavic (Latin)
and custom plural rules for isv-cyrl.

Bug: T375360
Change-Id: I1ea5e36b09a4eecbc0edf085deb50a392f7fcca5
2024-09-23 10:15:53 -04:00
Amir E. Aharoni
91074b8726 Add Tigre (tig) to Names.php
Bug: T375052
Change-Id: Ie7b2db805386e6eb3d3603f6d0686f27450bbf76
2024-09-20 17:24:01 +00:00
Aaron Schulz
96eceecadb rdbms: remove unused $domain parameter from ILoadBalancer::getReadOnlyReason()
Change-Id: I9c6e1ece66289c2e5f143ceee1f609726bb74194
2024-09-19 16:33:21 -07:00
lwatson
e307e58979 Update OOUI to v0.51.1
Release notes: https://gerrit.wikimedia.org/g/oojs/ui/+/v0.51.1/History.md

Bug: T374858
Bug: T371201
Bug: T371466
Bug: T373226
Depends-On: I3663e72f4f1dbb6dd0b461b5a2464420937d3ed6
Change-Id: Ic8f80b0db5a08f00d9178163b1fbbb79515c1603
2024-09-19 14:10:51 -04:00
jenkins-bot
23686f4a37 Merge "Allow extensions to send password resets without a local user/email" 2024-09-19 10:58:00 +00:00
Jon Robson
a09791e942 Support legacy message boxes in user generated content
* Deprecate SkinModule feature 'interface-message-box"
* Include styles using dedicated module where needed for content.

Bug: T375127
Depends-On: I58d9e41f0c98adbd816240b161b5145a667436cd
Change-Id: I59ab5f222dc9d01de04077d3e2cef5b42a8ffe08
2024-09-18 21:02:59 +00:00
lwatson
c13fff37e2 Update Codex from v1.12.0 to v1.13.0
Bug: T251790
Bug: T360494
Bug: T363515
Bug: T365779
Bug: T370493
Bug: T371998
Bug: T372433
Bug: T372928
Bug: T373437
Bug: T374246
Bug: T374378

Change-Id: I1106330843660978bd917fe5ab7ce2e23226d3ee
2024-09-17 23:05:31 +00:00