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