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