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