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