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