03ced764fdd85dce911a4f75a7113a7fa534e22d
[lhc/web/wiklou.git] / RELEASE-NOTES-1.34
1 = MediaWiki 1.34 =
2
3 == MediaWiki 1.34.0-PRERELEASE ==
4
5 THIS IS NOT A RELEASE YET
6
7 MediaWiki 1.34 is an alpha-quality development branch, and is not recommended
8 for use in production.
9
10 == Upgrading notes for 1.34 ==
11 1.34 has several database changes since 1.33, and will not work without schema
12 updates. Note that due to changes to some very large tables like the revision
13 table, the schema update may take quite long (minutes on a medium sized site,
14 many hours on a large site).
15
16 Don't forget to always back up your database before upgrading!
17
18 See the file UPGRADE for more detailed upgrade instructions, including
19 important information when upgrading from versions prior to 1.11.
20
21 Some specific notes for MediaWiki 1.34 upgrades are below:
22
23 * …
24
25 For notes on 1.33.x and older releases, see HISTORY.
26
27 === Configuration changes for system administrators in 1.34 ===
28
29 ==== New configuration ====
30 * $wgAllowExternalReqID (T201409) - This configuration setting controls whether
31 Mediawiki accepts the request ID set by the incoming request via the
32 `X-Request-Id` header. If set to `true`, that value will be used throughout
33 the code as the request identificator. Otherwise, the sent header will be
34 ignored and the request ID will either be taken from Apache's mod_unique
35 module or will be generated by Mediawiki itself (depending on the set-up).
36 * $wgEnableSpecialMute (T218265) - This configuration controls whether
37 Special:Mute is available and whether to include a link to it on emails
38 originating from Special:Email.
39 * editmyuserjsredirect user right – users without this right now cannot edit JS
40 redirects in their userspace unless the target of the redirect is also in
41 their userspace. By default, this right is given to everyone.
42 * (T226733) Add rate limiter to Special:ConfirmEmail.
43
44 ==== Changed configuration ====
45 * $wgUseCdn, $wgCdnServers, $wgCdnServersNoPurge, and $wgCdnMaxAge – These four
46 CDN-related config variables have been renamed from being specific to Squid –
47 they were previously $wgUseSquid, $wgSquidServers, $wgSquidServersNoPurge, and
48 $wgSquidMaxage respectively. This aligns them with the related existing
49 variable $wgCdnMaxageLagged. The previous configuration variable names are
50 deprecated, but will be used as the fall back if they are still set.
51 Note that wgSquidPurgeUseHostHeader has not been renamed, as it is deprecated.
52 * (T27707) File type checks for image uploads have been relaxed to allow files
53 containing some HTML markup in metadata. As a result, the $wgAllowTitlesInSVG
54 setting is no longer applied and is now always true. Note that MSIE 7 may
55 still be able to misinterpret certain malformed PNG files as HTML.
56 * Introduced $wgVerifyMimeTypeIE to allow disabling the MSIE 6/7 file type
57 detection heuristic on upload, which is more conservative than the checks
58 that were changed above.
59 * $wgSkipSkin — Setting this instead of $wgSkipSkins, deprecated in 1.23, is now
60 hard-deprecated.
61 * $wgLocalInterwiki — Setting this instead of $wgLocalInterwikis, deprecated in
62 1.23, is now hard-deprecated.
63 * $wgProfileOnly — Setting this, deprecated in 1.23, is now hard-deprecated.
64 Instead, set the log file in $wgDebugLogGroups['profileoutput'].
65 * $wgProxyList — Setting this to an array with IP addresses in the array keys,
66 which was deprecated in 1.30, no longer works. Instead, $wgProxyList should be
67 an array with IP addresses as the values, or a string path to a file
68 containing one IP address per line.
69 * $wgCookieSetOnAutoblock and $wgCookieSetOnIpBlock are now enabled by default.
70 * …
71
72 ==== Removed configuration ====
73 * $wgWikiDiff2MovedParagraphDetectionCutoff — If you still want a custom change
74 size threshold, please specify in php.ini, using the configuration variable
75 wikidiff2.moved_paragraph_detection_cutoff.
76 * $wgDebugPrintHttpHeaders - The default of including HTTP headers in the
77 debug log channel is no longer configurable. The debug log itself remains
78 configurable via $wgDebugLogFile.
79 * $wgMsgCacheExpiry - The MessageCache uses 24 hours as the expiry for values
80 stored in WANObjectCache. This is no longer configurable.
81 * $wgPasswordSalt – This setting, used for migrating exceptionally old, insecure
82 password setups and deprecated since 1.24, is now removed.
83 * $wgDBOracleDRCP - If you must use persistent connections, set DBO_PERSISTENT
84 in the 'flags' field for servers in $wgDBServers (or $wgLBFactoryConf).
85 * $wgMemCachedDebug - Set the cache "debug" field in $wgObjectCaches instead.
86
87 === New user-facing features in 1.34 ===
88 * Special:Mute has been added as a quick way for users to block unwanted emails
89 from other users originating from Special:EmailUser.
90 * (T207577) Special:NewSection has been created as a shortcut to creating a new
91 section on a page. When linked to, its subpage is used as the target
92 ([[Special:NewSection/Test]] redirects to creating a new section in "Test").
93 Otherwise, it displays a basic interface to allow the end user to specify
94 the target manually.
95 * (T220447) Special:Contributions/newbies has been removed for performance and
96 usefulness reasons. Use Special:RecentChanges?userExpLevel=newcomer instead.
97 * Special:NewFiles/newbies has been removed for performance and usefulness
98 reasons. Use Special:RecentChanges?userExpLevel=newcomer&namespace=6 instead.
99
100 === New developer features in 1.34 ===
101 * The ImgAuthModifyHeaders hook was added to img_auth.php to allow modification
102 of headers in private wikis.
103 * Language::formatTimePeriod now supports the new 'avoidhours' option to output
104 strings like "5 days ago" instead of "5 days 13 hours ago".
105 * (T220163) Added SpecialMuteModifyFormFields hook to allow extensions
106 to add fields to Special:Mute.
107 * (T100896) Skin authors can define custom OOUI themes using OOUIThemePaths.
108 See <https://www.mediawiki.org/wiki/OOUI/Themes> for details.
109 * (T229035) The GetUserBlock hook was added. Use this instead of
110 GetBlockedStatus.
111 * ObjectFactory is available as a service. When used as a service, the object
112 specs can now specify needed DI services.
113
114 === External library changes in 1.34 ===
115
116 ==== New external libraries ====
117 * …
118
119 ==== Changed external libraries ====
120 * Updated Mustache from 1.0.0 to v3.0.1.
121 * Updated OOUI from v0.31.3 to v0.34.0.
122 * Updated OOjs from v2.2.2 to v3.0.0.
123 * Updated composer/semver from 1.4.2 to 1.5.0.
124 * Updated composer/spdx-licenses from 1.4.0 to 1.5.1 (dev-only).
125 * Updated mediawiki/codesniffer from 25.0.0 to 26.0.0 (dev-only).
126 * Updated cssjanus/cssjanus from 1.2.1 to 1.3.0.
127 * Updated wikimedia/at-ease from 1.2.0 to 2.0.0.
128 * Updated wikimedia/remex-html from 2.0.1 to 2.0.3.
129 * Updated monolog/monolog from 1.22.1 to 1.24.0 (dev-only).
130 * Updated wikimedia/object-factory from 1.0.0 to 2.1.0.
131 * Updated wikimedia/timestamp from 2.2.0 to 3.0.0.
132 * Updated wikimedia/xmp-reader from 0.6.2 to 0.6.3.
133 * Updated mediawiki/mediawiki-phan-config from 0.6.0 to 0.6.1 (dev-only).
134 * …
135
136 ==== Removed external libraries ====
137 * The jquery.async module, deprecated in 1.33, was removed.
138 * …
139
140 === Bug fixes in 1.34 ===
141 * (T222529) If a log entry or page revision is recorded in the database with an
142 empty username, attempting to display it will log an error and return a "no
143 username available" to the user instead of silently displaying nothing or
144 invalid links.
145
146 === Action API changes in 1.34 ===
147 * The 'recenteditcount' response property from action=query list=allusers,
148 deprecated in 1.25, has been removed.
149
150 === Action API internal changes in 1.34 ===
151 * …
152
153 === Languages updated in 1.34 ===
154 MediaWiki supports over 350 languages. Many localisations are updated regularly.
155 Below only new and removed languages are listed, as well as changes to languages
156 because of Phabricator reports.
157
158 * (T152908) Added language support for N'Ko (nqo).
159
160 === Breaking changes in 1.34 ===
161 * The global functions wfSuppressWarnings and wfRestoreWarnings, deprecated in
162 1.26, have been removed. Use Wikimedia\AtEase\AtEase::suppressWarnings() and
163 Wikimedia\AtEase\AtEase::restoreWarnings() directly.
164 * Preferences class, deprecated in 1.31, has been removed.
165 * The following parts of code, deprecated in 1.32, were removed in favor of
166 built-in PHP functions:
167 * CryptRand class
168 * CryptRand service
169 * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
170 * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
171 create a new Language object with a different language code.
172 * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
173 to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
174 Instead, reset services, such as by calling $this->overrideMwServices() (if
175 your test extends MediaWikiTestCase). Services will generally not pick up
176 configuration changes from after they were created, so you must reset
177 services after any configuration change. Even if your code works now, it is
178 likely to break in future versions as more code is moved to services.
179 * The ill-defined "DatabaseOraclePostInit" hook has been removed.
180 * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
181 been removed.
182 * ObjectFactory class, deprecated in 1.31, has been removed.
183 * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
184 * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
185 * The RedirectSpecialPage::execute method could sometimes return a Title object.
186 This behavior was removed, and the method now matches the parent signature
187 (SpecialPage::execute) which is to return HTML string or void.
188 To obtain the destination title, use RedirectSpecialPage::getRedirect.
189 * The 'recenteditcount' response property from action API action=query
190 list=allusers, deprecated in 1.25, has been removed.
191 * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
192 SearchEngine::create(), SearchEngine::getSearchTypes() and
193 SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
194 * FileRepo::streamFile(), deprecated in 1.26, has been removed.
195 * User::randomPassword() method, deprecated in 1.27, have been removed.
196 * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
197 * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
198 * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
199 removed.
200 * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
201 * Method signatures in WatchedItemQueryServiceExtension have changed from taking
202 User objects to taking UserIdentity objects. Extensions implementing this
203 interface need to be changed accordingly.
204 * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
205 removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
206 * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
207 UserGroupMembership::getLink() instead.
208 * SavepointPostgres, deprecated in 1.31, has been removed.
209 * OutputPage::enableSectionEditLinks(), OutputPage::sectionEditLinksEnabled(),
210 ParserOptions::getEditSection(), ParserOptions::setEditSection(), and
211 ParserOutput::getEditSectionTokens, ::getTOCEnabled, ::setEditSectionTokens,
212 and ::setTOCEnabled, deprecated in 1.31, have been removed.
213 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
214 have been removed.
215 * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
216 use OutputPage::showFatalError or throw a FatalError instead. The methods are
217 ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
218 ::showFileNotFoundError().
219 * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
220 * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
221 INTL_ICU_VERSION constant directly.
222 * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
223 * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
224 both deprecated in 1.32, have been removed.
225 * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
226 been removed. Use ->msg() or ->getMsg() instead.
227 * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
228 use WatchAction::getWatchToken() with action 'unwatch' directly.
229 * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
230 1.28, have been removed.
231 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
232 deprecated in 1.32, have been removed.
233 * OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
234 in 1.33, have been removed.
235 * User::getPasswordValidity(), deprecated in 1.33, has been removed.
236 * ApiQueryBase::prepareUrlQuerySearchString(), deprecated in 1.33, has been
237 removed.
238 * ChangeTags::purgeTagUsageCache(), deprecated in 1.33, has been removed.
239 * JobQueueGroup::pushLazyJobs(), deprecated in 1.33, has been removed.
240 * MediaWikiTestCase::stashMwGlobals(), deprecated in 1.32, has been removed.
241 * SearchEngine::transformSearchTerm(), deprecated in 1.32, has been removed.
242 * The Block typehint only refers to blocks stored in the database. It should be
243 updated to AbstractBlock in cases where any type of block could be expected.
244 * FileRepoStatus, deprecated in 1.25, has been removed.
245 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
246 in 1.27, has been removed.
247 * IP::isValidBlock(), deprecated in 1.30, has been removed.
248 * WikiPage::prepareContentForEdit now doesn't accept an integer for $revision,
249 was deprecated in 1.25.
250 * The jquery.byteLength module, deprecated in 1.31, was removed.
251 Use the mediawiki.String module instead.
252 * mw.language.specialCharacters, deprecated in 1.33, has been removed.
253 Use require( 'mediawiki.language.specialCharacters' ) instead.
254 * EditPage::submit(), deprecated in 1.29, has been removed. Use $this->edit()
255 directly.
256 * HTMLForm::getErrors(), deprecated in 1.28, has been removed. Use
257 getErrorsOrWarnings() instead.
258 * SpecialPage::getTitle(), deprecated in 1.23, has been removed. Use
259 SpecialPage::getPageTitle() instead.
260 * jquery.ui.effect-bounce, jquery.ui.effect-explode, jquery.ui.effect-fold
261 jquery.ui.effect-pulsate, jquery.ui.effect-slide, jquery.ui.effect-transfer,
262 which are no longer used, have now been removed.
263 * SpecialEmailUser::validateTarget(), ::getTarget() without a sender/user
264 specified, deprecated in 1.30, have been removed.
265 * BufferingStatsdDataFactory::getBuffer(), deprecated in 1.30, has been removed.
266 * The constant DB_SLAVE, deprecated in 1.28, has been removed. Use DB_REPLICA.
267 * The constants NS_IMAGE and NS_IMAGE_TALK, deprecated in 1.14, have been
268 removed. Use NS_FILE and NS_FILE_TALK respectively.
269 * Replacer, DoubleReplacer, HashtableReplacer and RegexlikeReplacer
270 (deprecated in 1.32) have been removed. Closures should be used instead.
271 * OutputPage::addWikiText(), ::addWikiTextWithTitle(), ::addWikiTextTitleTidy(),
272 ::addWikiTextTidy(), ::addWikiTextTitle(), deprecated in 1.32, have been
273 removed.
274 * The $wgUseKeyHeader configuration option and the OutputPage::getKeyHeader()
275 method, deprecated in 1.32, have been removed.
276 * WebInstallerOutput::addWikiText(), deprecated in 1.32, has been removed.
277 * Parser::fetchFile(), deprecated in 1.32, has been removed. Use the method
278 Parser::fetchFileAndTitle() instead.
279 * The global function wfBCP47, deprecated in 1.31, has been removed.
280 * wfCountDown() function, deprecated in 1.31, has been removed. Use
281 \Maintenance::countDown() method instead.
282 * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
283 deprecated since 1.20.
284 * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
285 * Linker::link() no longer accepts a string for the query array, as was
286 deprecated in 1.20.
287 * PrefixSearch::titleSearch(), deprecated in 1.23, has been removed. Use the
288 SearchEngine::defaultPrefixSearch or ::completionSearch() methods instead.
289 * The UserRights hook, deprecated in 1.26, has been removed. Instead, use the
290 UserGroupsChanged hook.
291 * Skin::getDefaultInstance(), deprecated in 1.27, has been removed. Get the
292 instance from MediaWikiServices instead.
293 * The UserLoadFromSession hook, deprecated in 1.27, has been removed.
294 * The wfResetSessionID global function, deprecated in 1.27, has been removed.
295 Use MediaWiki\Session\SessionManager instead.
296 * The wfGetLBFactory global function, deprecated in 1.27, has been removed.
297 Use MediaWikiServices::getInstance()->getDBLoadBalancerFactory().
298 * The internal method OutputPage->addScriptFile() will no longer silently drop
299 calls that use an invalid path (i.e., something other than an absolute path,
300 protocol-relative URL, or full scheme URL), and will instead pass them to the
301 client where they will likely 404. This usage was deprecated in 1.24.
302 * Database::reportConnectionError, deprecated in 1.32, has been removed.
303 * APIEditBeforeSave hook, deprecated in 1.28, has been removed. Please see
304 EditFilterMergedContent hook for an alternative way to use this feature.
305 * API module methods getDescription(), getParamDescription(), & getExamples(),
306 all deprecated in 1.25 and ignored, have been removed.
307 * The API module method getDescriptionMessage(), deprecated in 1.30, has been
308 removed.
309 * The JavaScript global variable wgLoadScript has been removed. Use
310 mw.util.wikiScript( 'load' ) instead.
311 * ResourceLoader no longer creates the 'mw.legacy' placeholder object. It has
312 been unused since 1.16 and was deprecated in 1.22. To deprecate a property
313 in JavaScript, use mw.log.deprecate() instead.
314 * The 'user.groups' module, deprecated in 1.28, was removed.
315 Use the 'user' module instead.
316 * The ResourceLoaderContext::expandModuleNames method, deprecated in 1.33, was
317 removed. Use ResourceLoader::expandModuleNames instead.
318 * The ability to override User::$mRights has been removed. Use
319 PermissionManager::addTemporaryUserRights() instead.
320 * Previously, when iterating ResultWrapper with foreach() or a similar
321 construct, the range of the index was 1..numRows. This has been fixed to be
322 0..(numRows-1).
323 * The ChangePasswordForm hook, deprecated in 1.27, has been removed. Use the
324 AuthChangeFormFields hook or security levels instead.
325 * WikiMap::getWikiIdFromDomain(), deprecated in 1.33, has been removed.
326 Use WikiMap::getWikiIdFromDbDomain() instead.
327 * The config variables $wgHtml5, $wgJsMimeType, and $wgXhtmlDefaultNamespace,
328 which were deprecated and ignored by core since 1.22, are no longer set to any
329 value, and SkinTemplate no longer emits a 'jsmimetype' key. Any extensions not
330 updated since 2013 to cope with this deprecation may now break.
331 * (T222637) Passing ResourceLoaderModule objects to ResourceLoader::register()
332 or $wgResourceModules is no longer supported.
333 Use the 'class' or 'factory' option of the array format instead.
334 * The parameter $lang of the functions generateTOC and tocList in Linker and
335 DummyLinker must be in type Language when present. Other types are
336 deprecated since 1.33.
337 * The static properties mw.Api.errors and mw.Api.warnings, deprecated in 1.29,
338 have been removed.
339 * ParserOption::getSpeculativeRevIdCallback(), deprecated in 1.28, has been
340 removed.
341 * The UploadVerification hook, deprecated in 1.28, has been removed. Instead,
342 use the UploadVerifyFile hook.
343 * UploadBase:: and UploadFromChunks::stashFileGetKey() and stashSession(),
344 deprecated in 1.28, have been removed. Instead, please use the getFileKey()
345 method on the response from doStashFile().
346 * LBFactory::setDomainPrefix() and LoadBalancer::setDomainPrefix(), deprecated
347 in 1.33, have been removed. Use setLocalDomainPrefix() instead.
348 * IDatabase::implicitGroupby(), deprecated in 1.30, has been removed.
349 * IDatabase::doneWrites(), deprecated in 1.31, has been removed.
350 Use IDatabase::lastDoneWrites() instead.
351 * Database::reportConnectionError(), deprecated in 1.32, has been removed.
352 * LoadBalancer::laggedSlaveUsed(), deprecated in 1.28, has been removed.
353 Use LoadBalancer::laggedReplicaUsed() instead.
354 * Database::getProperty(), deprecated in 1.28, has been removed.
355 * IDatabase::getWikiId(), deprecated in 1.30, has been removed.
356 Use IDatabase::getDomainID() instead.
357 * (T191231) Support for using Oracle or MSSQL as database backends has been
358 dropped.
359 * MessageCache::destroyInstance() has been removed. Instead, call
360 MediaWikiTestCase::resetServices().
361 * SearchResult protected field $searchEngine is removed and no longer
362 initialized after calling SearchResult::initFromTitle().
363 * The UserIsBlockedFrom hook is only called if a block is found first, and
364 should only be used to unblock a blocked user.
365 * …
366
367 === Deprecations in 1.34 ===
368 * The MWNamespace class is deprecated. Use NamespaceInfo.
369 * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
370 Instead, use ->queue().
371 * User::isBlocked() is deprecated since it does not tell you if the user is
372 blocked from editing a particular page. Use User::getBlock() or
373 PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
374 * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
375 to the BlockManager as private helper methods.
376 * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
377 instead.
378 * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
379 is deprecated. Pass only the User argument.
380 * WatchedItem::getUser is deprecated. Use getUserIdentity.
381 * Passing a Title as the first parameter to the getTimestampById method of
382 RevisionStore is deprecated. Omit it, passing only the remaining parameters.
383 * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
384 RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
385 * The Title parameter to RevisionLookup::getPreviousRevision and
386 RevisionLookup::getNextRevision is deprecated and should be omitted.
387 * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
388 * The Http class is deprecated. For the request, get, and post methods, use
389 HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
390 getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
391 MultiHttpClient directly.
392 * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
393 engine will eventually be made the only engine for HTTP requests.
394 * RepoGroup::singleton(), RepoGroup::destroySingleton(),
395 RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
396 deprecated. Use MediaWikiServices instead.
397 * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
398 Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
399 * MWMessagePack class, no longer used, has been deprecated in 1.34.
400 * The Block class is separated into DatabaseBlock (for blocks stored in the
401 database), and SystemBlock (for temporary blocks created by the system).
402 SystemBlock should be used when creating any temporary blocks. Block is
403 a deprecated alias for DatabaseBlock.
404 * Parser::$mConf is deprecated. It will be removed entirely in a later version.
405 Some context can be found at T224165.
406 * Constructing Parser directly is deprecated. Obtain one from ParserFactory.
407 * Title::moveSubpages is deprecated. Use MovePage::moveSubpages or
408 MovePage::moveSubpagesIfAllowed.
409 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
410 * (T62260) Hard deprecate Language::getExtraUserToggles() method.
411 * Language::viewPrevNext function is deprecated, use
412 PrevNextNavigationRenderer::buildPrevNextNavigation instead
413 * User::trackBlockWithCookie and DatabaseBlock::clearCookie are deprecated. Use
414 BlockManager::trackBlockWithCookie and BlockManager::clearCookie instead.
415 * DatabaseBlock::setCookie, DatabaseBlock::getCookieValue,
416 DatabaseBlock::getIdFromCookieValue and AbstractBlock::shouldTrackWithCookie
417 are moved to internal helper methods for BlockManager::trackBlockWithCookie.
418 * ResourceLoaderContext::getConfig and ResourceLoaderContext::getLogger have
419 been deprecated. Inside ResourceLoaderModule subclasses, use the local methods
420 instead. Elsewhere, use the methods from the ResourceLoader class.
421 * The Profiler::setTemplated and Profiler::getTemplated methods have been
422 deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
423 instead.
424 * The Preprocessor_DOM implementation has been deprecated. It will be
425 removed in a future release. Use the Preprocessor_Hash implementation
426 instead.
427 * Sanitizer::attributeWhitelist() and Sanitizer::setupAttributeWhitelist()
428 have been deprecated; they will be made private in the future.
429 * SearchResult::termMatches() method is deprecated. It was unreliable because
430 only populated by few search engine implementations. Use
431 SqlSearchResult::getTermMatches() if really needed.
432 * SearchResult::getTextSnippet( $terms ) the $terms param is being deprecated
433 and should no longer be passed. Search engine implemenations should be
434 responsible for carrying relevant information needed for highlighting with
435 their own SearchResultSet/SearchResult sub-classes.
436 * SearchResultSet::free() method is deprecated.
437 * SearchEngine::$searchTerms protected field is deprecated. Moved to
438 SearchDatabase.
439 * The use of the $terms param in the ShowSearchHit and ShowSearchHitTitle
440 hooks is highly discouraged as it's only populated by SearchDatabase search
441 engines.
442 * Skin::escapeSearchLink() is deprecated. Use Skin::getSearchLink() or the skin
443 template option 'searchaction' instead.
444 * Skin::getRevisionId() and Skin::isRevisionCurrent() have been deprecated.
445 Use OutputPage::getRevisionId() and OutputPage::isRevisionCurrent() instead.
446 * LoadBalancer::haveIndex() and LoadBalancer::isNonZeroLoad() have
447 been deprecated.
448 * FileBackend::getWikiId() has been deprecated.
449 Use FileBackend::getDomainId() instead.
450 * User::getRights() and User::$mRights have been deprecated. Use
451 PermissionManager::getUserPermissions() instead.
452 * The LocalisationCacheRecache hook no longer allows purging of message blobs
453 to be prevented. Modifying the $purgeBlobs parameter now has no effect.
454 * SVGMetadataExtractor::getMetadata has been deprecated. Instead, you should
455 use SVGReader->getMetadata() directly.
456 * The following public properties on AbstractBlock are deprecated: $mReason,
457 $mTimestamp, $mExpiry, $mHideName. Use the getters/setters instead.
458 * The following public properties on DatabaseBlock are deprecated: $mAuto,
459 $mParentBlockId. To check for an autoblock use DatabaseBlock::getType; to
460 check for the parent ID, use DatabaseBlock::getParentBlockId.
461 * SearchEngine::userHighlightPrefs() is deprecated, simply stop passing
462 $contextlines and $contextchars to the SearchHighlighter methods, they will
463 use proper defaults defined in SearchHighlighter::DEFAULT_CONTEXT_LINES and
464 DEFAULT_CONTEXT_CHARS.
465 * SearchUpdate constructor: passing a string as the title param and or a boolean
466 or a string as the content will produce a deprecation warning.
467 * SearchEngine::getTextFromContent() is deprecated, use getTextForSearchIndex()
468 directly from the Content object.
469 * SearchEngine::textAlreadyUpdatedForIndex() is deprecated, given the
470 deprecation above this method is no longer needed/called and should not be
471 implemented by SearchEngine implementation.
472 * IDatabase::bufferResults() has been deprecated. Use query batching instead.
473 * MessageCache::singleton() is deprecated. Use
474 MediaWikiServices::getMessageCache().
475 * Constructing MovePage directly is deprecated. Use MovePageFactory.
476 * TempFSFile::factory() has been deprecated. Use TempFSFileFactory instead.
477 * wfIsBadImage() is deprecated. Use the BadFileLookup service instead.
478 * Building a new SearchResult is hard-deprecated, always call
479 SearchResult::newFromTitle(). This class is being refactored into an abstract
480 class. If you extend this class please be sure to override all its methods
481 or extend RevisionSearchResult.
482 * Skin::getSkinNameMessages() is deprecated and no longer used.
483
484 === Other changes in 1.34 ===
485 * …
486
487 == Compatibility ==
488 MediaWiki 1.34 requires PHP 7.0.13 or later. Although HHVM 3.18.5 or later is
489 supported, it is generally advised to use PHP 7.0.13 or later for long term
490 support. It also requires the following PHP extensions:
491
492 * ctype
493 * dom
494 * fileinfo
495 * iconv
496 * json
497 * mbstring
498 * xml
499
500 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
501 but support for them is somewhat less mature.
502
503 The supported versions are:
504
505 * MySQL 5.5.8 or later
506 * PostgreSQL 9.2 or later
507 * SQLite 3.8.0 or later
508
509 == Online documentation ==
510 Documentation for both end-users and site administrators is available on
511 MediaWiki.org, and is covered under the GNU Free Documentation License (except
512 for pages that explicitly state that their contents are in the public domain):
513
514 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
515
516 == Mailing list ==
517 A mailing list is available for MediaWiki user support and discussion:
518
519 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
520
521 A low-traffic announcements-only list is also available:
522
523 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
524
525 It's highly recommended that you sign up for one of these lists if you're
526 going to run a public MediaWiki, so you can be notified of security fixes.
527
528 == IRC help ==
529 There's usually someone online in #mediawiki on irc.freenode.net.