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