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