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