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