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