Release notes/1.32

MediaWiki 1.32
THIS IS NOT A RELEASE YET

MediaWiki 1.32 is an alpha-quality branch and is not recommended for use in production.

New configuration
this setting. The default is 80, which matches the quality of JPEG thumbnails previously generated by ImageMagick. The quality of JPEG thumbnails generated by GD was previously 95, but now uses the $wgJpegQuality setting as well. user is blocked. Doing so means that a blocked user, even after moving to a new IP address, will still be blocked. messages which are displayed as raw HTML. "Content Security Policy" for your wiki. This adds a defense-in-depth feature to stop an attacker who has found a bug in the parser allowing them to insert malicious attributes. Disabled by default. (T135963) controlling access to sitewide CSS/JS (and editing other users' CSS/JS). No other group has 'editsitecss', 'editusercss', 'editsitejs' or 'edituserjs' by default. granting the above rights. enable client-side profiling of JavaScript modules; it is off by default. setting allows sysadmins to gradually migrate the database table schema for how change tags are stored. allows sysadmins to enable the caching of Special:Tags via the new change_tag_def table.
 * $wgJpegQuality – The quality of JPEG thumbnails is now configurable through
 * $wgCookieSetOnIpBlock - This determines whether to set a cookie when an IP
 * $wgRawHtmlMessages – This new configuration setting is added for listing
 * $wgCSPHeader and $wgCSPReportOnlyHeader – You can now define a
 * $wgGroupPermissions – A new user group, 'interface-admin', is added for
 * $wgGrantPermissions – A new grant group, 'editsiteconfig', is added for
 * $wgDBDefaultGroup – A default database group for use by maintenance scripts.
 * $wgResourceLoaderEnableJSProfiler – This new configuration setting lets you
 * (T193868) $wgChangeTagsSchemaMigrationStage — This temporary configuration
 * (T199334) $wgTagStatisticsNewTable — This temporary configuration setting

Changed configuration
been increased from 3 to 7 days. (T194414) (e.g. MediaWiki:Common.js), CSS or JSON was separated from 'editinterface' and is available under 'editsitejs'/'editsitecss'/'editsitejson'. Having 'editinterface' is still necessary to edit such pages. old and the new schema, but reading the new schema, so Multi-Content Revisions (MCR) are now functional per default. The new default value of the setting is SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW. MIGRATION_WRITE_NEW. It instead uses SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD and SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW for intermediate stages of migration. default was already overridden in the installer-generated LocalSettings.php, and so is always set to binary after the installer UI option was removed. The default value is only used when the installer installs an extension. has been moved to be in line with other non-PHP files used by libraries and classes. potential privacy leaks by administrators. You can check "MediaWiki:External image whitelist" on your wiki to see whether the feature was ever used, and whether it needs to be re-enabled.
 * $wgUseAjax – This setting, deprecated in 1.31, is now ignored.
 * $wgDefaultUserOptions – The default watchlist view time (watchlistdays) has
 * $wgGroupPermissions – The right to edit sitewide Javascript
 * $wgMultiContentRevisionSchemaMigrationStage now defaults to writing both the
 * $wgActorTableSchemaMigrationStage no longer accepts MIGRATION_WRITE_BOTH or
 * $wgDBTableOptions – The default table options now use the binary charset. The
 * $wgPopularPasswordFile — The location of the default popular passwords file
 * $wgEnableImageWhitelist is now disabled by default, as it opens up a hole for

Removed configuration
have been removed. (T115414) The 'html5-legacy' value for $wgFragmentMode is no longer accepted. most extensions, is no longer set. Instead, you can modify the system message `emailsender`. were removed. RemexHtml, which is the default, should be used instead. style URLs in OutputPage, deprecated in 1.31, was removed. from ResourceLoader. Instead, use `@import` statements in LESS to import files directly from nearby directories within the same project. since 1.30, was removed. Instead, to expose variables from PHP to LESS, use the ResourceLoaderModule::getLessVars method. was removed. $wgStructuredChangeFiltersShowPreference introduced in MediaWiki 1.30 and $wgStructuredChangeFiltersOnWatchlist in 1.31, were removed.
 * $wgEnableAPI and $wgEnableWriteAPI – These settings, deprecated in 1.31,
 * $wgSiteSupportPage – This setting, unused since 1.5, was removed.
 * $wgBrowserBlacklist – This setting, deprecated in 1.30, was removed.
 * $wgExperimentalHtmlIds – This setting, deprecated since 1.30, was removed.
 * $wgPasswordSenderName - This setting, ignored since 1.23 by MediaWiki and
 * $wgTidyConfig – The experimental Html5Internal and Html5Depurate tidy drivers
 * (T181318) The $wgStyleVersion setting and its appendage to various script and
 * (T140807) The wgResourceLoaderLESSImportPaths configuration option was removed
 * (T140804) The wgResourceLoaderLESSVars configuration option, deprecated
 * $wgResourceLoaderValidateStaticJS – This setting, unused since MediaWiki 1.18,
 * Two temporary variables for deploying the feature of filters on change lists,

New features in 1.32
using a particular page during edit previews. to true. temporary user groups. user if they move to a new IP address. This is disabled by default. reauthenticating. getLoginSecurityLevel returns non-false. &$query and &$widthOption, allowing extensions even finer control over the resulting HTML code. if the [mark as patrolled] link should be shown at the footer of patrollable pages. is now passed by reference, allowing extensions to modify or even unset it. modify the return value of OutputPage#getHeadLinksArray in order to add, remove or otherwise alter the elements to be output in the page. additional links to the subtitle of a history page. the Title object of the page being parsed, on which the links will be shown. render diffs between two Content objects, and DifferenceEngine::setRevisions to render diffs between two custom (potentially multi-content) revisions. Added GetSlotDiffRenderer hook which works like GetDifferenceEngine for slots. can't yet handle MCR and deadlines are forcing is to put off fixing that. This action should be considered deprecated and should not be used directly. updated for the changed method signature. from user. Unlike the 'UserGetRights' it will ensure that removed rights will not be reinserted.
 * (T112474) Generalized the ResourceLoader mechanism for overriding modules
 * (T12331) You can now log page creation events by setting $wgPageCreationLog
 * Added 'ApiParseMakeOutputPage' hook.
 * (T174313) Added checkbox on Special:ListUsers to display only users in
 * (T152462) A cookie can now be set when an IP user is blocked to track that
 * (T194950) Added 'ApiMaxLagInfo' hook.
 * SpecialPage::checkLoginSecurityLevel will now preserve POST data when
 * FormSpecialPage::execute will now call checkLoginSecurityLevel if
 * The 'ImageBeforeProduceHTML' hook is now passed three new parameters, $parser,
 * Added new 'ArticleShowPatrolFooter' hook, which allows extensions to determine
 * The array of hidden options ($opts) passed to the 'SpecialSearchPowerBox' hook
 * Added new 'OutputPageAfterGetHeadLinksArray' hook, allowing extensions to
 * (T28934) The 'HistoryPageToolLinks' hook allows extensions to append
 * The 'GetLinkColours' hook now receives an additional $title parameter,
 * (T194731) DifferenceEngine supports multiple slots. Added SlotDiffRenderer to
 * Added a temporary action=mcrundo to the web UI, as the normal undo logic
 * Extensions overriding ContentHandler::getUndoContent will need to be
 * Added a new hook, 'UserGetRightsRemove', which can be used to remove rights

New external libraries

 * Added pear/Net_SMTP v1.8.0.
 * Added wikimedia/xmp-reader v0.6.0.


 * Added cache/integration-tests v0.16.0 (dev-only).
 * Added giorgiosironi/eris v0.10.0 (dev-only).
 * Added seld/jsonlint v1.7.1 (dev-only).


 * Added EasyDeflate (unversioned).

Changed external libraries

 * Updated OOUI from v0.26.3 to v0.29.2.
 * Updated wikimedia/base-convert from v1.0.1 to v2.0.0.
 * Updated wikimedia/remex-html from v1.0.3 to v2.0.1.
 * Updated wikimedia/scoped-callback from v1.0.0 to v2.0.0.
 * ScopedCallback objects can no longer be serialized.
 * Updated wikimedia/timestamp from v1.0.0 to v2.2.0.
 * Updated wikimedia/wrappedstring from v2.3.0 to v3.0.1.


 * Updated composer/spdx-licenses from v1.3.0 to v1.4.0 (dev-only).
 * Updated mediawiki/mediawiki-codesniffer from v18.0.0 to v22.0.0 (dev-only).
 * Updated psy/psysh from v0.8.11 to v0.9.6 (dev-only).


 * Updated CLDRPluralRuleParser from v0.1.0 to v1.3.2-pre.
 * Updated jquery from v3.2.1 to v3.3.1.
 * Updated jquery.client from v2.0.0 to v2.0.1.
 * Updated jquery.i18n from v1.0.4 to v1.0.5.
 * Updated mustache.js from v0.8.2-d9aa703 to v1.0.0.
 * Updated OOjs from v2.2.0 to v2.2.2.
 * Updated qunitjs from v2.4.0 to v2.6.2.
 * Updated sinonjs from v1.17.3 to v1.17.7.

Removed external libraries

 * pear/mail_mime-decode was removed.

Bug fixes in 1.32
getLoginSecurityLevel returns non-false.
 * SpecialPage::execute will now only call checkLoginSecurityLevel if
 * (T43720, T46197) Improved page display title handling for category pages
 * (T65080) Fixed resetting options of some types via API action=options.

Action API changes in 1.32
* A module can define a templated parameter like "{fruit}-quantity", where the actual parameters recognized correspond to the values of a multi-valued parameter. Then clients can make requests like "fruits=apples|bananas&apples-quantity=1&bananas-quantity=5". * action=paraminfo will return templated parameter definitions separately from normal parameters. All parameter definitions now include an "index" key to allow clients to maintain parameter ordering when merging normal and templated parameters. This has generated a warning since MediaWiki 1.14. longer use the action module's custom response format, for the few modules that use custom formatters that handle errors. extension preferences are no longer represented as arrays when returned by action=query&meta=userinfo&uiprop=options. and error text, e.g. "noxxfoo" and "The 'xxfoo' parameter must be set" rather than "nofoo" and "The 'foo' parameter must be set". multi-content revision slots for which content should be returned. It also has a new rvprop, 'roles', to indicate which roles have slots. A deprecation warning will be issued if rvprop=content or rvprop=contentmodel are used without rvslots. deprecated. Clients should be prepared to deal with the default format for relevant models. rvdiffto, rvdifftotext, rvdifftotextpst, rvcontentformat, or the deprecated rvprop=parsetree is forbidden with the new 'rvslots' parameter. action=query&list=alldeletedrevisions are changed similarly to &prop=revisions (see the three previous items). * It has a 'slots' parameter to select diffing of individual slots. The default behavior is to return one combined diff. * The 'fromtext', 'fromsection', 'fromcontentmodel', 'fromcontentformat', 'totext', 'tosection', 'tocontentmodel', and 'tocontentformat' parameters are deprecated. Specify the new 'fromslots' and 'toslots' to identify which slots have text supplied and the corresponding templated parameters for each slot. * The behavior of 'fromsection' and 'tosection' of extracting one section's   content is not being preserved. 'fromsection-{slot}' and 'tosection-{slot}' instead expand the given text as if for a section edit. This effectively declines T183823 in favor of T185723. deprecated; untidy output will not be supported by future wikitext parsers. reasons an action is not allowed. intestactions=read.
 * Added templated parameters.
 * It is now an error to submit too many values for a multi-valued parameter.
 * Assertion failures from the 'assert' and 'assertuser' parameters will no
 * (T198935) User list preferences such as `email-blacklist` and similar
 * 'missingparam' errors will now use the prefixed parameter name in the code
 * action=query&prop=revisions now takes a 'rvslots' parameter to indicate the
 * The rvcontentformat parameter to action=query&prop=revisions has been
 * Use of the deprecated parameters rvexpandtemplates, rvgeneratexml, rvparse,
 * action=query&prop=deletedrevisions, action=query&list=allrevisions, and
 * (T174032) action=compare now supports multi-content revisions.
 * (T198214) The 'disabletidy' parameter to action=parse has been
 * Added intestactionsdetail to action=query&prop=info to allow retrieving the
 * Deprecated action=query&prop=info inprop=readable in favor of

Action API internal changes in 1.32
templated parameters. external callers are known. * ApiFeedContributions::feedItemAuthor * ApiFeedContributions::feedItemDesc * ApiQueryRevisionsBase::extractRevisionInfo * ApiBase::profileIn (deprecated in 1.25) * ApiBase::profileOut (deprecated in 1.25) * ApiBase::safeProfileOut (deprecated in 1.25) * ApiBase::profileDBIn (deprecated in 1.25) * ApiBase::profileDBOut (deprecated in 1.25) * ApiBase::dieUsage (deprecated in 1.29) * ApiBase::dieUsageMsg (deprecated in 1.29) * ApiBase::dieUsageMsgOrDebug (deprecated in 1.29) * ApiBase::getErrorFromStatus (deprecated in 1.29) * ApiBase::parseMsg (deprecated in 1.29) * ApiBase::setWarning (deprecated in 1.29) * ApiPageSet::getInvalidTitles (deprecated in 1.26) * ApiQueryLogEvents::addLogParams (deprecated in 1.25) * ApiUsageException::getCodeString (deprecated in 1.29) * ApiUsageException::getMessageArray (deprecated in 1.29) can now easily test $formatter->getFormat === 'bc', and then call $formatter->newWithFormat( 'plaintext' ) to get a non-BC formatter.
 * Added 'ApiParseMakeOutputPage' hook.
 * Parameter names may no longer contain '{' or '}', as these are now used for
 * (T194950) Added 'ApiMaxLagInfo' hook.
 * The following methods now take a RevisionRecord rather than a Revision. No
 * The following deprecated methods have been removed:
 * Class UsageException, deprecated in 1.29, has been removed.
 * ApiErrorFormatter: Added getFormat and newWithFormat. In particular, you

Languages updated in 1.32
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.


 * (T193566) Added language support for Ambonese Malay (abs).
 * (T194047) Added language support for Shawiya, Latin script (shy-latn).
 * (T195940) Added language support for Batak Mandailing (btm).
 * (T137491) Added language support for Standard Moroccan Amazigh (zgh).
 * (T198132) Added language support for Manipuri (mni).
 * (T201276) Added language support for Western Armenian (hyw).
 * (T201583) Added language support for Mon (mnw).

Breaking changes in 1.32
$_SERVER['REQUEST_TIME_FLOAT'] or WebRequest::getElapsedTime instead. Skin::msg instead. deprecated in 1.31, was removed. MediaWiki\Session\Token::SUFFIX instead. instead. were deprecated in 1.25, have now been removed: * Revision::getRawUser * Revision::getRawUserText * Revision::getRawComment mw.msg or mw.message instead. mw.util.escapeIdForAttribute or mw.util.escapeIdForLink instead. jquery.accessKeyLabel instead. with the Balancer tidy implementation. Both implementations were experimental, and were replaced by RemexHtml. removed. Use JobQueueGroup::singleton->push instead. removed. Use mediawiki.widgets.visibleLengthLimit instead. any HTMLForm object rather than PreferencesForm. Use Wikimedia\Timestamp\TimestampException instead. utf8ToCodepoint, and escapeSingleString (deprecated in 1.25) were removed. The UtfNormal\Utils class from the utfnormal library should be used instead. from the UtfNormal\Constants class from the utfnormal library should be used only needed for PHP5 compatibility, have been removed. It now uses the boolean values `true` and `false` respectively. were removed. Use the ParserCache class instead. instead. deprecated since 1.26, was removed. Use getDefinitionSummary instead. and "jump-to-nav" accessibility links. To this end, the "jquery.mw-jump" is no longer loaded by default. The Vector and MonoBook skins have made a minor change to implement the toggle feature with CSS instead. To restore prior functionality, either explicitly load "jquery.mw-jump" in your skin or refer to T195256 for details on how to make the same change. use 'EditPageGetCheckboxesDefinition' instead. 1.28, were removed. LinkRenderer::getLinkClasses should be used instead. been removed. Use Wikimedia\Rdbms\LoadBalancer::getLaggedReplicaMode instead. CapsuleMultiselectWidget. The following methods may no longer be used: * setItemsFromData: Use setValue instead * getItemsData: Use getItems instead and get the data property removed. Use addLink instead. getPageTitleActionText, were removed. They did nothing since 1.15 (almost ten years). Use setHTMLTitle directly. value returned was misleading and probably not what any caller would have wanted. hooks or MagicWordFactory methods instead. MagicWordFactory, such as by calling resetServiceForTesting( 'MagicWordFactory' ) on a MediaWikiServices. a no-op function since 1.30. instead. $wgProfiler and $wgEnableProfileInfo. supports the `id, url` signature. Use the `Object` parameter instead. option that is not set to be a drop-down if the "mw-chosen" class is present, is now removed. library and they are no longer needed (as of ICU 57.1): * 'uppercase-se' (NorthernSamiUppercaseCollation) - use 'uca-se' instead * 'xx-uca-et' (CollationEt) - use 'uca-et' instead * 'xx-uca-fa' (CollationFa) - use 'uca-fa' instead that some MediaWiki-specific language codes, such as `simple`, are mapped into valid BCP 47 codes (eg `en-simple`). in 1.23 were removed. Instead, use 'ChangesListSpecialPageStructuredFilters'. The ChangesListSpecialPage code for these legacy hooks, and their use in SpecialRecentchanges.php and SpecialWatchlist, was also removed: * ChangesListSpecialPage->getCustomFilters * ChangesListSpecialPage->getFilterGroupDefinitionFromLegacyCustomFilters * ChangesListSpecialPage::customFilters the "requires" property of static extension registration instead. behaviour which has been deprecated since 1.24. Wikimedia\Rdbms\LBFactory. MimeAnalyzer instance from MediaWikiServices instead. the output is now the default. Use '--no-tidy' to bypass the tidy phase. Use MWLoggerLegacyLogger::emit or UDPTransport. 1.23, were removed. Instead, use ChangesListSpecialPageStructuredFilters or ChangesListSpecialPageQuery. assert a newer version of PHP than MediaWiki does, use extension registration. removed. Use the 'ChangesListSpecialPageStructuredFilters' hook instead. the hook 'SkinEditSectionLinks' instead. Use Hooks::run. the hooks 'ParserLimitReportPrepare' and 'ParserLimitReportFormat' instead. * ApiBase::profileIn (deprecated in 1.25) * ApiBase::profileOut (deprecated in 1.25) * ApiBase::safeProfileOut (deprecated in 1.25) * ApiBase::profileDBIn (deprecated in 1.25) * ApiBase::profileDBOut (deprecated in 1.25) * ApiBase::dieUsage (deprecated in 1.29) * ApiBase::dieUsageMsg (deprecated in 1.29) * ApiBase::dieUsageMsgOrDebug (deprecated in 1.29) * ApiBase::getErrorFromStatus (deprecated in 1.29) * ApiBase::parseMsg (deprecated in 1.29) * ApiBase::setWarning (deprecated in 1.29) * ApiPageSet::getInvalidTitles (deprecated in 1.26) * ApiQueryLogEvents::addLogParams (deprecated in 1.25) * ApiUsageException::getCodeString (deprecated in 1.29) * ApiUsageException::getMessageArray (deprecated in 1.29) old "bulletin board style toolbar", known as "the 2006 wikitext editor", has been removed, and instead sysadmins will be required to choose one (or more) of the several extensions available for this purpose if they need the functionality. The MediaWiki "tarball" releases have included the replacement extension for this, the WikiEditor extension aka "the 2010 wikitext editor", for many years now. As part of this, several parts of MediaWiki have been removed or simplified: * The user option 'showtoolbar' (shown as "Show edit toolbar") is no longer available; if an extension adds a toolbar via the EditPageBeforeEditToolbar hook, it will be shown; extensions should provide a specific user preference to disable themselves as needed. * The public methods Language::getImageFile and ::getImageFiles, and the related specification of $imageFiles within individual languages' code file, as well as the referenced static media assets, all of which were only used inside MediaWiki itself for providing the icons for the old toolbar, have been removed without explicit deprecation. * The internal ResourceLoader module "mediawiki.toolbar", which is unused except by MediaWiki itself and back-compatibility code, has been removed. * The internal ResourceLoaderEditToolbarModule class has been removed.
 * $wgRequestTime, deprecated in 1.25, was removed. Use
 * The MediaWikiI18N class, deprecated in 1.31, was removed.
 * QuickTemplate::setTranslator, deprecated in 1.31, was removed. Use
 * wfInitShellLocale, deprecated in 1.30, was removed.
 * wfShellExecDisabled, deprecated in 1.30, was removed.
 * The type string for the parameter $lang of DateFormatter::getInstance,
 * The EDIT_TOKEN_SUFFIX constant deprecated in 1.27, was removed. Use
 * EditPage::isOouiEnabled deprecated in 1.30, was removed.
 * mw.util.wikiGetlink, deprecated in 1.23, was removed. Use mw.util.getUrl
 * (T61113) The following methods and constants from the Revision class, which
 * window.gM from mediawiki.jqueryMsg, deprecated in 1.23, was removed. Use
 * mw.util.escapeId, deprecated in 1.30, was removed. Use
 * mw.util.updateTooltipAccessKeys, deprecated in 1.24, was removed. Use
 * The SqlDataUpdate class, deprecated in 1.28, has been removed.
 * The Html5Internal and Html5Depurate tidy driver classes were removed, along
 * (T179624) Job::insert and ::batchInsert, deprecated in 1.21, were both
 * The jquery.footHovzer module, for mediawiki.debug, was removed.
 * The es5-shim module, empty and deprecated since 1.29, was removed.
 * the dom-level2-shim module, empty and deprecated since 1.29, was removed.
 * the json module, empty and deprecated since 1.29, was removed.
 * The mediawiki.widgets.visibleByteLimit module alias, deprecated in 1.32, was
 * The jquery.farbtastic module, unused since 1.18, was removed.
 * The 'jquery.expandableField' module, unused since 1.22, was removed.
 * The hooks 'PreferencesFormPreSave' and 'PreferencesGetLegend' may provide
 * The non namespaced TimestampException class, deprecated in 1.29, was removed.
 * The global functions codepointToUtf8, hexSequenceToUtf8, utf8ToHexSequence,
 * The deprecated UTF8_ and UNICODE_ constants were removed. The class constants
 * The protected methods PHPSessionHandler::returnSuccess and returnFailure,
 * The $parserMemc global and wfGetParserCacheStorage, deprecated since 1.30,
 * ScopedCallback (deprecated in 1.28) was removed. Use Wikimedia\ScopedCallback
 * Support for ResourceLoaderModule::getModifiedTime and getModifiedHash,
 * (T195256) Skins are recommended not to rely on JavaScript for the "mw-jump"
 * Hook 'EditPageBeforeEditChecks' was removed;
 * Linker::getLinkColour and DummyLinker::getLinkColour, deprecated since
 * Wikimedia\Rdbms\LoadBalancer::getLaggedSlaveMode, deprecated in 1.28, has
 * mw.widgets.CategoryMultiselectWidget now uses TagMultiselectWidget instead of
 * Two OutputPage methods, addMetadataLink and getMetadataAttribute, were
 * Another two OutputPage methods, setPageTitleActionText and
 * The return value of OutputPage::adaptCdnTTL has been removed. The
 * All MagicWord static member variables have been removed. Use appropriate
 * MagicWord::clearCache has been removed. Instead, create a new
 * mw.util.init has been removed. This function is not needed anymore and was
 * SpecialPageFactory::resetList is a no-op. Call overrideMwServices
 * MediaWiki no longer supports a StartProfiler.php file. Instead, you can set
 * The mw.loader.addSource is now considered a private method, and no longer
 * The backwards-compatibility code in HTMLForm to add a drop-down control to an
 * Several collations were removed. They were workarounds for bugs in the ICU
 * LanguageCode::bcp47 now always returns a valid BCP 47 code. This means
 * The hooks 'SpecialRecentChangesFilters' & 'SpecialWatchlistFilters' deprecated
 * The global function wfUseMW, deprecated since 1.26, has now been removed. Use
 * $wgSpecialPages no longer accepts array syntax, deprecated since 1.18.
 * The MailAddress constructor can no longer be called with a User object,
 * LBFactory, deprecated since 1.28, has been removed. Instead, use
 * The MimeMagic class, deprecated since 1.28 has been removed. Get a
 * The '--tidy' option to maintenance/parse.php has been removed. Tidying
 * The global function wfErrorLog, deprecated since 1.25, has now been removed.
 * The hooks 'SpecialRecentChangesQuery' & 'SpecialWatchlistQuery', deprecated in
 * The global function wfUsePHP, deprecated since 1.30, has now been removed. To
 * The hook 'ChangesListSpecialPageFilters', deprecated in 1.29, has now been
 * DeferredUpdates::setImmediateMode, deprecated since 1.29, has been removed.
 * File / MediaHandler::getStreamHeaders, deprecated since 1.30, was removed.
 * The hook 'DoEditSectionLink', deprecated since 1.25, has been removed. Use
 * The hook 'UserGetImplicitGroups', deprecated since 1.25, has been removed.
 * The global function wfRunHooks, deprecated since 1.25, has now been removed.
 * The hook 'UnknownAction', deprecated since 1.19, has now been removed.
 * The hook 'ParserLimitReport', deprecated since 1.22, has been removed. Use
 * The following deprecated API methods have been removed:
 * Class UsageException, deprecated in 1.29, has been removed.
 * MediaWiki no longer has a 'JavaScript-powered' wikitext toolbar built in. The

Deprecations in 1.32
button is already marked as progressive. has been centralised to Skin::getDefaultModules, which is now capable of queueing style modules as well. deprecated. Use addModules instead. in extending classes is deprecated. Extend related doSearch* methods instead. and deprecated: mediawiki.api.category, mediawiki.api.edit, mediawiki.api.login, mediawiki.api.options, mediawiki.api.parse, mediawiki.api.upload, mediawiki.api.user, mediawiki.api.watch, mediawiki.api.messages, and mediawiki.api.rollback. to use it. with the 'unwatch' action parameter instead. constant INTL_ICU_VERSION directly in all versions that MediaWiki supports. of the namespaced classes provided by the wikimedia/xmp-reader library. use foreach on the SearchResultSet, or the extractResults method. Extending code should override extractResults. implementations must subclass SearchResultSet for their purposes. array to accepting a Closure that returns the array when called. MediaWikiServices::getCryptRand are deprecated, use random_bytes to generate cryptographically secure random byte sequences. instead. it had unexpected behavior (only marking text if it looked like a URL) and was only used in a single place in the code. Use LanguageConverter::markNoConversion instead. hard deprecated in this release. It has been split into two similar methods, Language::truncateForVisual and Language::truncateForDatabase, which measure length in characters and bytes, respectively. Use Language::truncateForVisual when possible to provide equity to users of multibyte scripts. context title is unset is now deprecated; anything creating an EditPage instance should set the context title via ::setContextTitle. are deprecated. These concepts are obsolete and have no replacement. of using showFatalError directly: OutputPage::showFileDeleteError OutputPage::showFileNotFoundError, OutputPage::showFileRenameError OutputPage::showFileCopyError and OutputPage::showUnexpectedValueError. classes are now deprecated. Use a Closure instead. WikiPage::makeParserOptions or ParserOptions::newCanonical instead. MediaWiki 1.26, is now hard-deprecated. All known clients were converted to the Parsoid v3 API in May 2015. $formDescriptor instead. to running searchText. This method was mainly implemented to support the 'prefix' URI param in SpecialSearch, but there are no reasons to expose this logic as it should be handled internally by SearchEngine implementations supporting this feature. SearchEngine implementations should no longer override this methods. to running searchText/searchTitle. 'log-show-hide-[type]' format. Instead use 'logeventslist-[type]-log'. use array_filter directly. Set $wgShowExceptionDetails and/or $wgShowHostnames instead. Set $wgShowExceptionDetails instead. mNewRev, mOldPage, mNewPage, mOldContent, mNewContent, mRevisionsLoaded, mTextLoaded and mCacheHit is deprecated. Use getOldid / getNewid / getOldRevision / getNewRevision for the first four (note that the revision ones return a RevisionRecord, not a Revision), do your own lookup for page/content. just enable the PHP extension, and it will be autodetected. setContent, generateContentDiffBody, generateTextDiffBody and textDiff are deprecated. To interact with a single slot, use a SlotDiffRenderer (and subclass it to customize diff rendering); to diff custom (e.g. unsaved) content, use setRevisions. Subclassing DifferenceEngine should only be done to customize page-level diff properties (such as the navigation header). methods instead. standard configuration, use MediaWikiServices::getPasswordFactory. instead. instead. methods on a SpecialPageFactory instance, which may be obtained from MediaWikiServices. mw.user.getPageviewToken to better capture its function. Content object should be passed instead. previously used by OOUI HTMLForm fields, are now deprecated. Use 'help', 'help-message', 'help-messages' instead. or overriding ContentHandler::getSecondaryDataUpdates (T194038). PageDeletionDataUpdates, or overriding ContentHandler::getDeletionDataUpdates (T194038). ContentHandler::getSecondaryDataUpdates for overriding by extensions (T194038). Application logic should call WikiPage::doSecondaryDataUpdates (T194037). ContentHandler::getDeletionUpdates for overriding by extensions (T194038). Application logic should call WikiPage::doSecondaryDataUpdates (T194037). in MediaWiki 1.26, have now been hard deprecated. This affects $wgUseTidy, $wgTidyBin, $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy. Use $wgTidyConfig instead. future parsers will not emit compatible output for these configurations. In particular, running MediaWiki with tidy disabled has been deprecated. and OutputPage::addWikiTextTitle have been deprecated, since they can result in untidy output. In addition OutputPage::addWikiTextTidy and OutputPage::addWikiTextTitleTidy was deprecated to make naming new methods consistent. Use OutputPage::addWikiTextAsInterface or OutputPage::addWikiTextAsContent instead, which ensures the output is  tidy and clarifies whether content-language specific postprocessing should be done on the text. due to untidy output and inconsistent handling of wrapper divs and interface/content language defaults. Use OutputPage::parseAsContent, OutputPage::parseAsInterface, or OutputPage::parseInlineAsInterface as appropriate. as they promote bad practises. I18n messages should always be properly escaped. returns action=raw&ctype=text/css which callers should use directly. deprecated. Use CommentStore::insert instead. to create a new Language object with a different language code. MediaWiki\Revision\ namespace. The old class names are aliased for compatibility, but are deprecated. Classes are IncompleteRevisionException, MutableRevisionRecord, MutableRevisionSlots, RevisionAccessException, RevisionArchiveRecord, RevisionFactory, RevisionLookup, RevisionRecord, RevisionSlots, RevisionStore, RevisionStoreRecord, SlotRecord, and SuppressedDataException. option, it is now deprecated to give its contents (the 'default' option) as a string. They should be given as a OOUI\FieldLayout object instead. Notably, this affects fields defined in the 'GetPreferences' hook, because Special:Preferences uses an OOUI form now. (If possible, don't use 'rawrow'.) deprecated. For the $lang parameter, types other than Language are deprecated. OutputPage::getKeyHeader method have been deprecated; the relevant draft IETF spec expired without becoming a standard. intestactions=read.
 * HTMLForm::setSubmitProgressive is deprecated. No need to call it. Submit
 * Skin::setupSkinUserCss is deprecated. Adding of modules to load
 * OutputPage::addModuleScripts and ParserOutput::addModuleScripts are
 * Overriding SearchEngine::{searchText,searchTitle,searchArchiveTitle}
 * The following 'mediawiki.api' plugin modules were merged into mediawiki.api
 * ApiBase::truncateArray is deprecated. No replacement, as nothing is known
 * WatchAction::getUnwatchToken is deprecated. Use WatchAction::getWatchToken
 * IcuCollation::getICUVersion is deprecated, as you can just use the PHP
 * Parser::fetchFile is deprecated. Use ::fetchFileAndTitle instead.
 * The ApiQueryContributions class has been renamed to ApiQueryUserContribs.
 * The XMPInfo, XMPReader, and XMPValidate classes have been deprecated in favor
 * SearchResultSet::{next,rewind} are deprecated. Calling code should
 * Instantiating SearchResultSet directly is deprecated. SearchEngine
 * SearchResult::setExtensionData argument has been changed from accepting an
 * Class CryptRand, everything in MWCryptRand except generateHex and function
 * Parser::getConverterLanguage is deprecated. Use ::getTargetLanguage
 * Language::markNoConversion is deprecated. It confused readers because
 * (T197492) Language::truncate was soft deprecated in 1.31 and is
 * (T176526) EditPage::getContextTitle falling back to $wgTitle when the
 * The 'jquery.hidpi' module (polyfill for IMG srcset) is deprecated.
 * ResourceLoaderStartUpModule::getStartupModules and ::getLegacyModules
 * String type for $lang of DifferenceEngine::setTextLanguage is deprecated.
 * The following methods of OutputPage are now deprecated in favour
 * The Replacer, DoubleReplacer, HashtableReplacer, and RegexlikeReplacer
 * (T194263) ContentHandler::makeParserOptions is deprecated. Use
 * (T100681) Use of the Parsoid v1 API with the VirtualRESTService, deprecated in
 * $input is deprecated in hook 'LogEventsListGetExtraInputs'. Use
 * SearchEngine::transformSearchTerm( $term ) should no longer be called prior
 * SearchEngine::replacePrefixes( $query ) should no longer be called prior
 * (T199657) Messages for $wgFilterLogTypes labels should be no longer be in the
 * Global functions wfArrayFilter and wfArrayFilterByKey are deprecated.
 * The $wgShowSQLErrors global is deprecated and nonfunctional.
 * The $wgShowDBErrorBacktrace global is deprecated and nonfunctional.
 * Public access to the DifferenceEngine properties mOldid, mNewid, mOldRev,
 * The $wgExternalDiffEngine value 'wikidiff2' is deprecated. To use wikidiff2
 * (T194731) DifferenceEngine properties mOldContent and mNewContent and methods
 * The wfUseMW function, soft-deprecated in 1.26, is now hard deprecated.
 * All MagicWord static methods are now deprecated. Use the MagicWordFactory
 * PasswordFactory::init is deprecated. To get a password factory with the
 * $wgContLang is deprecated, use MediaWikiServices::getContentLanguage
 * $wgParser is deprecated, use MediaWikiServices::getParser instead.
 * wfGetMainCache is deprecated, use ObjectCache::getLocalClusterInstance
 * wfGetCache is deprecated, use ObjectCache::getInstance instead.
 * All SpecialPageFactory static methods are deprecated. Instead, call the
 * mw.user.stickyRandomId was renamed to the more explicit
 * Passing Revision objects to ContentHandler::getUndoContent is deprecated,
 * (T197179) Parameters 'notice', 'notice-messages', 'notice-message',
 * (T197179) HTMLFormField::getNotices is now deprecated.
 * The jquery.localize module is now deprecated. Use jquery.i18n instead.
 * The SecondaryDataUpdates hook was deprecated in favor of RevisionDataUpdates,
 * The WikiPageDeletionUpdates hook was deprecated in favor of
 * Content::getSecondaryDataUpdates has been deprecated in favor of
 * Content::getDeletionUpdates has been deprecated in favor of
 * (T198214) Old Tidy-related configuration settings, which were soft-deprecated
 * All Tidy configurations other than Remex have been hard deprecated;
 * (T198214) OutputPage::addWikiText, OutputPage::addWikiTextWithTitle,
 * OutputPage::parse and OutputPage::parseInline have been deprecated
 * QuickTemplate::msgHtml and BaseTemplate::msgHtml have been deprecated
 * Skin::getDynamicStylesheetQuery has been deprecated. It always
 * Class LegacyFormatter is deprecated.
 * Use of CommentStore::insertWithTempTable with 'img_description' is
 * Language::setCode is deprecated as public function. Use Language::factory
 * Several classes have been moved from the MediaWiki\Storage\ namespace to the
 * When using OOUI HTMLForm containing an 'info' field which uses the 'rawrow'
 * In Skin::doEditSectionLink omitting the parameters $tooltip and $lang is
 * The $wgUseKeyHeader configuration option and the
 * Deprecated API action=query&prop=info inprop=readable in favor of

Other changes in 1.32
proper PRIMARY KEYs for increased maintainability: interwiki, page_props, protected_titles and site_identifiers. rather than in a popup. Previous behavior can be restored by using `'help-inline' => false`. storage layer and have basic support for display. No user interface exists yet for creating or managing content in slots beides the main slot. See  for more information. deprecated. Since access should be mediated by the CommentStore class, this change shouldn't affect external code.
 * (T198811) The following tables have had their UNIQUE indexes turned into
 * OOUI HTMLForm will now display help text inline after the input field,
 * The archive table's ar_rev_id field is now unique.
 * Special:BotPasswords now requires reauthentication.
 * (T174023) Multi-Content Revision (MCR) capabilities were introduced into the
 * The image_comment_temp database table is merged into the image table and
 * (T206147) Database::close will no longer commit any open transactions.

Compatibility
MediaWiki 1.32 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is supported, it is generally advised to use PHP 7.0.0 or later for long term support. MediaWiki requires that the mbstring, xml, ctype, json, iconv and fileinfo PHP extensions are loaded to work.

MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used, but support for them is somewhat less mature. There is experimental support for Oracle and Microsoft SQL Server.

The supported versions are:


 * MySQL 5.5.8 or later
 * PostgreSQL 9.2 or later
 * SQLite 3.3.7 or later
 * Oracle 9.0.1 or later
 * Microsoft SQL Server 2005 (9.00.1399)

Upgrading
1.32 has several database changes since 1.31, and will not work without schema updates. Note that due to changes to some very large tables like the revision table, the schema update may take quite long (minutes on a medium sized site, many hours on a large site).

Don't forget to always back up your database before upgrading!

See the file UPGRADE for more detailed upgrade instructions, including important information when upgrading from versions prior to 1.11.

For notes on 1.31.x and older releases, see HISTORY.

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/mailman/listinfo/mediawiki-l

A low-traffic announcements-only list is also available:

https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce

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.freenode.net.