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