forked from wikimedia/mediawiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RELEASE-NOTES-1.43
1194 lines (1129 loc) · 52.6 KB
/
RELEASE-NOTES-1.43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
= MediaWiki 1.43 =
== MediaWiki 1.43.0-PRERELEASE ==
THIS IS NOT A RELEASE YET
MediaWiki 1.43 is an alpha-quality development branch, and is not recommended
for use in production.
== Upgrading notes for 1.43 ==
Don't forget to always back up your database before upgrading!
See the file UPGRADE for more detailed per-version upgrade instructions from the
oldest supported upgrading version, MediaWiki 1.35.
Some specific notes for MediaWiki 1.43 upgrades are below:
* It is now necessary that the OpenSSL PHP extension is installed.
* update.php updates the Linter database table with two migration scripts that
can take a long time to run: with the provided settings, each migration
script update roughly 500 rows per second. If at all possible, it is
highly recommended to let update.php run these migration scripts.
If this is deemed too long a maintenance operation (depending on the number
of rows in the Linter database table), it is possible, for a upgrade from
1.40 onwards, to run the migration scripts before updating the MediaWiki
and extensions files to 1.43. Set $wgLinterWriteNamespaceColumnStage and
$wgLinterWriteTagAndTemplateColumnsStage to true, and run the
extensions/Linter/maintenance/migrateNamespace.php and
extensions/Linter/maintenance/migrateTagTemplate.php migration scripts
before proceeding with any other code update.
When upgrading from a version <= 1.39, a multi-step update is necessary to
be able to run the migration scripts independently from update.php: first
update to 1.42, then proceed as indicated.
* …
For notes on 1.42.x and older releases, see HISTORY.
=== Configuration changes for system administrators in 1.43 ===
* $wgBlockTargetMigrationStage, which was introduced in 1.42, is now deprecated
and has no effect.
* …
==== New configuration ====
* (T13555) $wgParserEnableLegacyHeadingDOM - Defaults to `true`, can be set to
`false` to enable new, more accessible HTML markup for wikitext headings.
Note that each skin must also use the 'supportsMwHeading' option to allow it.
More information: https://www.mediawiki.org/wiki/Heading_HTML_changes
In a future release the new markup will become the default,
and later this option will be removed.
* (T12347) $wgEnableProtectionIndicators - Defaults to false, setting it to true
shows a lock icon indicator on protected pages.
* (T373480) $wgSortedCategories - Defaults to false, setting it to true will
sort the categories shown on article pages. This is an experimental setting;
its future will depend on community adoption and feedback on the phab task
is welcome.
* (T45646) $wgAllowRawHtmlCopyrightMessages - Defaults to true, can be set to
false to disable the use of the localisation messages 'copyright' and
'history_copyright' and the hook 'SkinCopyrightFooter', which have been
deprecated in this release. This helps protect your wiki against attacks by
a rogue administrator account and will become the default in the future.
* (T4085) $wgParserEnableUserLanguage - Defaults to false, can be set to
true to let {{USERLANGUAGE}} magic word return the user's language,
instead of the page language. Beware that accessing the user language may
reduce the efficiency of the parser cache.
* …
==== Changed configuration ====
* wgPageLinksSchemaMigrationStage – (T299947) This temporary setting, which
controls the database schema migration for the page links table, is now set
by default to write to both old and new data and read from the new data.
* wgFooterIcons – (T256190) The default "Powered by MediaWiki" button icon has
been updated to an SVG icon, and the footer icons are now wrapped as buttons
in HTML, rather than faking it within the icons themselves. You should adjust
any footer icons you provide or over-ride to match.
* The "error-json" channel, configurable via $wgDebugLogGroups, has been
removed. For structured logging, use the "error" channel directly instead.
Since MediaWiki 1.25, structured logging is supported via Monolog for all
channels, including the "error" channel. For silenced errors, you use the
"silenced-error" channel added in MediaWiki 1.42. (T193472)
* wgResourceLoaderUseObjectCacheForDeps - (T343492) This is now enabled by
default. This means ResourceLoader writes information to the MainStash
instead of a core database table, which can be set to a separate database
via wgMainStash. If you find issues, please drop a comment on T343492.
It is now deprecated and will be removed in MediaWiki 1.44.
* …
==== Removed configuration ====
* wgSessionInsecureSecrets has been removed since OpenSSL is now a required
PHP extension.
* $wgTemplateLinksSchemaMigrationStage has been removed.
* $wgSamplingStatsdClient has been removed. It was introduced in MW 1.28 for
use in the Wikibase extension, but never used. The new StatsFactory service
should be used for new instrumentations, which already supports sampling.
Beware that sampling is generally not needed even at scale, and that sampling
does not significantly reduce runtime overhead, thus making it slow to
instrument very hot code even with built-in sampling.
* (T294397) The 'writeapi' userright, which controlled access to some API
modules, has been removed.
* (T331883) The variables $wgLinterWriteTagAndTemplateColumnsStage,
$wgLinterUserInterfaceTagAndTemplateStage, $wgLinterWriteNamespaceColumnStage,
and $wgLinterUseNamespaceColumnStage have been removed. The namespace,
tag and template column of the Linter database table are now written and used.
The existing data from the Linter database is migrated to the new columns
by extensions/Linter/maintenance/migrateNamespace.php and
extensions/Linter/maintenance/migrateTagTemplate.php, which are both called
by the update script (T367207).
* …
=== New user-facing features in 1.43 ===
* (T338341) Support reading XMP and EXIF from WebP files
* (T365636) Wiki's with wgAllowExternalImages enabled now detect urls
with AVIF, SVG and WebP images.
* (T242346) Special:TalkPage is a new special page that will redirect to the
associated talk namespace page, e.g. [[Special:TalkPage/Foo]] redirects to
[[Talk:Foo]]; [[Special:TalkPage/Project:Foo]] goes to [[Project talk:Foo]].
This allows for links by templates and tools without having to parse what
namespaces are valid and have associated talk pages.
* New preference: "Send password reset emails only when both email address
and username are provided."
* (T4085) Added new magic word {{USERLANGUAGE}} which returns the language code
of the interface set by the user.
* (T263513) Special:NamespaceInfo is a new special page that displays a list
of namespaces available on the wiki, their descriptions and configuration.
* …
=== New features for sysadmins in 1.43 ===
* …
=== New developer features in 1.43 ===
* StatusValue class gained new method getMessages(): MessageSpecifier[],
allowing the errors to be inspected and displayed more easily, for example:
foreach ( $status->getMessages() as $msg ) {
if ( $msg->getKey() !== 'ignored-message' ) {
$this->getOutput()->addWikiMsg( $msg );
}
}
* (T358779) The MessageValue class can now be used instead of Message in most
places (in methods that accept the MessageSpecifier interface). This allows
using localisation messages in code that doesn't know the user's language,
such as many hooks, without relying on global state. To convert between them,
use MessageValue::newFromSpecifier() and Message::newFromSpecifier().
* The REST API framework now supports defining redirects in route definition
files. See MediaWiki\Rest\Handler\RedirectHandler for details.
* (T13555) Skins can enable the 'supportsMwHeading' option for new, more
accessible HTML markup for wikitext headings. MediaWiki's own styles and
scripts have been updated to support it, but your skin may also need updates.
More information: https://www.mediawiki.org/wiki/Heading_HTML_changes
A future release will emit deprecation warnings for skins with
'supportsMwHeading' set to false.
* The AuthPreserveQueryParams hook was added.
* (T219397) New `Language::formatDurationBetweenTimestamps()` function added
which takes two timestamps and a precision in order to calculate a more
accurate text representation of duration.
* Added an interactive mode to the install.php maintenance script.
* The ResourceLoaderModifyEmbeddedSourceUrls hook was added.
* The AuthManagerFilterProviders hook was added.
* The AuthManagerVerifyAuthentication hook was added.
* The OutputPageRenderCategoryLink hook was added, as a replacement for the
deprecated OutputPageMakeCategoryLinks hook.
* PreAuthenticationProvider, PrimaryAuthenticationProvider, and
SecondaryAuthenticationProvider now receive a `canAlwaysAutocreate` flag in
the options of the `testUserForCreation` invocation. This flag is true when
the session provider is exempt from autocreate user permissions checks.
* The CentralIdLookup service gained the isOwned() method, which can be used
to check if a local username is reserved for a central user, even if a local
user account does not exist yet. This can be used by extensions to look
up information about the central user.
* (T251790) A Jest-based test suite has been introduced for testing front-end
code such as Vue components. Tests can be run via `npm run jest`, and test
files live in `tests/jest/`. See https://www.mediawiki.org/wiki/Jest
for more information.
* The SpreadAnyEditBlock hook was added.
* The ConditionalDefaultOptionsAddCondition hook was added.
* …
=== External library changes in 1.43 ===
* The OOjs Router library has been merged into core and will be archived
upstream.
==== New external libraries ====
* …
===== New development-only external libraries =====
* (T251790) Some development-only external libraries have been added for the new
testing tools for front-end Vue components:
* Added jest and jest-environment-jsdom at v29.7.0.
* Added @vue/test-utils v2.4.6.
* Added @vue/vue3-jest v29.2.6.
* Added @babel/preset-env v7.25.4.
* Added pinia v2.0.16 (already available via ResourceLoader).
* Added @pinia/testing v0.0.12.
* Codex, already available via ResourceLoader, now has the npm versions, i.e.
@wikimedia/codex and @wikimedia/codex-icons, also installed for testing.
* …
==== Changed external libraries ====
* Updated codex, codex-design-tokens and codex-icons
from v1.3.6 to v1.14.0.
* Updated composer/semver from 3.4.0 to 3.4.3.
* Updated guzzlehttp/guzzle from 7.7.1 to 7.9.2.
* Updated jquery.i18n from 1.0.7 to 1.0.10.
* Updated justinrainbow/json-schema from 5.2.13 to 5.3.0.
* Updated pear/mail from 1.6.0 to 2.0.0.
* Updated pear/net_smtp from 1.11.1 to 1.12.1.
* Updated mck89/peast from v1.16.2 to 1.16.3.
* Updated monolog/monolog from 2.9.2 to 2.9.3.
* Updated symfony/yaml from 5.4.35 to 5.4.45.
* Updated OOUI from v0.49.1 to v0.51.2.
* Updated wikimedia/at-ease from 2.1.0 to 3.0.0.
* Updated wikimedia/json-codec from 3.0.1 to 3.0.3.
* Updated wikimedia/less.php from 4.2.1 to 5.1.2.
* Updated wikimedia/minify from 2.7.0 to 2.8.0.
* Updated wikimedia/normalized-exception from 1.0.1 to 2.0.0.
* Updated wikimedia/php-session-serializer from 2.0.1 to 3.0.0.
* Updated wikimedia/purtle from 1.0.8 to 2.0.0.
* Updated wikimedia/relpath from 4.0.0 to 4.0.1.
* Updated wikimedia/remex-html from 4.1.0 to 4.1.1.
* Updated wikimedia/request-timeout from 1.2.0 to 2.0.0.
* Updated wikimedia/scoped-callback from 4.0.0 to 5.0.0.
* Updated wikimedia/services from 3.0.0 to 4.0.0.
* Updated wikimedia/shellbox from 4.0.2 to 4.1.1.
* Updated wikimedia/xmp-reader from 0.9.1 to 0.9.4.
* Updated vue from 3.3.9 to 3.4.27.
* Updated symfony/polyfill-php80 from 1.29.0 to 1.31.0.
* Updated symfony/polyfill-php81 from 1.29.0 to 1.31.0.
* Updated symfony/polyfill-php82 from 1.29.0 to 1.31.0.
* Updated symfony/polyfill-php83 from 1.29.0 to 1.31.0.
* …
===== Changed development-only external libraries =====
* Updated doctrine/dbal from 3.7.2 to 3.8.4.
* Updated eslint-config-wikimedia from 0.26.0 to 0.27.0.
* Updated mediawiki/mediawiki-codesniffer from 43.0.0 to 45.0.0.
* Updated phpunit/phpunit from 9.6.16 to 9.6.19.
* Updated seld/jsonlint from 1.10.1 to 1.10.2.
* …
==== Removed external libraries ====
* …
=== Bug fixes in 1.43 ===
* When using the 'runMaintenance' method in a LoadExtensionSchemaUpdates hook
handler, only the script's class name is required, not its path. (T367918)
* QueryPage::recache() (used by the updateSpecialPages.php maintenance script)
no longer attempts to ignore database errors. (T278543)
* …
=== Action API changes in 1.43 ===
* APIQueryUserInfo now returns null in the field registrationdate for users
created before December 2005 (their registration date was not recorded).
* …
=== Action API internal changes in 1.43 ===
* …
=== Languages updated in 1.43 ===
MediaWiki supports over 350 languages. Many localisations are updated regularly.
Below only new and removed languages are listed, as well as changes to languages
because of Phabricator reports.
* (T375891) Updated the autonym for Kadazan Dusun (dtp)
* (T357853) Added unidirectional script conversion for Meitei to Bengali script.
* (T367377) Updated the autonym for Tai Nuea (tdd)
* (T375947) Updated the autonym for Komering (kge)
* (T354937, T362041) Added language support for Minnan (Traditional Han script)
(nan-hant).
* (T290657) Added language support for Levantine Arabic (apc).
* (T364291) Added language support for Musi, also known as Palembang (mui).
* (T364737) Added language support for Haryanvi (bgc).
* (T365365) Added language support for Chakma (ccp).
* (T367991) Added language support for Iban (iba).
* (T367688) Added language support for Interslavic (Latin) (isv-latn).
* (T375360) Added language support for Interslavic (Cyrillic) (isv-cyrl).
* (T370123) Added language support for Nupe (nup).
* (T371051) Added language support for Saint Lucian Creole (acf).
* (T354937, T370987) Added language support for Minnan (Pe̍h-ōe-jī)
(nan-latn-pehoeji).
* (T354937, T369899) Added language support for Minnan (Tâi-lô)
(nan-latn-tailo).
* (T375052) Added language support for Tigre (tig).
* (T375999) Added language support for Luba-Lulua (lua).
* (T376248) Added language support for Duala (dua).
* (T375377) Added language support for Southern Ndebele (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.
* (T356144) Deprecated the Kanuri language (kr) and replaced it
with Central Kanuri (knc). The language code kr is kept for
backwards compatibility and falls back to knc.
* …
=== Breaking changes in 1.43 ===
* (T358779) The format of parameters used by the Message class has changed.
Instead of arrays in a special format, they are now MessageParam objects.
Code that simply called methods like Message::numParam() and didn't look
inside the values they return should be unaffected. Code that depended on
the formatted params being arrays or accessed their keys will need updates.
Example patches: https://gerrit.wikimedia.org/r/q/topic:message-param
* ErrorPageError public properties 'msg' and 'title' may now contain
any MessageSpecifier object, not just Message.
* Reset button functionality suppressReset() and $mShowReset from HTMLForm
was removed without replacement.
* UserGroupMembership::getGroupName(), deprecated in 1.38, and
UserGroupMembership::getGroupMemberName(), deprecated in 1.40, have
been removed.
* SerializedValueContainer::isUnified(), deprecated in 1.42, has been
removed.
* Parser::getFreshParser(), deprecated in 1.39, has been removed.
* ParserOutput::getLanguageLinks() no longer returns a reference to the
internal array.
* ConfigFactory::getDefaultInstance(), deprecated since 1.27, has been
removed.
* wfGetLangObj(), deprecated since 1.41, has been removed in favor of
LanguageFactory::getLanguage().
* wfRemoveDotSegments(), deprecated in 1.39, has been removed.
* IReadableDatabase::getReplicaPos() has been removed without deprecation
as it's not used anywhere.
* CommentFormatter::formatStringsAsBlock() has been removed without deprecation
as it's not used anywhere.
* ILoadBalancer::laggedReplicaUsed() has been moved to ILoadBalancerForOwner::
effectively making it internal.
* Define DB_MASTER, deprecated since 1.36, has been removed.
* ILoadBalancer::DB_MASTER, deprecated since 1.36, has been removed.
* Overriding MWException::getHTML(), ::getText(), ::getPageTitle(), and
::reportHTML() in order to display custom exception messages is no
longer supported.
* In PageHandlerTestTrait, the newRouter() method was renamed to
newRouterForPageHandler() to avoid a conflict with a method of the same
name in RestTestTrait. Also, PageHandlerTestTrait is no longer marked as
"stable to use". It was marked this way by accident, the functionality it
provides is specific to certain handlers implemented in MediaWiki core.
* MediaWikiIntegrationTestCase::addCoreDBData(), deprecated since 1.41, has
been removed.
* wfUnpack(), deprecated since 1.42, has been removed in favor of
StringUtils::unpack().
* UIDGenerator, deprecated since 1.35, has been removed.
* TablePager::getBody(), final and deprecated since 1.24, has been removed.
Use ::getBodyOutput() or ::getFullOutput() instead.
* ImportableUploadRevisionImporter::downloadSource(), deprecated in 1.31, is now
private. Its only known external caller was removed in 1.40.
* The following methods in the User class have been removed:
* Deprecated in 1.33:
* User::isBlockedFrom()
* Deprecated in 1.34:
* User::isBlocked()
* Deprecated in 1.35:
* User::addGroup()
* User::getAllGroups()
* User::getGroups()
* User::getGroupMemberships()
* User::getImplicitGroups()
* User::getOption()
* User::removeGroup()
* Deprecated in 1.37:
* User::isBlockedFromCreateAccount()
* BotPassword::invalidateAllPasswordsForCentralId() and
BotPassword::removeAllPasswordsForCentralId(), deprecated in 1.37,
have been removed.
* Title::getBrokenLinksFrom(), deprecated in 1.42, has been removed.
* The $type parameter to Skin::getCopyright(), deprecated in 1.40, has been
removed.
* The module `mediawiki.icon`, deprecated in 1.42, has been removed.
* The `@vue/composition-api` module, a deprecated alias for `vue` since 1.41,
has been removed. Use `vue` directly.
* SiteConfiguration::extractVar() and ::extractGlobal(), deprecated in 1.41,
have been removed.
* Skin::footerLink(), deprecated in 1.40, has been removed.
* Skin::getAction(), deprecated in 1.39, has been removed.
* Skin::makeSearchInput(), deprecated in 1.35, has been removed.
* Skin::makeSearchButton(), deprecated in 1.39, has been removed.
* SkinTemplate::buildContentNavigationUrls(), deprecated in 1.38,
has been removed.
* Title::getCdnUrls() and Title::purgeSquid(), deprecated in 1.35, have been
removed.
* The `mediawiki.pager.tablePager` module, deprecated in 1.38, has been
removed in favor of the more generic `mediawiki.pager.styles`.
* BagOStuff::setNewPreparedValues(), deprecated in 1.40, has been removed.
* Constructing MWHttpRequest objects now requires timeout and connectTimeout to
be set; this was deprecated in 1.35.
* Hooks that were run from SpecialContributions are now run from the parent,
ContributionsSpecialPage. The page passed in is a ContributionsSpecialPage
type, and documentation and type comparisons may need to be updated. Affected
hooks are: ContributionsBeforeMainOutputHook, ContributionsToolLinksHook,
SpecialContributions__getForm__filtersHook.
* Hooks that were run from ContribsPager are now run from the parent,
ContributionsPager. If a pager is passed in, it is a ContributionsPager type,
and documentation and type comparisons may need to be updated. Affected
hooks are: ContribsPager__reallyDoQueryHook, ContribsPager__getQueryInfoHook,
ContributionsLineEndingHook, SpecialContributions__formatRow__flagsHook.
* Hooks that were run from DeletedContribsPager are now run from the parent,
ContributionsPager. If a pager is passed in, it is a ContributionsPager type,
and documentation and type comparisons may need to be updated. Affected
hooks are: DeletedContribsPager__reallyDoQueryHook and
DeletedContributionsLineEndingHook.
* The public method ContributionsSpecialPage::getUserLinks has been made
protected. Although not marked @internal, the method was public to be called
from SpecialDeletedContributions (call now removed), and was not called from
anywhere else.
* DatabaseBlock::purgeExpired, deprecated since 1.38, has been removed.
* AbstractBlock::getPermissionsError, deprecated since 1.35, has been removed.
* IDatabase::namedLocksEnqueue() has been removed without deprecation.
* IDatabase::getTopologyRole() has been removed without deprecation.
* IDatabase::getTopologyBasedServerId() has been removed without deprecation.
Use IDatabase::getServerName() instead.
* IReadableDatabase::wasReadOnlyError() has been removed without deprecation.
Use IDatabase::isReadOnly() instead.
* IReadableDatabase::wasDeadlock() has been removed without deprecation.
* ILoadBalancer::getWriterIndex() has been removed without deprecation.
Use ServerInfo::WRITER_INDEX constant instead.
* MaintainableDBConnRef, deprecated since 1.39, has been removed.
* ILoadBalancer::reuseConnection(), deprecated since 1.39, has been removed.
* The $domain parameter to ILoadBalancer::getReadOnlyReason(), deprecated in
1.40, has been removed.
* WikiPage::doDeleteArticleBatched, hard deprecated since 1.37, has been
removed.
* SpecialEmailUser::submit, deprecated since 1.41, has been removed.
* SpecialEmailUser::validateTarget, deprecated since 1.41, has been removed.
* SpecialEmailUser::getPermissionsError, deprecated since 1.41 has been
removed.
* SpecialBlock::getTargetAndType, deprecated since 1.36, has been removed.
* ApiQueryBlockInfoTrait::addBlockInfoToQuery(), deprecated since 1.42, has been
removed.
* Linker::makeExternalLink() has been deprecated in favor of
LinkRenderer::makeExternalLink(), which has a improved API to help phan's
SecurityCheckPlugin provide more accurate checks for escaping issues.
* Linker::makeHeadline(), Linker::generateTOC(), Linker::tocIndent(),
Linker::tocUnindent(), Linker::tocLine(), Linker::tocLineEnd(), and
Linker::tocList(), deprecated in 1.42, have been removed.
* Linker::formatComment(), Linker::formatLinksInComment(),
Linker::commentBlock(), and Linker::revComment(), deprecated in 1.38,
have been removed.
* UserCache::singleton(), deprecated in 1.43, now emits deprecation warnings.
Use MediaWikiServices::getInstance()->getUserCache() instead.
* DummyLinker has been removed. The former DummyLinker parameter
to the 'ImageBeforeProduceHTML' hook is now null.
* The following methods of IDatabase have been moved to internal interface
IDatabaseForOwner without deprecation. These methods are internal and
shouldn't be used outside of rdbms library:
- ::pendingWriteCallers()
- ::flushSession()
- ::lastDoneWrites()
- ::setTransactionListener()
- ::serverIsReadOnly()
- ::getPrimaryPos()
- ::pendingWriteQueryDuration()
- ::writesOrCallbacksPending()
- ::writesPending()
- ::primaryPosWait()
* IMaintainableDatabase::listViews(), deprecated since 1.42, has been removed.
* IMaintainableDatabase::truncate(), deprecated since 1.42, has been removed.
* IMaintainableDatabase::textFieldSize() was removed without deprecation.
* ReplicatedBagOStuff, deprecated since 1.42, has been removed.
* The 'replicaOnly' option to SqlBagOStuff has been removed without deprecation.
It existed for internal use by SqlBagOStuff only.
* Support for WinCache as local server cache has been removed, because WinCache
is not available for supported versions of PHP. The WinCacheBagOStuff class
has been removed. Use MediaWikiServices::getLocalServerObjectCache() instead,
or the CACHE_ACCEL type instead, which automatically selects APCu when
available.
The "wincache" cache type (e.g. to ObjectCache::getInstance, and in
"wg*CacheType" configuration) remains supported as an alias for CACHE_ACCEL.
* LockManager::sha1Base16Absolute(), has been removed without deprecation.
* The "options" parameter to User::createNew() and the $data parameter to
UserOptionsManager::loadUserOptions() were removed.
* `.list-style-image()` mixin from mediawiki.mixins.less, deprecated since 1.38,
has been removed.
* `.background-image()` mixin from mediawiki.mixins.less, deprecated since 1.38,
has been removed.
* IDatabase::nextSequenceValue(), deprecated since 1.30, was removed.
* $wgAPIRequestLog was removed without deprecation. Use "api" and "api-request"
wgDebugLogGroups channels or SPI instead.
* The setStats() method in MediaWiki\Rest\Router now expects a StatsFactory
rather than a StatsdDataFactoryInterface. The method has been marked @internal
and should not be called by extensions.
* All `@width-breakpoint-*` Less variables have been removed. Use
`@min-width-breakpoint-*`/`@max-width-breakpoint-*` instead.
* The MessageContent class, deprecated since 1.38, is now removed. This also
means that the Message::content() method is also removed.
* The following ParserOption methods, deprecated since 1.35, were removed:
- ::setAllowExternalImages()
- ::setAllowExternalImagesFrom()
- ::setEnableImageWhitelist()
* Sanitizer::removeHTMLtags(), deprecated since 1.38, has been removed.
* OutputPage::getCSPNonce(), deprecated since 1.35, has been removed.
* UserMailer::rfc822Phrase(), deprecated since 1.38, has been removed.
* QueryPage::getSQL(), deprecated since 1.39, has been removed. The replacement
QueryPage::getQueryInfo() is now abstract.
* update-keys.sql was removed. It is not recommended to install MediaWiki by
manually sourcing SQL files, but if you are doing this, run
`update.php --initial` instead of sourcing update-keys.sql.
* MediaWikiVersionFetcher, deprecated since 1.42 has been removed.
* Support for using Skin::addToBodyAttributes() method, which was deprecated
in 1.35, has been removed. Use OutputPageBodyAttributesHook instead.
* Skins since 1.39 have not supported rendering content outside the body tag.
The bodyOnly=false option has now been removed, meaning this is no longer
supported.
* CentralIdLookup::factoryNonLocal(), deprecated since 1.37, has been removed.
* CryptHKDF and MWCryptHKDF were removed without deprecation, in part because no
past or present use could be found. hash_hkdf() can be used instead of HKDF().
While generate() and generateHex() have no direct replacement, random_bytes()
and MWCryptRand::generateHex() can be used instead.
* …
=== Deprecations in 1.43 ===
* The methods StatusValue::getErrors() and StatusValue::getErrorsByType(),
as well as Status::getErrorsArray() and Status::getWarningsArray(), have
been deprecated in favor of new method StatusValue::getMessages().
* PermissionManager::getPermissionErrors() has been deprecated in favor
of getPermissionStatus().
* PermissionStatus::toLegacyErrorArray() is deprecated with no replacement.
* PermissionsError properties $errors and $permission are deprecated.
To display the error, throw it or use ->report().
* (T166010) All PHP code in MediaWiki is slowly being moved to be in a class
namespace as appropriate, so that we can use PSR-4 auto-loading, which will
speed up general code loading of MediaWiki. The old global namespace class
names are being left behind as deprecated aliases.
In this release of MediaWiki, XYZ classes now have a namespace and XYZ do
not yet (XYZ% done, up from 69% in MediaWiki 1.42.0). The following have newly
been moved:
- MediaWiki\Api:
- ApiAMCreateAccount
- ApiAcquireTempUserName
- ApiAuthManagerHelper
- ApiBase
- ApiBlock
- ApiBlockInfoTrait
- ApiCSPReport
- ApiChangeAuthenticationData
- ApiChangeContentModel
- ApiCheckToken
- ApiClearHasMsg
- ApiClientLogin
- ApiComparePages
- ApiContinuationManager
- ApiCreateTempUserTrait
- ApiDelete
- ApiDisabled
- ApiEditPage
- ApiEmailUser
- ApiErrorFormatter
- ApiErrorFormatter_BackCompat
- ApiExpandTemplates
- ApiFeedContributions
- ApiFeedRecentChanges
- ApiFeedWatchlist
- ApiFileRevert
- ApiFormatBase
- ApiFormatFeedWrapper
- ApiFormatJson
- ApiFormatNone
- ApiFormatPhp
- ApiFormatRaw
- ApiFormatXml
- ApiFormatXmlRsd
- ApiHelp
- ApiHelpParamValueMessage
- ApiImageRotate
- ApiImport
- ApiImportReporter
- ApiLinkAccount
- ApiLogin
- ApiLogout
- ApiMain
- ApiManageTags
- ApiMergeHistory
- ApiMessage
- ApiMessageTrait
- ApiModuleManager
- ApiMove
- ApiOpenSearch
- ApiOpenSearchFormatJson
- ApiOptions
- ApiOptionsBase
- ApiPageSet
- ApiParamInfo
- ApiParse
- ApiPatrol
- ApiProtect
- ApiPurge
- ApiQuery
- ApiQueryAllCategories
- ApiQueryAllDeletedRevisions
- ApiQueryAllImages
- ApiQueryAllLinks
- ApiQueryAllMessages
- ApiQueryAllPages
- ApiQueryAllRevisions
- ApiQueryAllUsers
- ApiQueryAuthManagerInfo
- ApiQueryBacklinks
- ApiQueryBacklinksprop
- ApiQueryBase
- ApiQueryBlockInfoTrait
- ApiQueryBlocks
- ApiQueryCategories
- ApiQueryCategoryInfo
- ApiQueryCategoryMembers
- ApiQueryContributors
- ApiQueryDeletedRevisions
- ApiQueryDeletedrevs
- ApiQueryDisabled
- ApiQueryDuplicateFiles
- ApiQueryExtLinksUsage
- ApiQueryExternalLinks
- ApiQueryFileRepoInfo
- ApiQueryFilearchive
- ApiQueryGeneratorBase
- ApiQueryIWBacklinks
- ApiQueryIWLinks
- ApiQueryImageInfo
- ApiQueryImages
- ApiQueryInfo
- ApiQueryLangBacklinks
- ApiQueryLangLinks
- ApiQueryLanguageinfo
- ApiQueryLinks
- ApiQueryLogEvents
- ApiQueryMyStashedFiles
- ApiQueryPagePropNames
- ApiQueryPageProps
- ApiQueryPagesWithProp
- ApiQueryPrefixSearch
- ApiQueryProtectedTitles
- ApiQueryQueryPage
- ApiQueryRandom
- ApiQueryRecentChanges
- ApiQueryRevisions
- ApiQueryRevisionsBase
- ApiQuerySearch
- ApiQuerySiteinfo
- ApiQueryStashImageInfo
- ApiQueryTags
- ApiQueryTokens
- ApiQueryUserContribs
- ApiQueryUserInfo
- ApiQueryUsers
- ApiQueryWatchlist
- ApiQueryWatchlistRaw
- ApiRawMessage
- ApiRemoveAuthenticationData
- ApiResetPassword
- ApiResult
- ApiRevisionDelete
- ApiRollback
- ApiRsd
- ApiSerializable
- ApiSetNotificationTimestamp
- ApiSetPageLanguage
- ApiStashEdit
- ApiTag
- ApiUnblock
- ApiUndelete
- ApiUpload
- ApiUsageException
- ApiUserrights
- ApiValidatePassword
- ApiWatch
- ApiWatchlistTrait
- IApiMessage
- SearchApi
- MediaWiki\Content:
- AbstractContent
- CodeContentHandler
- Content
- ContentHandler
- ContentModelChange
- CssContent
- CssContentHandler
- FallbackContent
- FallbackContentHandler
- FileContentHandler
- JavaScriptContent
- JavaScriptContentHandler
- JsonContent
- JsonContentHandler
- TextContent
- TextContentHandler
- WikitextContent
- WikitextContentHandler
- WikiTextStructure
- MediaWiki\Debug:
- DeprecationHelper
- MWDebug
- MediaWiki\Deferred:
- RefreshSecondaryDataUpdate
- MediaWiki\FileBackend:
- FileBackendGroup – FIXME: Should this be in Wikimedia\FileBackend instead?
- MediaWiki\Json:
- FormatJson
- MediaWiki\Language:
- Language
- LanguageCode
- ILanguageConverter
- LanguageConverter
- ConverterRule
- ReplacementArray
- MediaWiki\Maintenance:
- BackupDumper
- Benchmarker
- DeleteLocalPasswords
- FakeMaintenance
- LoggedUpdateMaintenance
- MWDoxygenFilter
- Maintenance
- SchemaMaintenance
- SevenZipStream
- TextPassDumper
- MediaWiki\Parser:
- BlockLevelPass
- CacheTime
- CoreMagicVariables
- CoreParserFunctions
- CoreTagHooks
- DateFormatter
- DateFormatterFactory
- LinkHolderArray
- MWTidy
- PPCustomFrame_Hash
- PPDPart_Hash
- PPDStackElement_Hash
- PPDStack_Hash
- PPFrame
- PPFrame_Hash
- PPNode
- PPNode_Hash_Array
- PPNode_Hash_Attr
- PPNode_Hash_Text
- PPNode_Hash_Tree
- PPTemplateFrame_Hash
- ParserCache
- ParserFactory
- ParserOptions
- Preprocessor
- Preprocessor_Hash
- StripState
- MediaWiki\RCFeed:
- FormattedRCFeed
- IRCColourfulRCFeedFormatter
- JSONRCFeedFormatter
- MachineReadableRCFeedFormatter
- RCFeed
- RCFeedFormatter
- RedisPubSubFeedEngine
- UDPRCFeedEngine
- XMLRCFeedFormatter
- MediaWiki\RenameUser:
- RenameUserJob
- MediaWiki\Registration:
- ExtensionDependencyError
- ExtensionJsonValidationError
- ExtensionJsonValidator
- ExtensionProcessor
- ExtensionRegistry
- MissingExtensionException
- Processor
- VersionChecker
- MediaWiki\RevisionList:
- RevisionItem
- RevisionItemBase
- RevisionList
- RevisionListBase
- MediaWiki\Watchlist:
- ActivityUpdateJob
- ClearUserWatchlistJob
- ClearWatchlistNotificationsJob
- NoWriteWatchedItemStore
- WatchedItem
- WatchedItemQueryService
- WatchedItemQueryServiceExtension
- WatchedItemStore
- WatchedItemStoreInterface
- WatchlistExpiryJob
- MediaWiki\Xml:
- Xml
- XmlSelect
- Wikimedia\FileBackend:
- FSFileBackend
- FSFileBackendDirList
- FSFileBackendFileList
- FSFileBackendList
- FileBackend
- FileBackendError
- FileBackendMultiWrite
- FileBackendStore
- FileBackendStoreShardDirIterator
- FileBackendStoreShardFileIterator
- FileBackendStoreShardListIterator
- FileOpBatch
- HTTPFileStreamer
- MemoryFileBackend
- SwiftFileBackend
- SwiftFileBackendDirList
- SwiftFileBackendFileList
- SwiftFileBackendList
- Wikimedia\FileBackend\FileOps:
- CopyFileOp
- CreateFileOp
- DeleteFileOp
- DescribeFileOp
- FileOp
- FileStatePredicates
- MoveFileOp
- NullFileOp
- StoreFileOp
- Wikimedia\FileBackend\FileOpHandle:
- FSFileOpHandle
- SwiftFileOpHandle
- FileBackendStoreOpHandle
- Wikimedia\FileBackend\FSFile:
- FSFile
- TempFSFile
- TempFSFileFactory
- Wikimedia\Http:
- MultiHttpClient
- Wikimedia\Message:
- MessageSpecifier
- Wikimedia\Mime:
- MSCompoundFileReader
- MimeAnalyzer
- XmlTypeCheck
- Wikimedia\ObjectCache:
- APCUBagOStuff
- BagOStuff
- CachedBagOStuff
- EmptyBagOStuff
- HashBagOStuff
- IStoreKeyEncoder
- MediumSpecificBagOStuff
- MemcachedBagOStuff
- MemcachedPeclBagOStuff
- MemcachedPhpBagOStuff
- MultiWriteBagOStuff
- RESTBagOStuff
- RedisBagOStuff
- WANObjectCache
- WinCacheBagOStuff
- RedisConnectionPool
- RedisConnRef
- Wikimedia\Rdbms:
- DBAccessObjectUtils
- IDBAccessObject
- Wikimedia\Stats:
- BufferingStatsdDataFactory
- IBufferingStatsdDataFactory
- NullStatsdDataFactory
- PrefixingStatsdDataFactoryProxy
- SamplingStatsdClient
- StatsdAwareInterface
* MessageCache::get() with $language other than Language or null is
deprecated and emits deprecation warnings. For high-level access,
use wfMessage() or RequestContext::msg() instead.
* Manually constructing a Language object, deprecated in 1.35, now emits
deprecation warnings. Use LanguageFactory instead.
* MediaWiki\Languages\Data\Names::$names is deprecated.
* SearchEngineConfig::getConfig() has been deprecated, use DI with
ServiceOptions to inject the required options.
* ObjectCache::isDatabaseId() and ::getLocalClusterInstance() have been
deprecated. Use their equivalents in ObjectCacheFactory.
* Using the "post" source in parameter declarations returned from
Handler::getParamSettings() is deprecated, use "body" instead.
* ISQLPlatform::tableNamesN() is now deprecated.
* The implementation in SQLPlatform of ISQLPlatform::tableNames(), deprecated in
MediaWiki 1.39, now emits deprecation warnings.
* Title::getTitleProtection(), deprecated in 1.37, now emits warnings. You can
use RestrictionStore::getCreateProtection() instead.
* Title::loadRestrictions(), deprecated in 1.37, now emits warnings.
* Title::flushRestrictions(), deprecated in 1.37, now emits warnings.
* Title::getPageViewLanguage(), deprecated in 1.42, now emits warnings.
* wfUrlProtocols(), deprecated in 1.39, now emits warnings.
* wfGetServerUrl(), deprecated in 1.39, now emits warnings.
* wfExpandIRI(), deprecated in 1.39, now emits warnings.
* The following methods, previously deprecated, now emit deprecation warnings:
- ContentHandler::getDefaultModelFor(), deprecated since 1.33
- ContentHandler::getAllContentFormats(), deprecated since 1.35
- ContentHandler::getContentModels(), deprecated since 1.35
- ContentHandler::getForContent(), deprecated since 1.35
- ContentHandler::getForModelID(), deprecated since 1.35
- ContentHandler::getContentText(), deprecated since 1.37
* Passing a Message argument to OutputPage::setPageTitle(), which was
deprecated in 1.41, now emits warnings.
* OutputPage::showFatalError() is deprecated, use showErrorPage() instead.
* OutputPage::showPermissionsErrorPage() is deprecated,
use showPermissionStatus() instead.
* OutputPage::formatPermissionsErrorMessage(), deprecated since 1.36,
now emits deprecation warnings. Use formatPermissionStatus() instead.
* OutputPage::setCategoryLinks() has been deprecated and emits deprecation
warnings. Use ::addCategoryLinks() instead.
* OutputPage::setLanguageLinks() has been deprecated; use ::addLanguageLinks()
instead.
* Passing 'index' to OutputPage::setIndexPolicy() and
OutputPage::setRobotPolicy() after previously passing 'noindex' has
been deprecated; in a future release OutputPage will behave like
ParserOutput::setIndexPolicy(), where 'noindex' takes precedence
over 'index'.
* (T375975) Language::embedBidi() has been deprecated; use <bdi> HTML tag
instead.
* (T375975) Language::getDirMark() has been deprecated; use <bdi> HTML tag
instead.
* (T375975) Language::getDirMarkEntity() has been hard deprecated; use
<bdi> HTML tag instead.
* (T375975) The unused third parameter of Language::specialList is removed as
the method isolates the title unconditionally from the details.
* LoadBalancer::getConnectionRef(), deprecated since 1.39, now emits deprecation
warnings. Use ::getConnection() instead.
* DBAccessObjectUtils::getDBOptions() is deprecated, use
SelectQueryBuilder::recency() instead.
* IDatabase::lockForUpdate is deprecated, use
SelectQueryBuilder::acquireRowLocks instead.
* ILBFactory::flushReplicaSnapshots() is deprecated no longer needed.
* wfGetUrlUtils() is deprecated; instead, get a UrlUtils from services.
* DerivedPageDataUpdater::getPreparedEdit(), provided for back-compatibility, is
now deprecated; use the getters directly, instead.
* AuthManager::forcePrimaryAuthenticationProviders(), provided for back-
compatibility, is now deprecated.
* WikiPage::hasDifferencesOutsideMainSlot(), provided as a stop-gap before
refactoring to support MCR, is now deprecated.
* ChangesList::getTimestamp() has been deprecated; use ::revDateLink() instead.
* RecentChange::doMarkPatrolled() is deprecated, use
RecentChange::markPatrolled() instead.
* LogFormatter::newFromRow() and LogFormatter::newFromEntry(), deprecated since
1.42, now emit deprecation warnings.
* LinksUpdate::getAddedLinks(), ::getRemovedLinks(), deprecated since 1.38, now
emit deprecation warnings.
* TitleLinksTable::getTitleArray(), deprecated since 1.38, now emits deprecation
warnings.
* SiteConfig::variants() has been deprecated; use ::variantsFor().
* ObjectCache::$instances and ::getInstance() have been deprecated; instead, use
ObjectCacheFactory::getInstance().
* WANObjectCache::clearLastError() and BagOStuff::clearLastError have been hard
deprecated, use ::watchErrors() together with ::getLastErrors() instead.
* BagOStuff::getSegmentationSize() and ::getSegmentedValueMaxSize() no longer
have any usage. The subclass' method in MediumSpecificBagOStuff overrides also
have no usage as well.
* ApiBase::errorArrayToStatus() is deprecated with no replacement.
* ApiTestCase::setExpectedApiException() has been deprecated; instead, use
::expectApiErrorCode() to test error codes instead of messages.
* ApiPageSet::getTitles(), ApiPageSet::getGoodTitles(),
ApiPageSet::getMissingTitles(), ApiPageSet::getGoodAndMissingTitles(),
ApiPageSet::getRedirectTitles() and ApiPageSet::getSpecialTitles, deprecated
since 1.37, now emit deprecation warnings.
* QueryPage::setDBLoadBalancer() and ::getDBLoadBalancer() have been deprecated,
use QueryPage::setDatabaseProvider() or ::getDatabaseProvider() instead.
* User::isBlockedGlobally(), deprecated since 1.40, now emits deprecation
warnings.
* User::isBlockedFromEmailuser() and User::canSendEmail(), deprecated since
1.41, now emit deprecation warnings.
* wfMergeErrorArrays() has been deprecated.
* wfArrayDiff2() has been deprecated.
* User::whoIs() and User::whoIsReal(), have been deprecated.
* UserCache class and MediaWikiServices::getUserCache(), have been deprecated.
* JsonUnserializable and related classes have been renamed to JsonDeserializable
to make it clearer that they're related to converting serialized content back
into JSON, rather than stating that things are not representable in JSON. The
previous class names have been left behind as deprecated aliases:
- JsonUnserializable -> JsonDeserializable
- JsonUnserializableTrait -> JsonDeserializableTrait
- JsonUnserializer -> JsonDeserializer
Additionally, JsonCodec's unserialize() and unserializeArray() methods have
also been renamed to deserialize() and deserializeArray(), with the old names
deprecated.
* In the REST framework, the the BodyValidator interface and all functionality
related to it are deprecated. They have been replaced by
Handler::getBodyParamSettings() and Handler::parseBodyData(). The following
interfaces, classes, and methods are affected:
- interface BodyValidator
- class JsonBodyValidator
- class NullValidator
- function Handler::getBodyValidator
- function Validator::validateBody
* StatusValue will emit deprecation warnings when an error is given as
a MessageSpecifier combined with a parameters array, which is usually
a mistake, as the parameters have always been ignored.
* In StatusValue::replaceMessage(), ::hasMessage() and ::hasMessagesExcept()
passing MessageSpecifier or MessageValue as $source has been deprecated.
* PageArchive::undeleteAsUser, deprecated since 1.35, now emits deprecation
warnings.
* DatabaseBlock::getQueryInfo() and DatabaseBlock::getRangeCond() are
deprecated and emit deprecation warnings. Use the equivalent methods in
DatabaseBlockStore.