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