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