2024-05-04 19:01:21 +00:00
|
|
|
|
= MediaWiki 1.43 =
|
2024-04-08 23:37:54 +00:00
|
|
|
|
|
|
|
|
|
|
== 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:
|
|
|
|
|
|
|
2024-05-05 08:56:08 +00:00
|
|
|
|
* It is now necessary that the OpenSSL PHP extension is installed.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
For notes on 1.42.x and older releases, see HISTORY.
|
|
|
|
|
|
|
|
|
|
|
|
=== Configuration changes for system administrators in 1.43 ===
|
|
|
|
|
|
|
2024-04-09 03:26:02 +00:00
|
|
|
|
* $wgBlockTargetMigrationStage, which was introduced in 1.42, is now deprecated
|
|
|
|
|
|
and has no effect.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
==== New configuration ====
|
|
|
|
|
|
|
2022-10-13 21:03:32 +00:00
|
|
|
|
* (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.
|
2024-05-19 17:22:43 +00:00
|
|
|
|
* (T12347) $wgEnableProtectionIndicators - Defaults to false, setting it to true
|
|
|
|
|
|
shows a lock icon indicator on protected pages.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
==== Changed configuration ====
|
|
|
|
|
|
|
2024-04-25 16:57:53 +00:00
|
|
|
|
* 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.
|
2024-05-04 13:38:00 +00:00
|
|
|
|
* 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.
|
exception: Remove "error-json" debug log channel
This was introduced to allow maintainers during local development,
and e.g. when debugging in production, to capture silenced runtime
warnings, such as those silenced via AtEase or the `@` PHP operator.
These are not expected to be of interest to capture by default on
web requests, hence placed in a separate channel that e.g. one would
only enable during development, or when debugging.
When this was introduced, MediaWiki was only just starting to
experiment with PSR-3 structuerd logging, and thus it hardcoded JSON.
Now that we support structured logging natively, this has been
obsoleted by the "error" channel (for warnings in production),
and (since last December) the "silenced-error" channel (for debugging
and development) with commit f6cb39979b (I34b19837c3).
With the above two alternatives available, there is no longer a need
for the duplicate "error-json" channel.
Bug: T193472
Change-Id: I7a6e6fa52a47a29ec04411a6c8b05e005a0a4fc7
2024-05-13 14:47:33 +00:00
|
|
|
|
* 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)
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
==== Removed configuration ====
|
|
|
|
|
|
|
2024-05-05 08:56:08 +00:00
|
|
|
|
* wgSessionInsecureSecrets has been removed since OpenSSL is now a required
|
|
|
|
|
|
PHP extension.
|
2024-05-15 20:04:28 +00:00
|
|
|
|
* $wgTemplateLinksSchemaMigrationStage has been removed.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== New user-facing features in 1.43 ===
|
|
|
|
|
|
|
2024-05-11 10:40:01 +00:00
|
|
|
|
* (T338341) Support reading XMP and EXIF from WebP files
|
2024-06-12 21:10:21 +00:00
|
|
|
|
* (T365636) Wiki's with wgAllowExternalImages enabled now detect urls
|
|
|
|
|
|
with AVIF, SVG and WebP images.
|
2020-01-10 13:52:02 +00:00
|
|
|
|
* (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.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== New features for sysadmins in 1.43 ===
|
|
|
|
|
|
|
|
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== New developer features in 1.43 ===
|
|
|
|
|
|
|
2024-04-02 23:32:58 +00:00
|
|
|
|
* 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 );
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-04-18 15:58:57 +00:00
|
|
|
|
* The REST API framework now supports defining redirects in route definition
|
|
|
|
|
|
files. See MediaWiki\Rest\Handler\RedirectHandler for details.
|
2022-10-13 21:03:32 +00:00
|
|
|
|
* (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.
|
2024-05-04 07:18:19 +00:00
|
|
|
|
* (T219397) New `Language::formatDurationBetweenTimestamps()` function added
|
|
|
|
|
|
which takes two timestamps and a precision in order to calculate a more
|
|
|
|
|
|
accurate text representation of duration.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== External library changes in 1.43 ===
|
|
|
|
|
|
|
2024-02-29 22:47:26 +00:00
|
|
|
|
* The OOjs Router library has been merged into core and will be archived
|
|
|
|
|
|
upstream.
|
|
|
|
|
|
|
2024-04-08 23:37:54 +00:00
|
|
|
|
==== New external libraries ====
|
|
|
|
|
|
|
|
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
===== New development-only external libraries =====
|
|
|
|
|
|
|
|
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
==== Changed external libraries ====
|
2024-04-17 20:39:01 +00:00
|
|
|
|
* Updated codex, codex-design-tokens and codex-icons
|
2024-06-25 21:22:02 +00:00
|
|
|
|
from v1.3.6 to v1.8.0.
|
2024-05-03 13:41:59 +00:00
|
|
|
|
* Updated guzzlehttp/guzzle from 7.7.1 to 7.8.1.
|
2024-05-03 13:51:19 +00:00
|
|
|
|
* Updated pear/net_smtp from 1.11.1 to 1.12.1.
|
2024-05-03 19:55:00 +00:00
|
|
|
|
* Updated monolog/monolog from 2.9.2 to 2.9.3.
|
2024-05-03 20:02:21 +00:00
|
|
|
|
* Updated symfony/yaml from 5.4.35 to 5.4.39.
|
2024-06-11 21:32:35 +00:00
|
|
|
|
* Updated OOUI from v0.49.1 to v0.50.0.
|
2024-05-27 20:02:36 +00:00
|
|
|
|
* Updated wikimedia/less.php from 4.2.1 to 4.4.1.
|
2024-05-16 04:16:59 +00:00
|
|
|
|
* Updated vue from 3.3.9 to 3.4.27.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
===== Changed development-only external libraries =====
|
|
|
|
|
|
|
2024-04-09 23:56:33 +00:00
|
|
|
|
* Upgraded eslint-config-wikimedia from 0.26.0 to 0.27.0.
|
2024-05-03 13:58:40 +00:00
|
|
|
|
* Updated seld/jsonlint from 1.10.1 to 1.10.2.
|
2024-05-03 18:21:35 +00:00
|
|
|
|
* Updated doctrine/dbal from 3.7.2 to 3.8.4.
|
2024-05-03 19:56:51 +00:00
|
|
|
|
* Updated phpunit/phpunit from 9.6.16 to 9.6.19.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
==== Removed external libraries ====
|
|
|
|
|
|
|
|
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== Bug fixes in 1.43 ===
|
|
|
|
|
|
|
2024-06-18 20:12:26 +00:00
|
|
|
|
* When using the 'runMaintenance' method in a LoadExtensionSchemaUpdates hook
|
|
|
|
|
|
handler, only the script's class name is required, not its path. (T367918)
|
2021-03-26 12:48:27 +00:00
|
|
|
|
* QueryPage::recache() (used by the updateSpecialPages.php maintenance script)
|
|
|
|
|
|
no longer attempts to ignore database errors. (T278543)
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== Action API changes in 1.43 ===
|
|
|
|
|
|
|
2024-03-24 17:30:50 +00:00
|
|
|
|
* APIQueryUserInfo now returns null in the field registrationdate for users
|
|
|
|
|
|
created before December 2005 (their registration date was not recorded).
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== 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.
|
|
|
|
|
|
|
2023-09-08 12:14:44 +00:00
|
|
|
|
* (T290657) Added language support for Levantine Arabic (apc).
|
2024-05-06 07:49:47 +00:00
|
|
|
|
* (T364291) Added language support for Musi, also known as Palembang (mui).
|
2024-05-20 14:44:02 +00:00
|
|
|
|
* (T365365) Added language support for Chakma (ccp).
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== Breaking changes in 1.43 ===
|
|
|
|
|
|
|
2024-04-03 18:49:04 +00:00
|
|
|
|
* ErrorPageError public properties 'msg' and 'title' may now contain
|
|
|
|
|
|
any MessageSpecifier object, not just Message.
|
2024-04-15 07:39:20 +00:00
|
|
|
|
* Reset button functionality suppressReset() and $mShowReset from HTMLForm
|
|
|
|
|
|
was removed without replacement.
|
2024-04-21 19:03:24 +00:00
|
|
|
|
* UserGroupMembership::getGroupName(), deprecated in 1.38, and
|
|
|
|
|
|
UserGroupMembership::getGroupMemberName(), deprecated in 1.40, have
|
|
|
|
|
|
been removed.
|
2024-04-23 14:48:24 +00:00
|
|
|
|
* SerializedValueContainer::isUnified(), deprecated in 1.42, has been
|
|
|
|
|
|
removed.
|
2024-04-21 19:05:20 +00:00
|
|
|
|
* Parser::getFreshParser(), deprecated in 1.39, has been removed.
|
2024-04-21 20:19:26 +00:00
|
|
|
|
* ConfigFactory::getDefaultInstance(), deprecated since 1.27, has been
|
|
|
|
|
|
removed.
|
2024-04-30 16:16:20 +00:00
|
|
|
|
* IReadableDatabase::getReplicaPos() has been removed without deprecation
|
|
|
|
|
|
as it's not used anywhere.
|
2024-04-30 16:24:08 +00:00
|
|
|
|
* ILoadBalancer::laggedReplicaUsed() has been moved to ILoadBalancerForOwner::
|
|
|
|
|
|
effectively making it internal.
|
2023-12-14 16:48:29 +00:00
|
|
|
|
* Overriding MWException::getHTML(), ::getText(), ::getPageTitle(), and
|
|
|
|
|
|
::reportHTML() in order to display custom exception messages is no
|
|
|
|
|
|
longer supported.
|
2023-10-30 16:04:41 +00:00
|
|
|
|
* 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.
|
2024-04-30 17:28:57 +00:00
|
|
|
|
* TablePager::getBody(), final and deprecated since 1.24, has been removed.
|
|
|
|
|
|
Use ::getBodyOutput() or ::getFullOutput() instead.
|
2024-04-30 17:25:48 +00:00
|
|
|
|
* ImportableUploadRevisionImporter::downloadSource(), deprecated in 1.31, is now
|
|
|
|
|
|
private. Its only known external caller was removed in 1.40.
|
2024-04-21 20:16:40 +00:00
|
|
|
|
* 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()
|
2024-05-03 11:32:38 +00:00
|
|
|
|
* BotPassword::invalidateAllPasswordsForCentralId() and
|
|
|
|
|
|
BotPassword::removeAllPasswordsForCentralId(), deprecated in 1.37,
|
|
|
|
|
|
have been removed.
|
2024-05-03 18:00:29 +00:00
|
|
|
|
* Title::getBrokenLinksFrom(), deprecated in 1.42, has been removed.
|
2024-05-03 18:07:49 +00:00
|
|
|
|
* The $type parameter to Skin::getCopyright(), deprecated in 1.40, has been
|
|
|
|
|
|
removed.
|
2024-05-03 18:09:00 +00:00
|
|
|
|
* Skin::footerLink(), deprecated in 1.40, has been removed.
|
2024-05-03 18:09:00 +00:00
|
|
|
|
* Skin::getAction(), deprecated in 1.39, has been removed.
|
2024-05-03 18:03:20 +00:00
|
|
|
|
* Title::getCdnUrls() and Title::purgeSquid(), deprecated in 1.35, have been
|
|
|
|
|
|
removed.
|
2024-05-04 15:04:36 +00:00
|
|
|
|
* Constructing MWHttpRequest objects now requires timeout and connectTimeout to
|
|
|
|
|
|
be set; this was deprecated in 1.35.
|
2024-05-13 14:49:11 +00:00
|
|
|
|
* 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.
|
2024-05-04 15:13:59 +00:00
|
|
|
|
* DatabaseBlock::purgeExpired, deprecated since 1.38, has been removed.
|
2024-05-04 15:22:03 +00:00
|
|
|
|
* AbstractBlock::getPermissionsError, deprecated since 1.35, has been removed.
|
2024-05-08 16:08:22 +00:00
|
|
|
|
* IDatabase::namedLocksEnqueue() has been removed without deprecation.
|
2024-05-15 11:34:35 +00:00
|
|
|
|
* IDatabase::getTopologyRole() has been removed without deprecation.
|
2024-05-08 16:08:22 +00:00
|
|
|
|
* IDatabase::getTopologyBasedServerId() has been removed without deprecation.
|
|
|
|
|
|
Use IDatabase::getServerName() instead.
|
2024-06-04 13:55:18 +00:00
|
|
|
|
* IReadableDatabase::wasReadOnlyError() has been removed without deprecation.
|
|
|
|
|
|
Use IDatabase::isReadOnly() instead.
|
2024-05-31 14:06:01 +00:00
|
|
|
|
* IReadableDatabase::wasDeadlock() has been removed without deprecation.
|
2024-05-29 11:57:58 +00:00
|
|
|
|
* ILoadBalancer::getWriterIndex() has been removed without deprecation.
|
|
|
|
|
|
Use ServerInfo::WRITER_INDEX constant instead.
|
2024-05-05 07:48:24 +00:00
|
|
|
|
* WikiPage::doDeleteArticleBatched, hard deprecated since 1.37, has been
|
|
|
|
|
|
removed.
|
|
|
|
|
|
* SpecialEmailUser::submit, deprecated since 1.41, has been removed.
|
2024-05-05 07:51:15 +00:00
|
|
|
|
* SpecialEmailUser::validateTarget, deprecated since 1.41, has been removed.
|
2024-05-06 13:15:22 +00:00
|
|
|
|
* SpecialEmailUser::getPermissionsError, deprecated since 1.41 has been
|
|
|
|
|
|
removed.
|
2024-05-04 16:31:48 +00:00
|
|
|
|
* SpecialBlock::getTargetAndType, deprecated since 1.36, has been removed.
|
2024-04-09 03:26:02 +00:00
|
|
|
|
* ApiQueryBlockInfoTrait::addBlockInfoToQuery(), deprecated since 1.42, has been
|
|
|
|
|
|
removed.
|
Move Linker::makeExternalLink() to the LinkRenderer service
Move Linker::makeExternalLink to the LinkRenderer service, as has been
done with the other static methods of Linker.
In order to allow phan's SecurityCheckPlugin to perform a more accurate
analysis of taintedness, tweak the API of Linker::makeExternalLink to
clearly indicate via the type system whether the link text has already
been escaped or not: a `string` argument will always be escaped, and
if the argument is already escaped it should be passed as an HtmlArmor
object. In refactoring, `Message` arguments were also common, and accept
them as-is to avoid the caller having to think about whether to call
Message::text() or Message::escaped().
This allows us to provide a more precise taint type to the $text argument,
avoids an opaque boolean argument, and avoids spurious errors from
SecurityCheck.
We also require the caller to explicitly pass a Title context, instead
of implicitly relying on the global $wgTitle. This works cleanly
everywhere except for CommentParser, which has a $selfLinkTarget which
generally works as the title context for the external link, but which
is nullable. The original Linker::makeExternalLink() used $wgTitle as
a fallback, but $wgTitle can also be null in some circumstances. The
title context only determines how $wgNoFollowNsExceptions is handled,
so existing code basically just ignored $wgNoFollowNsExceptions when
$wgTitle was null, which isn't terrible. A future refactor could/should
clean up CommentParser to ensure that there is always a non-null title
context that can be used.
Change-Id: I9bcf4780f388ba639a9cc882dd9dd42eda5736ae
2024-02-09 20:19:38 +00:00
|
|
|
|
* 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.
|
2024-05-01 16:32:58 +00:00
|
|
|
|
* 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.
|
2024-02-08 23:17:47 +00:00
|
|
|
|
* DummyLinker has been removed. The former DummyLinker parameter
|
|
|
|
|
|
to the 'ImageBeforeProduceHTML' hook is now null.
|
2024-05-29 11:49:39 +00:00
|
|
|
|
* 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()
|
2024-06-07 12:09:14 +00:00
|
|
|
|
- ::primaryPosWait()
|
2024-04-11 19:36:10 +00:00
|
|
|
|
* IMaintainableDatabase::listViews(), deprecated since 1.42, has been removed.
|
2024-04-11 19:20:41 +00:00
|
|
|
|
* IMaintainableDatabase::truncate(), deprecated since 1.42, has been removed.
|
2024-04-11 18:58:28 +00:00
|
|
|
|
* IMaintainableDatabase::textFieldSize() was removed without deprecation.
|
2024-05-28 02:49:47 +00:00
|
|
|
|
* The "options" parameter to User::createNew() and the $data parameter to
|
|
|
|
|
|
UserOptionsManager::loadUserOptions() were removed.
|
2024-06-01 06:35:27 +00:00
|
|
|
|
* `.list-style-image()` mixin from mediawiki.mixins.less, deprecated since 1.38,
|
|
|
|
|
|
has been removed.
|
2024-06-01 06:40:34 +00:00
|
|
|
|
* `.background-image()` mixin from mediawiki.mixins.less, deprecated since 1.38,
|
|
|
|
|
|
has been removed.
|
2024-04-16 20:26:56 +00:00
|
|
|
|
* IDatabase::nextSequenceValue(), deprecated since 1.30, was removed.
|
2024-06-07 06:41:15 +00:00
|
|
|
|
* 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.
|
2024-06-26 14:28:07 +00:00
|
|
|
|
* All `@width-breakpoint-*` Less variables have been removed. Use
|
|
|
|
|
|
`@min-width-breakpoint-*`/`@max-width-breakpoint-*` instead.
|
2024-06-26 01:48:08 +00:00
|
|
|
|
* The following ParserOption methods, deprecated since 1.35, were removed:
|
|
|
|
|
|
- ::setAllowExternalImages()
|
|
|
|
|
|
- ::setAllowExternalImagesFrom()
|
|
|
|
|
|
- ::setEnableImageWhitelist()
|
2024-06-26 01:55:49 +00:00
|
|
|
|
* Sanitizer::removeHTMLtags(), deprecated since 1.38, has been removed.
|
2024-06-26 01:37:03 +00:00
|
|
|
|
* OutputPage::getCSPNonce(), deprecated since 1.35, has been removed.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== Deprecations in 1.43 ===
|
|
|
|
|
|
|
2024-04-02 23:32:58 +00:00
|
|
|
|
* 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().
|
2024-06-05 22:02:49 +00:00
|
|
|
|
* PermissionManager::getPermissionErrors() has been deprecated in favor
|
|
|
|
|
|
of getPermissionStatus().
|
2024-05-21 21:00:16 +00:00
|
|
|
|
* (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\Content:
|
|
|
|
|
|
- CssContent
|
|
|
|
|
|
- CssContentHandler
|
2024-05-21 19:11:48 +00:00
|
|
|
|
- FallbackContent
|
|
|
|
|
|
- FallbackContentHandler
|
2024-05-21 21:00:16 +00:00
|
|
|
|
- JavaScriptContent
|
|
|
|
|
|
- JavaScriptContentHandler
|
|
|
|
|
|
- JsonContent
|
|
|
|
|
|
- JsonContentHandler
|
|
|
|
|
|
- TextContent
|
|
|
|
|
|
- TextContentHandler
|
|
|
|
|
|
- MediaWiki\Debug:
|
|
|
|
|
|
- DeprecationHelper
|
|
|
|
|
|
- MWDebug
|
|
|
|
|
|
- MediaWiki\Deferred:
|
|
|
|
|
|
- RefreshSecondaryDataUpdate
|
|
|
|
|
|
- MediaWiki\FileBackend:
|
|
|
|
|
|
- FileBackendGroup – FIXME: Should this be in Wikimedia\FileBackend instead?
|
|
|
|
|
|
- MediaWiki\Json:
|
|
|
|
|
|
- FormatJson
|
|
|
|
|
|
- MediaWiki\RCFeed:
|
|
|
|
|
|
- FormattedRCFeed
|
|
|
|
|
|
- IRCColourfulRCFeedFormatter
|
|
|
|
|
|
- JSONRCFeedFormatter
|
|
|
|
|
|
- MachineReadableRCFeedFormatter
|
|
|
|
|
|
- RCFeed
|
|
|
|
|
|
- RCFeedFormatter
|
|
|
|
|
|
- RedisPubSubFeedEngine
|
|
|
|
|
|
- UDPRCFeedEngine
|
|
|
|
|
|
- XMLRCFeedFormatter
|
|
|
|
|
|
- MediaWiki\RenameUser:
|
|
|
|
|
|
- RenameUserJob
|
|
|
|
|
|
- MediaWiki\RevisionList:
|
|
|
|
|
|
- RevisionItem
|
|
|
|
|
|
- RevisionItemBase
|
|
|
|
|
|
- RevisionList
|
|
|
|
|
|
- RevisionListBase
|
|
|
|
|
|
- MediaWiki\Watchlist:
|
|
|
|
|
|
- ActivityUpdateJob
|
2024-05-21 20:19:18 +00:00
|
|
|
|
- ClearUserWatchlistJob
|
|
|
|
|
|
- ClearWatchlistNotificationsJob
|
|
|
|
|
|
- NoWriteWatchedItemStore
|
2024-05-21 21:00:16 +00:00
|
|
|
|
- WatchedItem
|
|
|
|
|
|
- WatchedItemQueryService
|
|
|
|
|
|
- WatchedItemQueryServiceExtension
|
|
|
|
|
|
- WatchedItemStore
|
2024-05-21 20:19:18 +00:00
|
|
|
|
- WatchedItemStoreInterface
|
2024-05-21 21:00:16 +00:00
|
|
|
|
- WatchlistExpiryJob
|
|
|
|
|
|
- MediaWiki\Xml:
|
|
|
|
|
|
- Xml
|
|
|
|
|
|
- XmlSelect
|
|
|
|
|
|
- Wikimedia\FileBackend:
|
|
|
|
|
|
- FileBackend
|
|
|
|
|
|
- Wikimedia\Http:
|
|
|
|
|
|
- MultiHttpClient
|
2022-09-16 12:27:03 +00:00
|
|
|
|
* 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.
|
2024-04-16 14:07:10 +00:00
|
|
|
|
* SearchEngineConfig::getConfig() has been deprecated, use DI with
|
|
|
|
|
|
ServiceOptions to inject the required options.
|
2024-05-13 11:16:27 +00:00
|
|
|
|
* ObjectCache::isDatabaseId() and ::getLocalClusterInstance() have been
|
|
|
|
|
|
deprecated. Use their equivalents in ObjectCacheFactory.
|
2024-04-06 09:35:21 +00:00
|
|
|
|
* Using the "post" source in parameter declarations returned from
|
|
|
|
|
|
Handler::getParamSettings() is deprecated, use "body" instead.
|
2024-04-05 17:09:25 +00:00
|
|
|
|
* ISQLPlatform::tableNamesN() is now deprecated.
|
2024-04-05 17:10:50 +00:00
|
|
|
|
* The implementation in SQLPlatform of ISQLPlatform::tableNames(), deprecated in
|
|
|
|
|
|
MediaWiki 1.39, now emits deprecation warnings.
|
2023-08-19 02:45:46 +00:00
|
|
|
|
* 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
|
2023-08-10 16:37:09 +00:00
|
|
|
|
* Passing a Message argument to OutputPage::setPageTitle(), which was
|
|
|
|
|
|
deprecated in 1.41, now emits warnings.
|
2024-04-25 22:10:06 +00:00
|
|
|
|
* OutputPage::showFatalError() is deprecated, use showErrorPage() instead.
|
2024-04-17 12:47:05 +00:00
|
|
|
|
* LoadBalancer::getConnectionRef(), deprecated since 1.39, now emits deprecation
|
|
|
|
|
|
warnings. Use ::getConnection() instead.
|
2024-05-02 05:44:49 +00:00
|
|
|
|
* DBAccessObjectUtils::getDBOptions() is deprecated, use
|
|
|
|
|
|
SelectQueryBuilder::recency() instead.
|
2024-04-28 20:08:51 +00:00
|
|
|
|
* IDatabase::lockForUpdate is deprecated, use
|
|
|
|
|
|
SelectQueryBuilder::acquireRowLocks instead.
|
2024-04-30 17:24:34 +00:00
|
|
|
|
* 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.
|
|
|
|
|
|
* SiteConfig::variants() has been deprecated; use ::variantsFor().
|
|
|
|
|
|
* ObjectCache::$instances and ::getInstance() have been deprecated; instead, use
|
|
|
|
|
|
ObjectCacheFactory::getInstance().
|
|
|
|
|
|
* ApiTestCase::setExpectedApiException() has been deprecated; instead, use
|
|
|
|
|
|
::expectApiErrorCode() to test error codes instead of messages.
|
2024-04-23 16:43:29 +00:00
|
|
|
|
* User::isBlockedGlobally(), deprecated since 1.40, now emits deprecation
|
|
|
|
|
|
warnings.
|
|
|
|
|
|
* User::isBlockedFromEmailuser() and User::canSendEmail(), deprecated since
|
|
|
|
|
|
1.41, now emit deprecation warnings.
|
2024-05-04 08:58:57 +00:00
|
|
|
|
* 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.
|
2024-04-12 22:31:33 +00:00
|
|
|
|
* 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.
|
2024-04-15 21:07:11 +00:00
|
|
|
|
* In StatusValue::replaceMessage(), ::hasMessage() and ::hasMessagesExcept()
|
|
|
|
|
|
passing MessageSpecifier or MessageValue as $source has been deprecated.
|
2024-04-09 03:26:02 +00:00
|
|
|
|
* DatabaseBlock::getQueryInfo() and DatabaseBlock::getRangeCond() are
|
|
|
|
|
|
deprecated and emit deprecation warnings. Use the equivalent methods in
|
|
|
|
|
|
DatabaseBlockStore.
|
|
|
|
|
|
* DatabaseBlockStore::getReadStage() and ::getWriteStage() are deprecated.
|
|
|
|
|
|
Use the new schema unconditionally.
|
2024-05-27 06:15:03 +00:00
|
|
|
|
* UserOptionsManager::resetOptions(), ::listOptionKinds and ::getOptionKinds are
|
|
|
|
|
|
deprecated and will emit deprecation warnings. Use the corresponding methods
|
|
|
|
|
|
in PreferencesFactory and UserOptionsManager::resetOptionsByName().
|
2024-05-28 21:39:58 +00:00
|
|
|
|
* To support a future change allowing serializing of MessageValue objects
|
|
|
|
|
|
as JSON, the methods MessageValue::objectParams(), Message::objectParams()
|
|
|
|
|
|
and Message::objectParam() are deprecated. The UserGroupMembershipParam
|
|
|
|
|
|
class, the ParamType::OBJECT constant, and passing Stringable objects to
|
|
|
|
|
|
ScalarParam are likewise deprecated.
|
2024-06-01 12:05:44 +00:00
|
|
|
|
* The Less mixin .column-break-after-avoid() is deprecated. Use just the
|
|
|
|
|
|
CSS rule `break-after: avoid-column;` instead now.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
=== Other changes in 1.43 ===
|
|
|
|
|
|
|
2024-02-17 00:35:09 +00:00
|
|
|
|
* Class aliases to support the old PHPUnit 4 style un-namespaced `PHPUnit_`
|
|
|
|
|
|
classes (such as PHPUnit_Framework_Error) have been removed.
|
2024-03-04 19:58:48 +00:00
|
|
|
|
* [Temporary accounts] If $wgAutoCreateTempUser is enabled, then MediaWiki
|
|
|
|
|
|
will create a temporary account and log the user in for unsuccessful edit
|
|
|
|
|
|
attempts and null edits, in addition to edits that change content. This is
|
|
|
|
|
|
a change from the previous paradigm, where temporary accounts were created
|
|
|
|
|
|
only for successful edits. This change is done to support better logging
|
|
|
|
|
|
support and moderation, to ensure that hooks run in a pre-save context have
|
|
|
|
|
|
a user object to associate log entries and other actions with.
|
2022-09-24 21:16:43 +00:00
|
|
|
|
* Several entries have been removed from the default list of interwikis used
|
|
|
|
|
|
when installing new wikis. This does not affect existing wikis.
|
2024-01-28 04:13:58 +00:00
|
|
|
|
* User auto-creations are now performed as the target user instead of
|
|
|
|
|
|
anonymous IP user.
|
2024-05-16 17:53:16 +00:00
|
|
|
|
* Corrected the interpretation of empty arrays in extension configuration when
|
|
|
|
|
|
the default value is null. Previously, an empty array specified by the
|
|
|
|
|
|
administrator would transform into the default null value. It now
|
|
|
|
|
|
appropriately retains its empty array state.
|
2024-05-27 08:46:53 +00:00
|
|
|
|
* (T362536) Exempted "deletedhistory", "deletedtext", and "viewsuppressed"
|
|
|
|
|
|
rights from namespace protection ($wgNamespaceProtection) since that's
|
|
|
|
|
|
only meant to prevent write actions.
|
2018-05-15 23:09:01 +00:00
|
|
|
|
* Image captions are no longer trimmed.
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
|
|
== Compatibility ==
|
|
|
|
|
|
|
|
|
|
|
|
MediaWiki 1.43 requires PHP 8.1.0 or later and the following PHP extensions:
|
|
|
|
|
|
|
|
|
|
|
|
* ctype
|
|
|
|
|
|
* dom
|
|
|
|
|
|
* fileinfo
|
|
|
|
|
|
* iconv
|
|
|
|
|
|
* intl
|
|
|
|
|
|
* json
|
|
|
|
|
|
* mbstring
|
2024-05-05 08:56:08 +00:00
|
|
|
|
* openssl
|
2024-04-08 23:37:54 +00:00
|
|
|
|
* xml
|
|
|
|
|
|
|
|
|
|
|
|
MariaDB is the recommended database software. MySQL, PostgreSQL, or SQLite can
|
|
|
|
|
|
be used instead, but support for them is somewhat less mature.
|
|
|
|
|
|
|
|
|
|
|
|
The supported versions are:
|
|
|
|
|
|
|
|
|
|
|
|
* MariaDB 10.3 or higher
|
|
|
|
|
|
* MySQL 5.7.0 or higher
|
|
|
|
|
|
* PostgreSQL 10 or later
|
|
|
|
|
|
* SQLite 3.8.0 or later
|
|
|
|
|
|
|
|
|
|
|
|
== Online documentation ==
|
|
|
|
|
|
Documentation for both end-users and site administrators is available on
|
|
|
|
|
|
MediaWiki.org, and is covered under the GNU Free Documentation License (except
|
|
|
|
|
|
for pages that explicitly state that their contents are in the public domain):
|
|
|
|
|
|
|
|
|
|
|
|
<https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation>
|
|
|
|
|
|
|
|
|
|
|
|
== Mailing list ==
|
|
|
|
|
|
A mailing list is available for MediaWiki user support and discussion:
|
|
|
|
|
|
|
|
|
|
|
|
<https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/>
|
|
|
|
|
|
|
|
|
|
|
|
A low-traffic announcements-only list is also available:
|
|
|
|
|
|
|
|
|
|
|
|
<https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/>
|
|
|
|
|
|
|
|
|
|
|
|
It's highly recommended that you sign up for one of these lists if you're
|
|
|
|
|
|
going to run a public MediaWiki, so you can be notified of security fixes.
|
|
|
|
|
|
|
|
|
|
|
|
== IRC help ==
|
|
|
|
|
|
There's usually someone online in #mediawiki on irc.libera.chat.
|