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