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