Add .vscode to .gitignore file
[lhc/web/wiklou.git] / RELEASE-NOTES-1.32
1 == MediaWiki 1.32 ==
2
3 THIS IS NOT A RELEASE YET
4
5 MediaWiki 1.32 is an alpha-quality branch and is not recommended for use in
6 production.
7
8 === Configuration changes in 1.32 ===
9
10 ==== New configuration ====
11 * $wgJpegQuality – The quality of JPEG thumbnails is now configurable through
12 this setting. The default is 80, which matches the quality of JPEG thumbnails
13 previously generated by ImageMagick. The quality of JPEG thumbnails generated
14 by GD was previously 95, but now uses the $wgJpegQuality setting as well.
15 * $wgCookieSetOnIpBlock - This determines whether to set a cookie when an IP
16 user is blocked. Doing so means that a blocked user, even after moving to a
17 new IP address, will still be blocked.
18 * $wgRawHtmlMessages – This new configuration setting is added for listing
19 messages which are displayed as raw HTML.
20 * $wgCSPHeader and $wgCSPReportOnlyHeader – You can now define a
21 "Content Security Policy" for your wiki. This adds a defense-in-depth feature
22 to stop an attacker who has found a bug in the parser allowing them to insert
23 malicious attributes. Disabled by default. (T135963)
24 * $wgGroupPermissions – A new user group, 'interface-admin', is added for
25 controlling access to sitewide CSS/JS (and editing other users' CSS/JS). No
26 other group has 'editsitecss', 'editusercss', 'editsitejs' or 'edituserjs'
27 by default.
28 * $wgGrantPermissions – A new grant group, 'editsiteconfig', is added for
29 granting the above rights.
30 * $wgDBDefaultGroup – A default database group for use by maintenance scripts.
31 * $wgResourceLoaderEnableJSProfiler – This new configuration setting lets you
32 enable client-side profiling of JavaScript modules; it is off by default.
33 * (T193868) $wgChangeTagsSchemaMigrationStage — This temporary configuration
34 setting allows sysadmins to gradually migrate the database table schema for
35 how change tags are stored.
36 * (T199334) $wgTagStatisticsNewTable — This temporary configuration setting
37 allows sysadmins to enable the caching of Special:Tags via the new
38 change_tag_def table.
39
40 ==== Changed configuration ====
41 * $wgUseAjax – This setting, deprecated in 1.31, is now ignored.
42 * $wgDefaultUserOptions – The default watchlist view time (watchlistdays) has
43 been increased from 3 to 7 days. (T194414)
44 * $wgGroupPermissions – The right to edit sitewide Javascript
45 (e.g. MediaWiki:Common.js), CSS or JSON was separated from 'editinterface'
46 and is available under 'editsitejs'/'editsitecss'/'editsitejson'. Having
47 'editinterface' is still necessary to edit such pages.
48 * $wgMultiContentRevisionSchemaMigrationStage now defaults to writing both the
49 old and the new schema, but reading the new schema, so Multi-Content Revisions
50 (MCR) are now functional per default. The new default value of the setting is
51 SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW.
52 * $wgActorTableSchemaMigrationStage no longer accepts MIGRATION_WRITE_BOTH or
53 MIGRATION_WRITE_NEW. It instead uses SCHEMA_COMPAT_WRITE_BOTH |
54 SCHEMA_COMPAT_READ_OLD and SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW
55 for intermediate stages of migration.
56 * $wgDBTableOptions – The default table options now use the binary charset. The
57 default was already overridden in the installer-generated LocalSettings.php,
58 and so is always set to binary after the installer UI option was removed. The
59 default value is only used when the installer installs an extension.
60 * $wgPopularPasswordFile — The location of the default popular passwords file
61 has been moved to be in line with other non-PHP files used by libraries and
62 classes.
63
64 ==== Removed configuration ====
65 * $wgEnableAPI and $wgEnableWriteAPI – These settings, deprecated in 1.31,
66 have been removed. (T115414)
67 * $wgSiteSupportPage – This setting, unused since 1.5, was removed.
68 * $wgBrowserBlacklist – This setting, deprecated in 1.30, was removed.
69 * $wgExperimentalHtmlIds – This setting, deprecated since 1.30, was removed.
70 The 'html5-legacy' value for $wgFragmentMode is no longer accepted.
71 * $wgPasswordSenderName - This setting, ignored since 1.23 by MediaWiki and
72 most extensions, is no longer set. Instead, you can modify the system
73 message `emailsender`.
74 * $wgTidyConfig – The experimental Html5Internal and Html5Depurate tidy drivers
75 were removed. RemexHtml, which is the default, should be used instead.
76 * (T181318) The $wgStyleVersion setting and its appendage to various script and
77 style URLs in OutputPage, deprecated in 1.31, was removed.
78 * (T140807) The wgResourceLoaderLESSImportPaths configuration option was removed
79 from ResourceLoader. Instead, use `@import` statements in LESS to import
80 files directly from nearby directories within the same project.
81 * (T140804) The wgResourceLoaderLESSVars configuration option, deprecated
82 since 1.30, was removed. Instead, to expose variables from PHP to LESS, use
83 the ResourceLoaderModule::getLessVars() method.
84 * $wgResourceLoaderValidateStaticJS – This setting, unused since MediaWiki 1.18,
85 was removed.
86 * Two temporary variables for deploying the feature of filters on change lists,
87 $wgStructuredChangeFiltersShowPreference introduced in MediaWiki 1.30 and
88 $wgStructuredChangeFiltersOnWatchlist in 1.31, were removed.
89
90 === New features in 1.32 ===
91 * (T112474) Generalized the ResourceLoader mechanism for overriding modules
92 using a particular page during edit previews.
93 * (T12331) You can now log page creation events by setting $wgPageCreationLog
94 to true.
95 * Added 'ApiParseMakeOutputPage' hook.
96 * (T174313) Added checkbox on Special:ListUsers to display only users in
97 temporary user groups.
98 * (T152462) A cookie can now be set when an IP user is blocked to track that
99 user if they move to a new IP address. This is disabled by default.
100 * (T194950) Added 'ApiMaxLagInfo' hook.
101 * SpecialPage::checkLoginSecurityLevel() will now preserve POST data when
102 reauthenticating.
103 * FormSpecialPage::execute() will now call checkLoginSecurityLevel() if
104 getLoginSecurityLevel() returns non-false.
105 * The 'ImageBeforeProduceHTML' hook is now passed three new parameters, $parser,
106 &$query and &$widthOption, allowing extensions even finer control over the
107 resulting HTML code.
108 * Added new 'ArticleShowPatrolFooter' hook, which allows extensions to determine
109 if the [mark as patrolled] link should be shown at the footer of patrollable
110 pages.
111 * The array of hidden options ($opts) passed to the 'SpecialSearchPowerBox' hook
112 is now passed by reference, allowing extensions to modify or even unset it.
113 * Added new 'OutputPageAfterGetHeadLinksArray' hook, allowing extensions to
114 modify the return value of OutputPage#getHeadLinksArray in order to add,
115 remove or otherwise alter the elements to be output in the page <head>.
116 * (T28934) The 'HistoryPageToolLinks' hook allows extensions to append
117 additional links to the subtitle of a history page.
118 * The 'GetLinkColours' hook now receives an additional $title parameter,
119 the Title object of the page being parsed, on which the links will be shown.
120 * (T194731) DifferenceEngine supports multiple slots. Added SlotDiffRenderer to
121 render diffs between two Content objects, and DifferenceEngine::setRevisions()
122 to render diffs between two custom (potentially multi-content) revisions.
123 Added GetSlotDiffRenderer hook which works like GetDifferenceEngine for slots.
124 * Added a temporary action=mcrundo to the web UI, as the normal undo logic
125 can't yet handle MCR and deadlines are forcing is to put off fixing that.
126 This action should be considered deprecated and should not be used directly.
127 * Extensions overriding ContentHandler::getUndoContent() will need to be
128 updated for the changed method signature.
129 * Added a new hook, 'UserGetRightsRemove', which can be used to remove rights
130 from user. Unlike the 'UserGetRights' it will ensure that removed rights
131 will not be reinserted.
132
133 === External library changes in 1.32 ===
134
135 ==== New external libraries ====
136 * Added wikimedia/xmp-reader 0.6.0.
137 * Added Add pear/Net_SMTP 1.8.0.
138 * …
139
140 ==== Changed external libraries ====
141 * Updated qunitjs from 2.4.0 to 2.6.2.
142 * Updated wikimedia/scoped-callback from 1.0.0 to 2.0.0.
143 ** ScopedCallback objects can no longer be serialized.
144 * Updated wikimedia/wrappedstring from 2.3.0 to 3.0.1.
145 * Updated mediawiki/mediawiki-codesniffer from v20.0.0 to v21.0.0.
146 * Updated composer/spdx-licenses from 1.3.0 to 1.4.0.
147 * Updated jquery.i18n from 1.0.4 to 1.0.5.
148 * Updated wikimedia/timestamp from 1.0.0 to 2.2.0.
149 * Updated wikimedia/remex-html from 1.0.3 to 2.0.0.
150 * Updated jquery from v3.2.1 to v3.3.1.
151
152 ==== Removed external libraries ====
153 * pear/mail_mime-decode was removed.
154 * …
155
156 === Bug fixes in 1.32 ===
157 * SpecialPage::execute() will now only call checkLoginSecurityLevel() if
158 getLoginSecurityLevel() returns non-false.
159 * (T43720, T46197) Improved page display title handling for category pages
160 * (T65080) Fixed resetting options of some types via API action=options.
161
162 === Action API changes in 1.32 ===
163 * Added templated parameters.
164 * A module can define a templated parameter like "{fruit}-quantity", where
165 the actual parameters recognized correspond to the values of a multi-valued
166 parameter. Then clients can make requests like
167 "fruits=apples|bananas&apples-quantity=1&bananas-quantity=5".
168 * action=paraminfo will return templated parameter definitions separately
169 from normal parameters. All parameter definitions now include an "index"
170 key to allow clients to maintain parameter ordering when merging normal and
171 templated parameters.
172 * It is now an error to submit too many values for a multi-valued parameter.
173 This has generated a warning since MediaWiki 1.14.
174 * Assertion failures from the 'assert' and 'assertuser' parameters will no
175 longer use the action module's custom response format, for the few modules
176 that use custom formatters that handle errors.
177 * (T198935) User list preferences such as `email-blacklist` and similar
178 extension preferences are no longer represented as arrays when returned by
179 action=query&meta=userinfo&uiprop=options.
180 * 'missingparam' errors will now use the prefixed parameter name in the code
181 and error text, e.g. "noxxfoo" and "The 'xxfoo' parameter must be set" rather
182 than "nofoo" and "The 'foo' parameter must be set".
183 * action=query&prop=revisions now takes a 'rvslots' parameter to indicate the
184 multi-content revision slots for which content should be returned. It also
185 has a new rvprop, 'roles', to indicate which roles have slots. A deprecation
186 warning will be issued if rvprop=content or rvprop=contentmodel are used
187 without rvslots.
188 * The rvcontentformat parameter to action=query&prop=revisions has been
189 deprecated. Clients should be prepared to deal with the default format for
190 relevant models.
191 * Use of the deprecated parameters rvexpandtemplates, rvgeneratexml, rvparse,
192 rvdiffto, rvdifftotext, rvdifftotextpst, rvcontentformat, or the deprecated
193 rvprop=parsetree is forbidden with the new 'rvslots' parameter.
194 * action=query&prop=deletedrevisions, action=query&list=allrevisions, and
195 action=query&list=alldeletedrevisions are changed similarly to
196 &prop=revisions (see the three previous items).
197 * (T174032) action=compare now supports multi-content revisions.
198 * It has a 'slots' parameter to select diffing of individual slots. The
199 default behavior is to return one combined diff.
200 * The 'fromtext', 'fromsection', 'fromcontentmodel', 'fromcontentformat',
201 'totext', 'tosection', 'tocontentmodel', and 'tocontentformat' parameters
202 are deprecated. Specify the new 'fromslots' and 'toslots' to identify which
203 slots have text supplied and the corresponding templated parameters for
204 each slot.
205 * The behavior of 'fromsection' and 'tosection' of extracting one section's
206 content is not being preserved. 'fromsection-{slot}' and 'tosection-{slot}'
207 instead expand the given text as if for a section edit. This effectively
208 declines T183823 in favor of T185723.
209 * (T198214) The 'disabletidy' parameter to action=parse has been
210 deprecated; untidy output will not be supported by future wikitext
211 parsers.
212 * Added intestactionsdetail to action=query&prop=info to allow retrieving the
213 reasons an action is not allowed.
214 * Deprecated action=query&prop=info inprop=readable in favor of
215 intestactions=read.
216
217 === Action API internal changes in 1.32 ===
218 * Added 'ApiParseMakeOutputPage' hook.
219 * Parameter names may no longer contain '{' or '}', as these are now used for
220 templated parameters.
221 * (T194950) Added 'ApiMaxLagInfo' hook.
222 * The following methods now take a RevisionRecord rather than a Revision. No
223 external callers are known.
224 * ApiFeedContributions::feedItemAuthor()
225 * ApiFeedContributions::feedItemDesc()
226 * ApiQueryRevisionsBase::extractRevisionInfo()
227 * The following deprecated methods have been removed:
228 * ApiBase::profileIn() (deprecated in 1.25)
229 * ApiBase::profileOut() (deprecated in 1.25)
230 * ApiBase::safeProfileOut() (deprecated in 1.25)
231 * ApiBase::profileDBIn() (deprecated in 1.25)
232 * ApiBase::profileDBOut() (deprecated in 1.25)
233 * ApiBase::dieUsage() (deprecated in 1.29)
234 * ApiBase::dieUsageMsg() (deprecated in 1.29)
235 * ApiBase::dieUsageMsgOrDebug() (deprecated in 1.29)
236 * ApiBase::getErrorFromStatus() (deprecated in 1.29)
237 * ApiBase::parseMsg() (deprecated in 1.29)
238 * ApiBase::setWarning() (deprecated in 1.29)
239 * ApiPageSet::getInvalidTitles() (deprecated in 1.26)
240 * ApiQueryLogEvents::addLogParams() (deprecated in 1.25)
241 * ApiUsageException::getCodeString() (deprecated in 1.29)
242 * ApiUsageException::getMessageArray() (deprecated in 1.29)
243 * Class UsageException, deprecated in 1.29, has been removed.
244 * ApiErrorFormatter: Added getFormat() and newWithFormat(). In particular, you
245 can now easily test $formatter->getFormat() === 'bc', and then call
246 $formatter->newWithFormat( 'plaintext' ) to get a non-BC formatter.
247
248 === Languages updated in 1.32 ===
249 MediaWiki supports over 350 languages. Many localisations are updated regularly.
250 Below only new and removed languages are listed, as well as changes to languages
251 because of Phabricator reports.
252
253 * (T193566) Added language support for Ambonese Malay (abs).
254 * (T194047) Added language support for Shawiya, Latin script (shy-latn).
255 * (T195940) Added language support for Batak Mandailing (btm).
256 * (T137491) Added language support for Standard Moroccan Amazigh (zgh).
257 * (T198132) Added language support for Manipuri (mni).
258 * (T201276) Added language support for Western Armenian (hyw).
259 * (T201583) Added language support for Mon (mnw).
260
261 === Breaking changes in 1.32 ===
262 * $wgRequestTime, deprecated in 1.25, was removed. Use
263 $_SERVER['REQUEST_TIME_FLOAT'] or WebRequest::getElapsedTime() instead.
264 * The MediaWikiI18N class, deprecated in 1.31, was removed.
265 * QuickTemplate::setTranslator(), deprecated in 1.31, was removed. Use
266 Skin::msg() instead.
267 * wfInitShellLocale(), deprecated in 1.30, was removed.
268 * wfShellExecDisabled(), deprecated in 1.30, was removed.
269 * The type string for the parameter $lang of DateFormatter::getInstance,
270 deprecated in 1.31, was removed.
271 * The EDIT_TOKEN_SUFFIX constant deprecated in 1.27, was removed. Use
272 MediaWiki\Session\Token::SUFFIX instead.
273 * EditPage::isOouiEnabled() deprecated in 1.30, was removed.
274 * mw.util.wikiGetlink(), deprecated in 1.23, was removed. Use mw.util.getUrl()
275 instead.
276 * (T61113) The following methods and constants from the Revision class, which
277 were deprecated in 1.25, have now been removed:
278 * Revision::getRawUser()
279 * Revision::getRawUserText()
280 * Revision::getRawComment()
281 * window.gM() from mediawiki.jqueryMsg, deprecated in 1.23, was removed. Use
282 mw.msg() or mw.message() instead.
283 * mw.util.escapeId(), deprecated in 1.30, was removed. Use
284 mw.util.escapeIdForAttribute or mw.util.escapeIdForLink instead.
285 * mw.util.updateTooltipAccessKeys(), deprecated in 1.24, was removed. Use
286 jquery.accessKeyLabel instead.
287 * The SqlDataUpdate class, deprecated in 1.28, has been removed.
288 * The Html5Internal and Html5Depurate tidy driver classes were removed, along
289 with the Balancer tidy implementation. Both implementations were experimental,
290 and were replaced by RemexHtml.
291 * (T179624) Job::insert() and ::batchInsert(), deprecated in 1.21, were both
292 removed. Use JobQueueGroup::singleton()->push() instead.
293 * The jquery.footHovzer module, for mediawiki.debug, was removed.
294 * The es5-shim module, empty and deprecated since 1.29, was removed.
295 * the dom-level2-shim module, empty and deprecated since 1.29, was removed.
296 * the json module, empty and deprecated since 1.29, was removed.
297 * The mediawiki.widgets.visibleByteLimit module alias, deprecated in 1.32, was
298 removed. Use mediawiki.widgets.visibleLengthLimit instead.
299 * The jquery.farbtastic module, unused since 1.18, was removed.
300 * The 'jquery.expandableField' module, unused since 1.22, was removed.
301 * The hooks 'PreferencesFormPreSave' and 'PreferencesGetLegend' may provide
302 any HTMLForm object rather than PreferencesForm.
303 * The non namespaced TimestampException class, deprecated in 1.29, was removed.
304 Use Wikimedia\Timestamp\TimestampException instead.
305 * The global functions codepointToUtf8, hexSequenceToUtf8, utf8ToHexSequence,
306 utf8ToCodepoint, and escapeSingleString (deprecated in 1.25) were removed.
307 The UtfNormal\Utils class from the utfnormal library should be used instead.
308 * The deprecated UTF8_ and UNICODE_ constants were removed. The class constants
309 from the UtfNormal\Constants class from the utfnormal library should be used
310 * The protected methods PHPSessionHandler::returnSuccess() and returnFailure(),
311 only needed for PHP5 compatibility, have been removed. It now uses the boolean
312 values `true` and `false` respectively.
313 * The $parserMemc global and wfGetParserCacheStorage(), deprecated since 1.30,
314 were removed. Use the ParserCache class instead.
315 * ScopedCallback (deprecated in 1.28) was removed. Use Wikimedia\ScopedCallback
316 instead.
317 * Support for ResourceLoaderModule::getModifiedTime() and getModifiedHash(),
318 deprecated since 1.26, was removed. Use getDefinitionSummary() instead.
319 * (T195256) Skins are recommended not to rely on JavaScript for the "mw-jump"
320 and "jump-to-nav" accessibility links. To this end, the "jquery.mw-jump"
321 is no longer loaded by default. The Vector and MonoBook skins have made a
322 minor change to implement the toggle feature with CSS instead. To restore
323 prior functionality, either explicitly load "jquery.mw-jump" in your skin
324 or refer to T195256 for details on how to make the same change.
325 * Hook 'EditPageBeforeEditChecks' was removed;
326 use 'EditPageGetCheckboxesDefinition' instead.
327 * Linker::getLinkColour() and DummyLinker::getLinkColour(), deprecated since
328 1.28, were removed. LinkRenderer::getLinkClasses() should be used instead.
329 * Wikimedia\Rdbms\LoadBalancer::getLaggedSlaveMode(), deprecated in 1.28, has
330 been removed. Use Wikimedia\Rdbms\LoadBalancer::getLaggedReplicaMode()
331 instead.
332 * mw.widgets.CategoryMultiselectWidget now uses TagMultiselectWidget instead of
333 CapsuleMultiselectWidget. The following methods may no longer be used:
334 * setItemsFromData: Use setValue instead
335 * getItemsData: Use getItems instead and get the data property
336 * Two OutputPage methods, addMetadataLink() and getMetadataAttribute(), were
337 removed. Use addLink() instead.
338 * Another two OutputPage methods, setPageTitleActionText() and
339 getPageTitleActionText(), were removed. They did nothing since 1.15 (almost
340 ten years). Use setHTMLTitle() directly.
341 * The return value of OutputPage::adaptCdnTTL() has been removed. The
342 value returned was misleading and probably not what any caller would
343 have wanted.
344 * All MagicWord static member variables have been removed. Use appropriate
345 hooks or MagicWordFactory methods instead.
346 * MagicWord::clearCache() has been removed. Instead, create a new
347 MagicWordFactory, such as by calling
348 resetServiceForTesting( 'MagicWordFactory' ) on a MediaWikiServices.
349 * mw.util.init() has been removed. This function is not needed anymore and was
350 a no-op function since 1.30.
351 * SpecialPageFactory::resetList() is a no-op. Call overrideMwServices()
352 instead.
353 * MediaWiki no longer supports a StartProfiler.php file. Instead, you can set
354 $wgProfiler and $wgEnableProfileInfo.
355 * The mw.loader.addSource() is now considered a private method, and no longer
356 supports the `id, url` signature. Use the `Object` parameter instead.
357 * The backwards-compatibility code in HTMLForm to add a drop-down control to an
358 option that is not set to be a drop-down if the "mw-chosen" class is present,
359 is now removed.
360 * Several collations were removed. They were workarounds for bugs in the ICU
361 library and they are no longer needed (as of ICU 57.1):
362 * 'uppercase-se' (NorthernSamiUppercaseCollation) - use 'uca-se' instead
363 * 'xx-uca-et' (CollationEt) - use 'uca-et' instead
364 * 'xx-uca-fa' (CollationFa) - use 'uca-fa' instead
365 * LanguageCode::bcp47() now always returns a valid BCP 47 code. This means
366 that some MediaWiki-specific language codes, such as `simple`, are mapped
367 into valid BCP 47 codes (eg `en-simple`).
368 * The hooks 'SpecialRecentChangesFilters' & 'SpecialWatchlistFilters' deprecated
369 in 1.23 were removed. Instead, use 'ChangesListSpecialPageStructuredFilters'.
370 The ChangesListSpecialPage code for these legacy hooks, and their use in
371 SpecialRecentchanges.php and SpecialWatchlist, was also removed:
372 * ChangesListSpecialPage->getCustomFilters()
373 * ChangesListSpecialPage->getFilterGroupDefinitionFromLegacyCustomFilters()
374 * ChangesListSpecialPage::customFilters
375 * The global function wfUseMW, deprecated since 1.26, has now been removed. Use
376 the "requires" property of static extension registration instead.
377 * $wgSpecialPages no longer accepts array syntax, deprecated since 1.18.
378 * The MailAddress constructor can no longer be called with a User object,
379 behaviour which has been deprecated since 1.24.
380 * LBFactory, deprecated since 1.28, has been removed. Instead, use
381 Wikimedia\Rdbms\LBFactory.
382 * The MimeMagic class, deprecated since 1.28 has been removed. Get a
383 MimeAnalyzer instance from MediaWikiServices instead.
384 * The '--tidy' option to maintenance/parse.php has been removed. Tidying
385 the output is now the default. Use '--no-tidy' to bypass the tidy
386 phase.
387 * The global function wfErrorLog, deprecated since 1.25, has now been removed.
388 Use MWLoggerLegacyLogger::emit or UDPTransport.
389 * The hooks 'SpecialRecentChangesQuery' & 'SpecialWatchlistQuery', deprecated in
390 1.23, were removed. Instead, use ChangesListSpecialPageStructuredFilters or
391 ChangesListSpecialPageQuery.
392 * The global function wfUsePHP, deprecated since 1.30, has now been removed. To
393 assert a newer version of PHP than MediaWiki does, use extension registration.
394 * The hook 'ChangesListSpecialPageFilters', deprecated in 1.29, has now been
395 removed. Use the 'ChangesListSpecialPageStructuredFilters' hook instead.
396 * DeferredUpdates::setImmediateMode(), deprecated since 1.29, has been removed.
397 * File / MediaHandler::getStreamHeaders(), deprecated since 1.30, was removed.
398 * The hook 'DoEditSectionLink', deprecated since 1.25, has been removed. Use
399 the hook 'SkinEditSectionLinks' instead.
400 * The hook 'UserGetImplicitGroups', deprecated since 1.25, has been removed.
401 * The global function wfRunHooks, deprecated since 1.25, has now been removed.
402 Use Hooks::run().
403 * The hook 'UnknownAction', deprecated since 1.19, has now been removed.
404 * The hook 'ParserLimitReport', deprecated since 1.22, has been removed. Use
405 the hooks 'ParserLimitReportPrepare' and 'ParserLimitReportFormat' instead.
406 * The following deprecated API methods have been removed:
407 * ApiBase::profileIn() (deprecated in 1.25)
408 * ApiBase::profileOut() (deprecated in 1.25)
409 * ApiBase::safeProfileOut() (deprecated in 1.25)
410 * ApiBase::profileDBIn() (deprecated in 1.25)
411 * ApiBase::profileDBOut() (deprecated in 1.25)
412 * ApiBase::dieUsage() (deprecated in 1.29)
413 * ApiBase::dieUsageMsg() (deprecated in 1.29)
414 * ApiBase::dieUsageMsgOrDebug() (deprecated in 1.29)
415 * ApiBase::getErrorFromStatus() (deprecated in 1.29)
416 * ApiBase::parseMsg() (deprecated in 1.29)
417 * ApiBase::setWarning() (deprecated in 1.29)
418 * ApiPageSet::getInvalidTitles() (deprecated in 1.26)
419 * ApiQueryLogEvents::addLogParams() (deprecated in 1.25)
420 * ApiUsageException::getCodeString() (deprecated in 1.29)
421 * ApiUsageException::getMessageArray() (deprecated in 1.29)
422 * Class UsageException, deprecated in 1.29, has been removed.
423
424 === Deprecations in 1.32 ===
425 * HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit
426 button is already marked as progressive.
427 * Skin::setupSkinUserCss() is deprecated. Adding of modules to load
428 has been centralised to Skin::getDefaultModules(), which is now capable
429 of queueing style modules as well.
430 * OutputPage::addModuleScripts() and ParserOutput::addModuleScripts are
431 deprecated. Use addModules() instead.
432 * Overriding SearchEngine::{searchText,searchTitle,searchArchiveTitle}
433 in extending classes is deprecated. Extend related doSearch* methods
434 instead.
435 * The following 'mediawiki.api' plugin modules were merged into mediawiki.api
436 and deprecated: mediawiki.api.category, mediawiki.api.edit,
437 mediawiki.api.login, mediawiki.api.options, mediawiki.api.parse,
438 mediawiki.api.upload, mediawiki.api.user, mediawiki.api.watch,
439 mediawiki.api.messages, and mediawiki.api.rollback.
440 * ApiBase::truncateArray() is deprecated. No replacement, as nothing is known
441 to use it.
442 * WatchAction::getUnwatchToken is deprecated. Use WatchAction::getWatchToken
443 with the 'unwatch' action parameter instead.
444 * IcuCollation::getICUVersion() is deprecated, as you can just use the PHP
445 constant INTL_ICU_VERSION directly in all versions that MediaWiki supports.
446 * Parser::fetchFile() is deprecated. Use ::fetchFileAndTitle() instead.
447 * The ApiQueryContributions class has been renamed to ApiQueryUserContribs.
448 * The XMPInfo, XMPReader, and XMPValidate classes have been deprecated in favor
449 of the namespaced classes provided by the wikimedia/xmp-reader library.
450 * SearchResultSet::{next,rewind} are deprecated. Calling code should
451 use foreach on the SearchResultSet, or the extractResults method. Extending
452 code should override extractResults.
453 * Instantiating SearchResultSet directly is deprecated. SearchEngine
454 implementations must subclass SearchResultSet for their purposes.
455 * SearchResult::setExtensionData argument has been changed from accepting an
456 array to accepting a Closure that returns the array when called.
457 * Class CryptRand, everything in MWCryptRand except generateHex() and function
458 MediaWikiServices::getCryptRand() are deprecated, use random_bytes() to
459 generate cryptographically secure random byte sequences.
460 * Parser::getConverterLanguage() is deprecated. Use ::getTargetLanguage()
461 instead.
462 * Language::markNoConversion() is deprecated. It confused readers because
463 it had unexpected behavior (only marking text if it looked like a URL)
464 and was only used in a single place in the code. Use
465 LanguageConverter::markNoConversion() instead.
466 * (T197492) Language::truncate() was soft deprecated in 1.31 and is
467 hard deprecated in this release. It has been split into two similar
468 methods, Language::truncateForVisual() and Language::truncateForDatabase(),
469 which measure length in characters and bytes, respectively. Use
470 Language::truncateForVisual() when possible to provide equity to users
471 of multibyte scripts.
472 * (T176526) EditPage::getContextTitle() falling back to $wgTitle when the
473 context title is unset is now deprecated; anything creating an EditPage
474 instance should set the context title via ::setContextTitle().
475 * The 'jquery.hidpi' module (polyfill for IMG srcset) is deprecated.
476 * ResourceLoaderStartUpModule::getStartupModules() and ::getLegacyModules()
477 are deprecated. These concepts are obsolete and have no replacement.
478 * String type for $lang of DifferenceEngine::setTextLanguage is deprecated.
479 * The following methods of OutputPage are now deprecated in favour
480 of using showFatalError directly: OutputPage::showFileDeleteError()
481 OutputPage::showFileNotFoundError(), OutputPage::showFileRenameError()
482 OutputPage::showFileCopyError() and OutputPage::showUnexpectedValueError().
483 * The Replacer, DoubleReplacer, HashtableReplacer, and RegexlikeReplacer
484 classes are now deprecated. Use a Closure instead.
485 * (T194263) ContentHandler::makeParserOptions() is deprecated. Use
486 WikiPage::makeParserOptions() or ParserOptions::newCanonical() instead.
487 * (T100681) Use of the Parsoid v1 API with the VirtualRESTService, deprecated in
488 MediaWiki 1.26, is now hard-deprecated. All known clients were converted to
489 the Parsoid v3 API in May 2015.
490 * $input is deprecated in hook 'LogEventsListGetExtraInputs'. Use
491 $formDescriptor instead.
492 * SearchEngine::transformSearchTerm( $term ) should no longer be called prior
493 to running searchText. This method was mainly implemented to support the
494 'prefix' URI param in SpecialSearch, but there are no reasons to expose this
495 logic as it should be handled internally by SearchEngine implementations
496 supporting this feature. SearchEngine implementations should no longer
497 override this methods.
498 * SearchEngine::replacePrefixes( $query ) should no longer be called prior
499 to running searchText/searchTitle.
500 * (T199657) Messages for $wgFilterLogTypes labels should be no longer be in the
501 'log-show-hide-[type]' format. Instead use 'logeventslist-[type]-log'.
502 * Global functions wfArrayFilter() and wfArrayFilterByKey() are deprecated.
503 use array_filter() directly.
504 * The $wgShowSQLErrors global is deprecated and nonfunctional.
505 Set $wgShowExceptionDetails and/or $wgShowHostnames instead.
506 * The $wgShowDBErrorBacktrace global is deprecated and nonfunctional.
507 Set $wgShowExceptionDetails instead.
508 * Public access to the DifferenceEngine properties mOldid, mNewid, mOldRev,
509 mNewRev, mOldPage, mNewPage, mOldContent, mNewContent, mRevisionsLoaded,
510 mTextLoaded and mCacheHit is deprecated. Use getOldid() / getNewid() /
511 getOldRevision() / getNewRevision() for the first four (note that the
512 revision ones return a RevisionRecord, not a Revision), do your own lookup
513 for page/content.
514 * The $wgExternalDiffEngine value 'wikidiff2' is deprecated. To use wikidiff2
515 just enable the PHP extension, and it will be autodetected.
516 * (T194731) DifferenceEngine properties mOldContent and mNewContent and methods
517 setContent(), generateContentDiffBody(), generateTextDiffBody() and textDiff()
518 are deprecated. To interact with a single slot, use a SlotDiffRenderer (and
519 subclass it to customize diff rendering); to diff custom (e.g. unsaved)
520 content, use setRevisions(). Subclassing DifferenceEngine should only be done
521 to customize page-level diff properties (such as the navigation header).
522 * The wfUseMW function, soft-deprecated in 1.26, is now hard deprecated.
523 * All MagicWord static methods are now deprecated. Use the MagicWordFactory
524 methods instead.
525 * PasswordFactory::init is deprecated. To get a password factory with the
526 standard configuration, use MediaWikiServices::getPasswordFactory.
527 * $wgContLang is deprecated, use MediaWikiServices::getContentLanguage()
528 instead.
529 * $wgParser is deprecated, use MediaWikiServices::getParser() instead.
530 * wfGetMainCache() is deprecated, use ObjectCache::getLocalClusterInstance()
531 instead.
532 * wfGetCache() is deprecated, use ObjectCache::getInstance() instead.
533 * All SpecialPageFactory static methods are deprecated. Instead, call the
534 methods on a SpecialPageFactory instance, which may be obtained from
535 MediaWikiServices.
536 * mw.user.stickyRandomId was renamed to the more explicit
537 mw.user.getPageviewToken to better capture its function.
538 * Passing Revision objects to ContentHandler::getUndoContent() is deprecated,
539 Content object should be passed instead.
540 * (T197179) Parameters 'notice', 'notice-messages', 'notice-message',
541 previously used by OOUI HTMLForm fields, are now deprecated. Use
542 'help', 'help-message', 'help-messages' instead.
543 * (T197179) HTMLFormField::getNotices() is now deprecated.
544 * The jquery.localize module is now deprecated. Use jquery.i18n instead.
545 * The SecondaryDataUpdates hook was deprecated in favor of RevisionDataUpdates,
546 or overriding ContentHandler::getSecondaryDataUpdates (T194038).
547 * The WikiPageDeletionUpdates hook was deprecated in favor of
548 PageDeletionDataUpdates, or overriding ContentHandler::getDeletionDataUpdates
549 (T194038).
550 * Content::getSecondaryDataUpdates has been deprecated in favor of
551 ContentHandler::getSecondaryDataUpdates() for overriding by extensions
552 (T194038).
553 Application logic should call WikiPage::doSecondaryDataUpdates() (T194037).
554 * Content::getDeletionUpdates has been deprecated in favor of
555 ContentHandler::getDeletionUpdates() for overriding by extensions (T194038).
556 Application logic should call WikiPage::doSecondaryDataUpdates() (T194037).
557 * (T198214) Old Tidy-related configuration settings, which were soft-deprecated
558 in MediaWiki 1.26, have now been hard deprecated. This affects $wgUseTidy,
559 $wgTidyBin, $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy. Use
560 $wgTidyConfig instead.
561 * All Tidy configurations other than Remex have been hard deprecated;
562 future parsers will not emit compatible output for these configurations.
563 * (T198214) OutputPage::addWikiText(), OutputPage::addWikiTextWithTitle(),
564 and OutputPage::addWikiTextTitle() have been deprecated, since they
565 can result in untidy output. In addition OutputPage::addWikiTextTidy()
566 and OutputPage::addWikiTextTitleTidy() was deprecated to make naming new
567 methods consistent. Use OutputPage::addWikiTextAsInterface() or
568 OutputPage::addWikiTextAsContent() instead, which ensures the output is
569 tidy and clarifies whether content-language specific postprocessing should
570 be done on the text.
571 * QuickTemplate::msgHtml() and BaseTemplate::msgHtml() have been deprecated
572 as they promote bad practises. I18n messages should always be properly
573 escaped.
574 * Skin::getDynamicStylesheetQuery() has been deprecated. It always
575 returns action=raw&ctype=text/css which callers should use directly.
576 * Class LegacyFormatter is deprecated.
577 * Use of CommentStore::insertWithTempTable() with 'img_description' is
578 deprecated. Use CommentStore::insert() instead.
579 * Language::setCode is deprecated as public function. Use Language::factory
580 to create a new Language object with a different language code.
581 * Several classes have been moved from the MediaWiki\Storage\ namespace to the
582 MediaWiki\Revision\ namespace. The old class names are aliased for
583 compatibility, but are deprecated. Classes are IncompleteRevisionException,
584 MutableRevisionRecord, MutableRevisionSlots, RevisionAccessException,
585 RevisionArchiveRecord, RevisionFactory, RevisionLookup, RevisionRecord,
586 RevisionSlots, RevisionStore, RevisionStoreRecord, SlotRecord, and
587 SuppressedDataException.
588 * When using OOUI HTMLForm containing an 'info' field which uses the 'rawrow'
589 option, it is now deprecated to give its contents (the 'default' option)
590 as a string. They should be given as a OOUI\FieldLayout object instead.
591 Notably, this affects fields defined in the 'GetPreferences' hook, because
592 Special:Preferences uses an OOUI form now. (If possible, don't use 'rawrow'.)
593 * In Skin::doEditSectionLink omitting the parameters $tooltip and $lang is
594 deprecated. For the $lang parameter, types other than Language are
595 deprecated.
596 * The $wgUseKeyHeader configuration option and the
597 OutputPage::getKeyHeader() method have been deprecated; the relevant
598 draft IETF spec expired without becoming a standard.
599 * Deprecated API action=query&prop=info inprop=readable in favor of
600 intestactions=read.
601
602 === Other changes in 1.32 ===
603 * (T198811) The following tables have had their UNIQUE indexes turned into
604 proper PRIMARY KEYs for increased maintainability: interwiki, page_props,
605 protected_titles and site_identifiers.
606 * OOUI HTMLForm will now display help text inline after the input field,
607 rather than in a popup. Previous behavior can be restored by using
608 `'help-inline' => false`.
609 * The archive table's ar_rev_id field is now unique.
610 * Special:BotPasswords now requires reauthentication.
611 * (T174023) Multi-Content Revision (MCR) capabilities were introduced into the
612 storage layer and have basic support for display. No user interface exists
613 yet for creating or managing content in slots beides the main slot. See
614 <https://www.mediawiki.org/wiki/Multi-Content_Revisions> for more
615 information.
616 * The image_comment_temp database table is merged into the image table and
617 deprecated. Since access should be mediated by the CommentStore class, this
618 change shouldn't affect external code.
619 * (T206147) Database::close() will no longer commit any open transactions.
620
621 == Compatibility ==
622 MediaWiki 1.32 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is
623 supported, it is generally advised to use PHP 7.0.0 or later for long term
624 support.
625
626 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
627 but support for them is somewhat less mature. There is experimental support for
628 Oracle and Microsoft SQL Server.
629
630 The supported versions are:
631
632 * MySQL 5.5.8 or later
633 * PostgreSQL 9.2 or later
634 * SQLite 3.3.7 or later
635 * Oracle 9.0.1 or later
636 * Microsoft SQL Server 2005 (9.00.1399)
637
638 == Upgrading ==
639 1.32 has several database changes since 1.31, and will not work without schema
640 updates. Note that due to changes to some very large tables like the revision
641 table, the schema update may take quite long (minutes on a medium sized site,
642 many hours on a large site).
643
644 Don't forget to always back up your database before upgrading!
645
646 See the file UPGRADE for more detailed upgrade instructions, including
647 important information when upgrading from versions prior to 1.11.
648
649 For notes on 1.31.x and older releases, see HISTORY.
650
651 == Online documentation ==
652 Documentation for both end-users and site administrators is available on
653 MediaWiki.org, and is covered under the GNU Free Documentation License (except
654 for pages that explicitly state that their contents are in the public domain):
655
656 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
657
658 == Mailing list ==
659 A mailing list is available for MediaWiki user support and discussion:
660
661 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
662
663 A low-traffic announcements-only list is also available:
664
665 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
666
667 It's highly recommended that you sign up for one of these lists if you're
668 going to run a public MediaWiki, so you can be notified of security fixes.
669
670 == IRC help ==
671 There's usually someone online in #mediawiki on irc.freenode.net.