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