Update RELEASE-NOTES-1.34
[lhc/web/wiklou.git] / RELEASE-NOTES-1.34
1 = MediaWiki 1.34 =
2
3 THIS IS NOT A RELEASE YET
4
5 MediaWiki 1.34 is an pre-release testing branch, and is not recommended
6 for use in production.
7
8 === Changes since MediaWiki 1.34.0-rc.1 ===
9 * $wgDiffEngine (T237049) – This configuration can be used to specify which
10 difference engine to use. MediaWiki continues to default to automatically
11 choosing the first of $wgExternalDiffEngine, wikidiff2, or php that is
12 usable.
13 * (T231866) SqlBlobStore no longer needs Language object.
14 * (T236735) WikiExporter: Remove unnecessary check for SCHEMA_COMPAT_WRITE_OLD
15 flag.
16 * (T231673) Set MCR migration stage to SCHEMA_COMPAT_NEW.
17 * (T229601) Make sure DBLoadBalancerFactory service is not disabled.
18 * (T232866) Fix support for HTTP/2 in MultiHttpClient.
19 * (T231866) LocalisationCache: Don't instantiate ResourceLoader.
20 * (T227461) Stop calling deprecated Redis delete functions.
21 * (T239561) Mark options as requiring parameters in addSite.php.
22 * (T232866) Mimic CURLOPT_POST in GuzzleHttpRequest.
23
24 == MediaWiki 1.34.0-rc.1 ==
25
26 === Changes since MediaWiki 1.34.0-rc.0 ===
27 * (T231742) rdbms: Restore debug toolbar "Queries" feature.
28 * (T231366) The ProfilerOutputDb class, 'profiling' table, and profileinfo.php
29 entry point had been deprecated.
30 * (T234361) localisation: Add debug message for backend of MessageCache.
31 * (T234361) session: Add debug message for the used store class.
32 * (T235559) Fix example Kask configuration in RESTBagOStuff class comment.
33 * (T235137) Don't apply styling for Special:Contributions on other pages.
34 * Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0 (dev-only).
35 * (T219604) The "jquery.ui.*" and "jquery.effects.*" modules are now
36 deprecated as aliases for the "jquery.ui" module.
37 * (T235392) Deprecate setting Parser::mTitle to null.
38 * Supporting commits for T235392 were also backported to prevent divergence
39 from master (MediaWiki 1.35).
40 * (T234581) The 'jquery.tabIndex' module is deprecated.
41 * Fix docs for GetUserBlock hooks.
42 * Parser: Hard deprecate getConverterLanguage.
43 * (T236810) A number of public methods of Parser were exposed only for
44 historical reasons and have been deprecated: doMagicLinks,
45 doDoubleUnderscore, doHeadings, doAllQuotes, replaceExternalLinks,
46 replaceInternalLinks, replaceInternalLinks2, getVariableValue,
47 initialiseVariables, formatHeadings, testPst, testPreprocess, testSrvus,
48 areSubpagesAllowed, maybeDoSubpageLink, splitWhitespace, createAssocArgs,
49 armorLinks, makeKnownLinkHolder, getImageParams, parseLinkParameter,
50 stripAltText, replaceLinkHolders, replaceLinkHoldersText, armorLinks,
51 makeKnownLinkHolder, getImageParams, parseLinkParameter, stripAltText.
52 * (T30798) $wgServer must now always be set in LocalSettings.php. This is most
53 likely the case already for any wiki installed after 1.18. The autodetection
54 system was informally deprecated since 1.18 and vulnerable to cache poisoning
55 attacks. Older wikis may need to update their LocalSettings.php file.
56 * (T232169) Hard deprecate $wgSysopEmailBans.
57 * (T236628) Fix for ArticleRevisionViewCustom hook in DifferenceEngine.php.
58 * (T181658) Do not insert page titles into querycache.qc_value.
59 * ParamValidator has been flagged as unstable.
60 * Hard deprecate Parser::disableCache().
61
62 == MediaWiki 1.34.0-rc.0 ==
63
64 == Upgrading notes for 1.34 ==
65 1.34 has several database changes since 1.33, and will not work without schema
66 updates. Note that due to changes to some very large tables like the revision
67 table, the schema update may take quite long (minutes on a medium sized site,
68 many hours on a large site).
69
70 Don't forget to always back up your database before upgrading!
71
72 See the file UPGRADE for more detailed upgrade instructions, including
73 important information when upgrading from versions prior to 1.11.
74
75 Some specific notes for MediaWiki 1.34 upgrades are below:
76
77 * MediaWiki now requires PHP 7.2.9 or above.
78 * MediaWiki no longer supports HHVM.
79
80 For notes on 1.33.x and older releases, see HISTORY.
81
82 === Configuration changes for system administrators in 1.34 ===
83
84 In an effort to enforce best practices for passwords, MediaWiki will now warn
85 users, and suggest that they change their password, if it is in the list of
86 100,000 commonly used passwords that are considered bad passwords. If you want
87 to disable this for your users, please add the following to your local settings:
88
89 $wgPasswordPolicy['policies']['default']['PasswordNotInLargeBlacklist'] = false;
90
91 ==== New configuration ====
92 * $wgAllowExternalReqID (T201409) - This configuration setting controls whether
93 Mediawiki accepts the request ID set by the incoming request via the
94 `X-Request-Id` header. If set to `true`, that value will be used throughout
95 the code as the request identificator. Otherwise, the sent header will be
96 ignored and the request ID will either be taken from Apache's mod_unique
97 module or will be generated by Mediawiki itself (depending on the set-up).
98 * $wgEnableSpecialMute (T218265) - This configuration controls whether
99 Special:Mute is available and whether to include a link to it on emails
100 originating from Special:Email.
101 * editmyuserjsredirect user right – users without this right now cannot edit JS
102 redirects in their userspace unless the target of the redirect is also in
103 their userspace. By default, this right is given to everyone.
104 * (T226733) Add rate limiter to Special:ConfirmEmail.
105 * $wgDiffEngine (T237049) – This configuration can be used to specify which
106 difference engine to use. MediaWiki continues to default to automatically
107 choosing the first of $wgExternalDiffEngine, wikidiff2, or php that is
108 usable.
109
110 ==== Changed configuration ====
111 * $wgUseCdn, $wgCdnServers, $wgCdnServersNoPurge, and $wgCdnMaxAge – These four
112 CDN-related config variables have been renamed from being specific to Squid –
113 they were previously $wgUseSquid, $wgSquidServers, $wgSquidServersNoPurge, and
114 $wgSquidMaxage respectively. This aligns them with the related existing
115 variable $wgCdnMaxageLagged. The previous configuration variable names are
116 deprecated, but will be used as the fall back if they are still set.
117 Note that wgSquidPurgeUseHostHeader has not been renamed, as it is deprecated.
118 * (T27707) File type checks for image uploads have been relaxed to allow files
119 containing some HTML markup in metadata. As a result, the $wgAllowTitlesInSVG
120 setting is no longer applied and is now always true. Note that MSIE 7 may
121 still be able to misinterpret certain malformed PNG files as HTML.
122 * (T30798) $wgServer must now always be set in LocalSettings.php. This is most
123 likely the case already for any wiki installed after 1.18. The autodetection
124 system was informally deprecated since 1.18 and vulnerable to cache poisoning
125 attacks. Older wikis may need to update their LocalSettings.php file.
126 * Introduced $wgVerifyMimeTypeIE to allow disabling the MSIE 6/7 file type
127 detection heuristic on upload, which is more conservative than the checks
128 that were changed above.
129 * $wgExternalDiffEngine — Setting this to a string value of 'wikidiff',
130 'wikidiff2', or 'wikidiff3' will no longer work. This legacy behaviour was
131 deprecated in MediaWiki 1.27, 1.32, and 1.27, respectively.
132 * $wgSkipSkin — Setting this instead of $wgSkipSkins, deprecated in 1.23, is now
133 hard-deprecated.
134 * $wgLocalInterwiki — Setting this instead of $wgLocalInterwikis, deprecated in
135 1.23, is now hard-deprecated.
136 * $wgProfileOnly — Setting this, deprecated in 1.23, is now hard-deprecated.
137 Instead, set the log file in $wgDebugLogGroups['profileoutput'].
138 * $wgProxyList — Setting this to an array with IP addresses in the array keys,
139 which was deprecated in 1.30, no longer works. Instead, $wgProxyList should be
140 an array with IP addresses as the values, or a string path to a file
141 containing one IP address per line.
142 * $wgCookieSetOnAutoblock and $wgCookieSetOnIpBlock are now enabled by default.
143
144 ==== Removed configuration ====
145 * $wgWikiDiff2MovedParagraphDetectionCutoff — If you still want a custom change
146 size threshold, please specify in php.ini, using the configuration variable
147 wikidiff2.moved_paragraph_detection_cutoff.
148 * $wgUseESI - This experimental setting, deprecated in 1.33, is now removed.
149 * $wgDebugPrintHttpHeaders - The default of including HTTP headers in the
150 debug log channel is no longer configurable. The debug log itself remains
151 configurable via $wgDebugLogFile.
152 * $wgMsgCacheExpiry - The MessageCache uses 24 hours as the expiry for values
153 stored in WANObjectCache. This is no longer configurable.
154 * $wgPasswordSalt – This setting, used for migrating exceptionally old, insecure
155 password setups and deprecated since 1.24, is now removed.
156 * $wgDBOracleDRCP - If you must use persistent connections, set DBO_PERSISTENT
157 in the 'flags' field for servers in $wgDBServers (or $wgLBFactoryConf).
158 * $wgMemCachedDebug - Set the cache "debug" field in $wgObjectCaches instead.
159 * $wgActorTableSchemaMigrationStage has been removed. Extension code for
160 MediaWiki 1.31+ finding it unset should treat it as being SCHEMA_COMPAT_NEW.
161
162 === New user-facing features in 1.34 ===
163 * Special:Mute has been added as a quick way for users to block unwanted emails
164 from other users originating from Special:EmailUser.
165 * (T207577) Special:NewSection has been created as a shortcut to creating a new
166 section on a page. When linked to, its subpage is used as the target
167 ([[Special:NewSection/Test]] redirects to creating a new section in "Test").
168 Otherwise, it displays a basic interface to allow the end user to specify
169 the target manually.
170 * (T220447) Special:Contributions/newbies has been removed for performance and
171 usefulness reasons. Use Special:RecentChanges?userExpLevel=newcomer instead.
172 * Special:NewFiles/newbies has been removed for performance and usefulness
173 reasons. Use Special:RecentChanges?userExpLevel=newcomer&namespace=6 instead.
174
175 === New developer features in 1.34 ===
176 * The ImgAuthModifyHeaders hook was added to img_auth.php to allow modification
177 of headers in private wikis.
178 * Language::formatTimePeriod now supports the new 'avoidhours' option to output
179 strings like "5 days ago" instead of "5 days 13 hours ago".
180 * (T220163) Added SpecialMuteModifyFormFields hook to allow extensions
181 to add fields to Special:Mute.
182 * (T100896) Skin authors can define custom OOUI themes using OOUIThemePaths.
183 See <https://www.mediawiki.org/wiki/OOUI/Themes> for details.
184 * (T229035) The GetUserBlock hook was added. Use this instead of
185 GetBlockedStatus.
186 * ObjectFactory is available as a service. When used as a service, the object
187 specs can now specify needed DI services.
188 * (T222388) Special pages can now be specified as an ObjectFactory spec,
189 allowing the construction of special pages that require services to be
190 injected in their constructor.
191 * (T222388) API modules can now be specified as an ObjectFactory spec,
192 allowing the construction of modules that require services to be injected
193 in their constructor.
194 * (T117736) The function signature of SpecialContributions::getForm::filters
195 has changed. It now expects definitions of additional filter fields as array
196 rather than string.
197
198 === External library changes in 1.34 ===
199
200 ==== Changed external libraries ====
201 * Updated Mustache from 1.0.0 to v3.0.1.
202 * Updated OOUI from v0.31.3 to v0.34.0.
203 * Updated OOjs from v2.2.2 to v3.0.0.
204 * Updated composer/semver from 1.4.2 to 1.5.0.
205 * Updated composer/spdx-licenses from 1.4.0 to 1.5.1 (dev-only).
206 * Updated mediawiki/codesniffer from 25.0.0 to 28.0.0 (dev-only).
207 * Updated cssjanus/cssjanus from 1.2.1 to 1.3.0.
208 * Updated wikimedia/at-ease from 1.2.0 to 2.0.0.
209 * Updated wikimedia/remex-html from 2.0.1 to 2.1.0.
210 * Updated monolog/monolog from 1.22.1 to 1.24.0 (dev-only).
211 * Updated wikimedia/object-factory from 1.0.0 to 2.1.0.
212 * Updated wikimedia/timestamp from 2.2.0 to 3.0.0.
213 * Updated wikimedia/xmp-reader from 0.6.2 to 0.6.3.
214 * Updated mediawiki/mediawiki-phan-config from 0.6.0 to 0.6.1 (dev-only).
215 * Updated wikimedia/avro from 1.8.0 to 1.9.0 (dev-only).
216
217 ==== Removed external libraries ====
218 * The jquery.async module, deprecated in 1.33, was removed.
219
220 === Bug fixes in 1.34 ===
221 * (T222529) If a log entry or page revision is recorded in the database with an
222 empty username, attempting to display it will log an error and return a "no
223 username available" to the user instead of silently displaying nothing or
224 invalid links.
225
226 === Action API changes in 1.34 ===
227 * The 'recenteditcount' response property from action=query list=allusers,
228 deprecated in 1.25, has been removed.
229 * (T60993) action=query list=filearchive, list=alldeletedrevisions and
230 prop=deletedrevisions no longer require the 'deletedhistory' user right.
231 * In the response to queries that use 'prop=imageinfo', entries for
232 non-existing files (indicated by the 'filemissing' field) now omit the
233 following fields, since they are meaningless in this context:
234 'timestamp', 'userhidden', 'user', 'userid', 'anon', 'size', 'width',
235 'height', 'pagecount', 'duration', 'commenthidden', 'parsedcomment',
236 'comment', 'thumburl', 'thumbwidth', 'thumbheight', 'thumbmime',
237 'thumberror', 'url', 'sha1', 'metadata', 'extmetadata', 'commonmetadata',
238 'mime', 'mediadtype', 'bitdepth'.
239 Clients that process these fields should first check if 'filemissing' is
240 set. Fields that are supported even if the file is missing include:
241 'canonicaltitle', 'archivename' (deleted files only), 'descriptionurl',
242 'descriptionshorturl'.
243 * The 'blockexpiry' result property in list=users and list=allusers will now be
244 returned in the same format used by the rest of the API: ISO 8601 for
245 expiring blocks, and "infinite" for non-expiring blocks.
246
247 === Action API internal changes in 1.34 ===
248 * The exception thrown in ApiModuleManager::getModule has been changed
249 from an MWException to an UnexpectedValueException, thrown by ObjectFactory.
250 ApiModuleManager::getModule now also throws InvalidArgumentExceptions when
251 ObjectFactory is presented with an invalid spec or incorrectly constructed
252 objects.
253 * Added ApiQueryBlockInfoTrait.
254
255 === Languages updated in 1.34 ===
256 MediaWiki supports over 350 languages. Many localisations are updated regularly.
257 Below only new and removed languages are listed, as well as changes to languages
258 because of Phabricator reports.
259
260 * (T152908) Added language support for N'Ko (nqo).
261
262 === Breaking changes in 1.34 ===
263 * The global functions wfSuppressWarnings and wfRestoreWarnings, deprecated in
264 1.26, have been removed. Use Wikimedia\AtEase\AtEase::suppressWarnings() and
265 Wikimedia\AtEase\AtEase::restoreWarnings() directly.
266 * Preferences class, deprecated in 1.31, has been removed.
267 * The following parts of code, deprecated in 1.32, were removed in favor of
268 built-in PHP functions:
269 * CryptRand class
270 * CryptRand service
271 * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
272 * Various Special Page PHP Classes were renamed (mostly casing changes):
273 * SpecialAncientpages => SpecialAncientPages
274 * SpecialConfirmemail => SpecialConfirmEmail
275 * SpecialDeadendpages => SpecialDeadendPages
276 * SpecialFewestrevisions => SpecialFewestRevisions
277 * SpecialListredirects => SpecialListRedirects
278 * SpecialLonelypages => SpecialLonelyPages
279 * SpecialLongpages => SpecialLongPages
280 * SpecialMIMEsearch => SpecialMIMESearch
281 * SpecialMostcategories => SpecialMostCategories
282 * SpecialMostinterwikis => SpecialMostInterwikis
283 * SpecialMostlinked => SpecialMostLinked
284 * SpecialMostlinkedcategories => SpecialMostLinkedCategories
285 * SpecialMostlinkedtemplates => SpecialMostLinkedTemplates
286 * SpecialMostrevisions => SpecialMostRevisions
287 * SpecialNewimages => SpecialNewFiles
288 * SpecialShortpages => SpecialShortPages
289 * SpecialUncategorizedcategories => SpecialUncategorizedCategories
290 * SpecialUncategorizedimages => SpecialUncategorizedImages
291 * SpecialUncategorizedpages => SpecialUncategorizedPages
292 * SpecialUncategorizedtemplates => SpecialUncategorizedTemplates
293 * SpecialUnusedcategories => SpecialUnusedCategories
294 * SpecialUnusedimages => SpecialUnusedImages
295 * SpecialUnusedtemplates => SpecialUnusedTemplates
296 * SpecialUnwatchedpages => SpecialUnwatchedPages
297 * SpecialWantedcategories => SpecialWantedCategories
298 * SpecialWantedtemplates => SpecialWantedTemplates
299 * SpecialWithoutinterwiki => SpecialWithoutInterwiki
300 * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
301 create a new Language object with a different language code.
302 * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
303 to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
304 Instead, reset services, such as by calling $this->overrideMwServices() (if
305 your test extends MediaWikiTestCase). Services will generally not pick up
306 configuration changes from after they were created, so you must reset
307 services after any configuration change. Even if your code works now, it is
308 likely to break in future versions as more code is moved to services.
309 * The ill-defined "DatabaseOraclePostInit" hook has been removed.
310 * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
311 been removed.
312 * ObjectFactory class, deprecated in 1.31, has been removed.
313 * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
314 * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
315 * The RedirectSpecialPage::execute method could sometimes return a Title object.
316 This behavior was removed, and the method now matches the parent signature
317 (SpecialPage::execute) which is to return HTML string or void.
318 To obtain the destination title, use RedirectSpecialPage::getRedirect.
319 * The 'recenteditcount' response property from action API action=query
320 list=allusers, deprecated in 1.25, has been removed.
321 * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
322 SearchEngine::create(), SearchEngine::getSearchTypes() and
323 SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
324 * FileRepo::streamFile(), deprecated in 1.26, has been removed.
325 * User::randomPassword() method, deprecated in 1.27, have been removed.
326 * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
327 * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
328 * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
329 removed.
330 * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
331 * Method signatures in WatchedItemQueryServiceExtension have changed from taking
332 User objects to taking UserIdentity objects. Extensions implementing this
333 interface need to be changed accordingly.
334 * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
335 removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
336 * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
337 UserGroupMembership::getLink() instead.
338 * SavepointPostgres, deprecated in 1.31, has been removed.
339 * OutputPage::enableSectionEditLinks(), OutputPage::sectionEditLinksEnabled(),
340 ParserOptions::getEditSection(), ParserOptions::setEditSection(), and
341 ParserOutput::getEditSectionTokens, ::getTOCEnabled, ::setEditSectionTokens,
342 and ::setTOCEnabled, deprecated in 1.31, have been removed.
343 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
344 have been removed.
345 * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
346 use OutputPage::showFatalError or throw a FatalError instead. The methods are
347 ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
348 ::showFileNotFoundError().
349 * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
350 * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
351 INTL_ICU_VERSION constant directly.
352 * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
353 * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
354 both deprecated in 1.32, have been removed.
355 * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
356 been removed. Use ->msg() or ->getMsg() instead.
357 * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
358 use WatchAction::getWatchToken() with action 'unwatch' directly.
359 * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
360 1.28, have been removed.
361 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
362 deprecated in 1.32, have been removed.
363 * OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
364 in 1.33, have been removed.
365 * User::getPasswordValidity(), deprecated in 1.33, has been removed.
366 * ApiQueryBase::prepareUrlQuerySearchString(), deprecated in 1.33, has been
367 removed.
368 * ChangeTags::purgeTagUsageCache(), deprecated in 1.33, has been removed.
369 * JobQueueGroup::pushLazyJobs(), deprecated in 1.33, has been removed.
370 * MediaWikiTestCase::stashMwGlobals(), deprecated in 1.32, has been removed.
371 * SearchEngine::transformSearchTerm(), deprecated in 1.32, has been removed.
372 * The Block typehint only refers to blocks stored in the database. It should be
373 updated to AbstractBlock in cases where any type of block could be expected.
374 * FileRepoStatus, deprecated in 1.25, has been removed.
375 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
376 in 1.27, has been removed.
377 * IP::isValidBlock(), deprecated in 1.30, has been removed.
378 * WikiPage::prepareContentForEdit now doesn't accept an integer for $revision,
379 was deprecated in 1.25.
380 * The jquery.byteLength module, deprecated in 1.31, was removed.
381 Use the mediawiki.String module instead.
382 * mw.language.specialCharacters, deprecated in 1.33, has been removed.
383 Use require( 'mediawiki.language.specialCharacters' ) instead.
384 * The jquery.colorUtil module was removed. Use jquery.color instead.
385 * The jquery.checkboxShiftClick module was removed. The functionality
386 is provided by mediawiki.page.ready instead (T232688).
387 * The 'jquery.accessKeyLabel' module has been removed. This jQuery
388 plugin now ships as part of the 'mediawiki.util' module bundle.
389 * EditPage::submit(), deprecated in 1.29, has been removed. Use $this->edit()
390 directly.
391 * HTMLForm::getErrors(), deprecated in 1.28, has been removed. Use
392 getErrorsOrWarnings() instead.
393 * SpecialPage::getTitle(), deprecated in 1.23, has been removed. Use
394 SpecialPage::getPageTitle() instead.
395 * jquery.ui.effect-bounce, jquery.ui.effect-explode, jquery.ui.effect-fold
396 jquery.ui.effect-pulsate, jquery.ui.effect-slide, jquery.ui.effect-transfer,
397 which are no longer used, have now been removed.
398 * SpecialEmailUser::validateTarget(), ::getTarget() without a sender/user
399 specified, deprecated in 1.30, have been removed.
400 * BufferingStatsdDataFactory::getBuffer(), deprecated in 1.30, has been removed.
401 * The constant DB_SLAVE, deprecated in 1.28, has been removed. Use DB_REPLICA.
402 * The constants NS_IMAGE and NS_IMAGE_TALK, deprecated in 1.14, have been
403 removed. Use NS_FILE and NS_FILE_TALK respectively.
404 * Replacer, DoubleReplacer, HashtableReplacer and RegexlikeReplacer
405 (deprecated in 1.32) have been removed. Closures should be used instead.
406 * OutputPage::addWikiText(), ::addWikiTextWithTitle(), ::addWikiTextTitleTidy(),
407 ::addWikiTextTidy(), ::addWikiTextTitle(), deprecated in 1.32, have been
408 removed.
409 * The $wgUseKeyHeader configuration option and the OutputPage::getKeyHeader()
410 method, deprecated in 1.32, have been removed.
411 * WebInstallerOutput::addWikiText(), deprecated in 1.32, has been removed.
412 * Parser::fetchFile(), deprecated in 1.32, has been removed. Use the method
413 Parser::fetchFileAndTitle() instead.
414 * The global function wfBCP47, deprecated in 1.31, has been removed.
415 * wfCountDown() function, deprecated in 1.31, has been removed. Use
416 \Maintenance::countDown() method instead.
417 * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
418 deprecated since 1.20.
419 * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
420 * Linker::link() no longer accepts a string for the query array, as was
421 deprecated in 1.20.
422 * PrefixSearch::titleSearch(), deprecated in 1.23, has been removed. Use the
423 SearchEngine::defaultPrefixSearch or ::completionSearch() methods instead.
424 * The UserRights hook, deprecated in 1.26, has been removed. Instead, use the
425 UserGroupsChanged hook.
426 * Skin::getDefaultInstance(), deprecated in 1.27, has been removed. Get the
427 instance from MediaWikiServices instead.
428 * The UserLoadFromSession hook, deprecated in 1.27, has been removed.
429 * The wfResetSessionID global function, deprecated in 1.27, has been removed.
430 Use MediaWiki\Session\SessionManager instead.
431 * The wfGetLBFactory global function, deprecated in 1.27, has been removed.
432 Use MediaWikiServices::getInstance()->getDBLoadBalancerFactory().
433 * The internal method OutputPage->addScriptFile() will no longer silently drop
434 calls that use an invalid path (i.e., something other than an absolute path,
435 protocol-relative URL, or full scheme URL), and will instead pass them to the
436 client where they will likely 404. This usage was deprecated in 1.24.
437 * Database::reportConnectionError, deprecated in 1.32, has been removed.
438 * APIEditBeforeSave hook, deprecated in 1.28, has been removed. Please see
439 EditFilterMergedContent hook for an alternative way to use this feature.
440 * API module methods getDescription(), getParamDescription(), & getExamples(),
441 all deprecated in 1.25 and ignored, have been removed.
442 * The API module method getDescriptionMessage(), deprecated in 1.30, has been
443 removed.
444 * The JavaScript global variable wgLoadScript has been removed. Use
445 mw.util.wikiScript( 'load' ) instead.
446 * ResourceLoader no longer creates the 'mw.legacy' placeholder object. It has
447 been unused since 1.16 and was deprecated in 1.22. To deprecate a property
448 in JavaScript, use mw.log.deprecate() instead.
449 * The 'user.groups' module, deprecated in 1.28, was removed.
450 Use the 'user' module instead.
451 * The ResourceLoaderContext::expandModuleNames method, deprecated in 1.33, was
452 removed. Use ResourceLoader::expandModuleNames instead.
453 * The ability to override User::$mRights has been removed. Use
454 PermissionManager::addTemporaryUserRights() instead.
455 * Previously, when iterating ResultWrapper with foreach() or a similar
456 construct, the range of the index was 1..numRows. This has been fixed to be
457 0..(numRows-1).
458 * The ChangePasswordForm hook, deprecated in 1.27, has been removed. Use the
459 AuthChangeFormFields hook or security levels instead.
460 * WikiMap::getWikiIdFromDomain(), deprecated in 1.33, has been removed.
461 Use WikiMap::getWikiIdFromDbDomain() instead.
462 * The config variables $wgHtml5, $wgJsMimeType, and $wgXhtmlDefaultNamespace,
463 which were deprecated and ignored by core since 1.22, are no longer set to any
464 value, and SkinTemplate no longer emits a 'jsmimetype' key. Any extensions not
465 updated since 2013 to cope with this deprecation may now break.
466 * (T222637) Passing ResourceLoaderModule objects to ResourceLoader::register()
467 or $wgResourceModules is no longer supported.
468 Use the 'class' or 'factory' option of the array format instead.
469 * The parameter $lang of the functions generateTOC and tocList in Linker and
470 DummyLinker must be in type Language when present. Other types are
471 deprecated since 1.33.
472 * The static properties mw.Api.errors and mw.Api.warnings, deprecated in 1.29,
473 have been removed.
474 * ParserOption::getSpeculativeRevIdCallback(), deprecated in 1.28, has been
475 removed.
476 * The UploadVerification hook, deprecated in 1.28, has been removed. Instead,
477 use the UploadVerifyFile hook.
478 * UploadBase:: and UploadFromChunks::stashFileGetKey() and stashSession(),
479 deprecated in 1.28, have been removed. Instead, please use the getFileKey()
480 method on the response from doStashFile().
481 * LBFactory::setDomainPrefix() and LoadBalancer::setDomainPrefix(), deprecated
482 in 1.33, have been removed. Use setLocalDomainPrefix() instead.
483 * IDatabase::implicitGroupby(), deprecated in 1.30, has been removed.
484 * IDatabase::doneWrites(), deprecated in 1.31, has been removed.
485 Use IDatabase::lastDoneWrites() instead.
486 * Database::reportConnectionError(), deprecated in 1.32, has been removed.
487 * LoadBalancer::laggedSlaveUsed(), deprecated in 1.28, has been removed.
488 Use LoadBalancer::laggedReplicaUsed() instead.
489 * Database::getProperty(), deprecated in 1.28, has been removed.
490 * IDatabase::getWikiId(), deprecated in 1.30, has been removed.
491 Use IDatabase::getDomainID() instead.
492 * (T191231) Support for using Oracle or MSSQL as database backends has been
493 dropped.
494 * MessageCache::destroyInstance() has been removed. Instead, call
495 MediaWikiTestCase::resetServices().
496 * SearchResult protected field $searchEngine is removed and no longer
497 initialized after calling SearchResult::initFromTitle().
498 * The UserIsBlockedFrom hook is only called if a block is found first, and
499 should only be used to unblock a blocked user.
500 * Parameters for index.php from PATH_INFO, such as the title, are no longer
501 written to $_GET.
502 * The selectFields() methods on classes LocalFile, ArchivedFile, OldLocalFile,
503 DatabaseBlock, and RecentChange, deprecated in 1.31, have been removed. Use
504 the corresponding getQueryInfo() methods instead.
505 * The following methods on Revision, deprecated since 1.31, have been removed.
506 Use RevisionStore::getQueryInfo() or RevisionStore::getArchiveQueryInfo()
507 instead.
508 * Revision::userJoinCond()
509 * Revision::pageJoinCond()
510 * Revision::selectFields()
511 * Revision::selectArchiveFields()
512 * Revision::selectTextFields()
513 * Revision::selectPageFields()
514 * Revision::selectUserFields()
515 * User::setNewpassword(), deprecated in 1.27 has been removed.
516 * The ObjectCache::getMainWANInstance and ObjectCache::getMainStashInstance
517 functions, deprecated since 1.28, have been removed.
518 * Language::$dataCache has been removed (without prior deprecation, for
519 practical reasons). Use MediaWikiServices instead to get a LocalisationCache.
520
521 === Deprecations in 1.34 ===
522 * The MWNamespace class is deprecated. Use NamespaceInfo.
523 * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
524 Instead, use ->queue().
525 * User::isBlocked() is deprecated since it does not tell you if the user is
526 blocked from editing a particular page. Use User::getBlock() or
527 PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
528 * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
529 to the BlockManager as private helper methods.
530 * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
531 instead.
532 * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
533 is deprecated. Pass only the User argument.
534 * WatchedItem::getUser is deprecated. Use getUserIdentity.
535 * Passing a Title as the first parameter to the getTimestampById method of
536 RevisionStore is deprecated. Omit it, passing only the remaining parameters.
537 * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
538 RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
539 * The Title parameter to RevisionLookup::getPreviousRevision and
540 RevisionLookup::getNextRevision is deprecated and should be omitted.
541 * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
542 * The Http class is deprecated. For the request, get, and post methods, use
543 HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
544 getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
545 MultiHttpClient directly.
546 * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
547 engine will eventually be made the only engine for HTTP requests.
548 * RepoGroup::singleton(), RepoGroup::destroySingleton(),
549 RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
550 deprecated. Use MediaWikiServices instead.
551 * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
552 Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
553 * MWMessagePack class, no longer used, has been deprecated in 1.34.
554 * The Block class is separated into DatabaseBlock (for blocks stored in the
555 database), and SystemBlock (for temporary blocks created by the system).
556 SystemBlock should be used when creating any temporary blocks. Block is
557 a deprecated alias for DatabaseBlock.
558 * Parser::$mConf is deprecated. It will be removed entirely in a later version.
559 Some context can be found at T224165.
560 * Constructing Parser directly is deprecated. Obtain one from ParserFactory.
561 * Title::moveSubpages is deprecated. Use MovePage::moveSubpages or
562 MovePage::moveSubpagesIfAllowed.
563 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
564 * (T62260) Hard deprecate Language::getExtraUserToggles() method.
565 * Language::viewPrevNext function is deprecated, use
566 PrevNextNavigationRenderer::buildPrevNextNavigation instead
567 * User::trackBlockWithCookie and DatabaseBlock::clearCookie are deprecated. Use
568 BlockManager::trackBlockWithCookie and BlockManager::clearCookie instead.
569 * DatabaseBlock::setCookie, DatabaseBlock::getCookieValue,
570 DatabaseBlock::getIdFromCookieValue and AbstractBlock::shouldTrackWithCookie
571 are moved to internal helper methods for BlockManager::trackBlockWithCookie.
572 * ResourceLoaderContext::getConfig and ResourceLoaderContext::getLogger have
573 been deprecated. Inside ResourceLoaderModule subclasses, use the local methods
574 instead. Elsewhere, use the methods from the ResourceLoader class.
575 * The Profiler::setTemplated and Profiler::getTemplated methods have been
576 deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
577 instead.
578 * The ProfilerOutputDb class, 'profiling' table, and profileinfo.php entry
579 point had been deprecated (T231366).
580 * The Preprocessor_DOM implementation has been deprecated. It will be
581 removed in a future release. Use the Preprocessor_Hash implementation
582 instead.
583 * Sanitizer::attributeWhitelist() and Sanitizer::setupAttributeWhitelist()
584 have been deprecated; they will be made private in the future.
585 * SearchResult::termMatches() method is deprecated. It was unreliable because
586 only populated by few search engine implementations. Use
587 SqlSearchResult::getTermMatches() if really needed.
588 * SearchResult::getTextSnippet( $terms ) the $terms param is being deprecated
589 and should no longer be passed. Search engine implemenations should be
590 responsible for carrying relevant information needed for highlighting with
591 their own SearchResultSet/SearchResult sub-classes.
592 * SearchResultSet::free() method is deprecated.
593 * SearchEngine::$searchTerms protected field is deprecated. Moved to
594 SearchDatabase.
595 * The use of the $terms param in the ShowSearchHit and ShowSearchHitTitle
596 hooks is highly discouraged as it's only populated by SearchDatabase search
597 engines.
598 * Skin::escapeSearchLink() is deprecated. Use Skin::getSearchLink() or the skin
599 template option 'searchaction' instead.
600 * Skin::getRevisionId() and Skin::isRevisionCurrent() have been deprecated.
601 Use OutputPage::getRevisionId() and OutputPage::isRevisionCurrent() instead.
602 * LoadBalancer::haveIndex() and LoadBalancer::isNonZeroLoad() have
603 been deprecated.
604 * FileBackend::getWikiId() has been deprecated.
605 Use FileBackend::getDomainId() instead.
606 * User::getRights() and User::$mRights have been deprecated. Use
607 PermissionManager::getUserPermissions() instead.
608 * The LocalisationCacheRecache hook no longer allows purging of message blobs
609 to be prevented. Modifying the $purgeBlobs parameter now has no effect.
610 * SVGMetadataExtractor::getMetadata has been deprecated. Instead, you should
611 use SVGReader->getMetadata() directly.
612 * The following public properties on AbstractBlock are deprecated: $mReason,
613 $mTimestamp, $mExpiry, $mHideName. Use the getters/setters instead.
614 * The following public properties on DatabaseBlock are deprecated: $mAuto,
615 $mParentBlockId. To check for an autoblock use DatabaseBlock::getType; to
616 check for the parent ID, use DatabaseBlock::getParentBlockId.
617 * SearchEngine::userHighlightPrefs() is deprecated, simply stop passing
618 $contextlines and $contextchars to the SearchHighlighter methods, they will
619 use proper defaults defined in SearchHighlighter::DEFAULT_CONTEXT_LINES and
620 DEFAULT_CONTEXT_CHARS.
621 * SearchUpdate constructor: passing a string as the title param and or a boolean
622 or a string as the content will produce a deprecation warning.
623 * SearchEngine::getTextFromContent() is deprecated, use getTextForSearchIndex()
624 directly from the Content object.
625 * SearchEngine::textAlreadyUpdatedForIndex() is deprecated, given the
626 deprecation above this method is no longer needed/called and should not be
627 implemented by SearchEngine implementation.
628 * IDatabase::bufferResults() has been deprecated. Use query batching instead.
629 * MessageCache::singleton() is deprecated. Use
630 MediaWikiServices::getMessageCache().
631 * ObjectCache::getWANInstance() is deprecated. Use
632 MediaWikiServices::getMainWANObjectCache() instead.
633 * ObjectCache::newWANCacheFromParams() is deprecated. Use
634 MediaWikiServices::getMainWANObjectCache() instead.
635 * Constructing MovePage directly is deprecated. Use MovePageFactory.
636 * TempFSFile::factory() has been deprecated. Use TempFSFileFactory instead.
637 * wfIsBadImage() is deprecated. Use the BadFileLookup service instead.
638 * Building a new SearchResult is hard-deprecated, always call
639 SearchResult::newFromTitle(). This class is being refactored into an abstract
640 class. If you extend this class please be sure to override all its methods
641 or extend RevisionSearchResult.
642 * Skin::getSkinNameMessages() is deprecated and no longer used.
643 * The mediawiki.RegExp module is deprecated; use mw.util.escapeRegExp() instead.
644 * Specifying a SpecialPage object for the list of special pages (either through
645 the SpecialPage_initList hook or by adding to $wgSpecialPages) is now
646 deprecated.
647 * The 'jquery.tabIndex' module is deprecated.
648 * WebInstaller::getInfoBox(), getWarningBox() and getErrorBox() are deprecated.
649 Use Html::errorBox() or Html::warningBox() instead.
650 * Use of ActorMigration with 'ar_user', 'img_user', 'oi_user', 'fa_user',
651 'rc_user', 'log_user', and 'ipb_by' is deprecated. Queries should be adjusted
652 to use the corresponding actor fields directly. Note that use with
653 'rev_user' is *not* deprecated at this time.
654 * Specifying both the class and factory parameters for
655 ApiModuleManager::addModule is now deprecated. The ObjectFactory spec should
656 be used instead.
657 * The UserIsHidden hook is deprecated. Use GetUserBlock instead, and add a
658 system block that hides the user.
659 * The GetBlockedStatus hook is deprecated. Use GetUserBlock instead, to add or
660 remove a block.
661 * $wgContentHandlerUseDB is deprecated and should always be true.
662 * StreamFile::send404Message() and StreamFile::parseRange() are now deprecated.
663 Use HTTPFileStreamer::send404Message() and HTTPFileStreamer::parseRange()
664 respectively instead.
665 * Global variable $wgSysopEmailBans is deprecated; to allow sysops to ban
666 users from sending emails, use
667 $wgGroupPermissions['sysop']['blockemail'] = true;
668 * ApiQueryBase::showHiddenUsersAddBlockInfo() is deprecated. Use
669 ApiQueryBlockInfoTrait instead.
670 * PasswordReset is now a service, its direct instantiation is deprecated.
671 * RESTBagOStuff users should specify either "JSON" or "PHP" serialization type.
672 * The global function wfIsHHVM() is deprecated and will now always return false
673 regardless of the runtime environment. This is part of the continuing work to
674 remove HHVM support from MediaWiki, which started in MediaWiki 1.31.
675 * Language::getLocalisationCache() is deprecated. Use MediaWikiServices
676 instead.
677 * The following Language methods are deprecated: isSupportedLanguage,
678 isValidCode, isValidBuiltInCode, isKnownLanguageTag, fetchLanguageNames,
679 fetchLanguageName, getFileName, getMessagesFileName, getJsonMessagesFileName.
680 Use the new LanguageNameUtils class instead. (Note that fetchLanguageName(s)
681 are called getLanguageName(s) in the new class.)
682 * Using the Parser without initializing its $mTitle property to non-null has
683 been deprecated. In a future release Parser::getTitle() will throw a
684 TypeError if $mTitle is uninitialized.
685 * A number of public methods of Parser were exposed only for historical
686 reasons and have been deprecated: doMagicLinks, doDoubleUnderscore,
687 doHeadings, doAllQuotes, replaceExternalLinks, replaceInternalLinks,
688 replaceInternalLinks2, getVariableValue, initialiseVariables, formatHeadings,
689 testPst, testPreprocess, testSrvus, areSubpagesAllowed, maybeDoSubpageLink,
690 splitWhitespace, createAssocArgs, armorLinks, makeKnownLinkHolder,
691 getImageParams, parseLinkParameter, stripAltText, replaceLinkHolders,
692 replaceLinkHoldersText, armorLinks, makeKnownLinkHolder, getImageParams,
693 parseLinkParameter, stripAltText.
694
695 === Other changes in 1.34 ===
696 * Added option to specify "Various authors" as author in extension credits using
697 "..." as the only author name. If the "author" array contains more than one
698 entry and "..." is one of the entries in the array, "..." will be parsed as
699 "others" (version-poweredby-others i18n message) like previously.
700 * (T232563) Browser support ("Grade C") for Internet Explorer 6 and 7
701 was discontinued. Basic content and security features may no longer
702 work correctly in these browsers.
703
704 == Compatibility ==
705 MediaWiki 1.34 requires PHP 7.2.9 or later, and the following PHP extensions:
706
707 * ctype
708 * dom
709 * fileinfo
710 * iconv
711 * json
712 * mbstring
713 * xml
714
715 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
716 but support for them is somewhat less mature.
717
718 The supported versions are:
719
720 * MySQL 5.5.8 or later
721 * PostgreSQL 9.2 or later
722 * SQLite 3.8.0 or later
723
724 == Online documentation ==
725 Documentation for both end-users and site administrators is available on
726 MediaWiki.org, and is covered under the GNU Free Documentation License (except
727 for pages that explicitly state that their contents are in the public domain):
728
729 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
730
731 == Mailing list ==
732 A mailing list is available for MediaWiki user support and discussion:
733
734 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
735
736 A low-traffic announcements-only list is also available:
737
738 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
739
740 It's highly recommended that you sign up for one of these lists if you're
741 going to run a public MediaWiki, so you can be notified of security fixes.
742
743 == IRC help ==
744 There's usually someone online in #mediawiki on irc.freenode.net.