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