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