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