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