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