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