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