Add 1.33.0 to HISTORY
[lhc/web/wiklou.git] / HISTORY
1 Change notes from older releases. For current info see RELEASE-NOTES-1.34.
2
3 = MediaWiki 1.33 =
4
5 === Upgrading notes for 1.33 ===
6 1.33 has several database changes since 1.32, and will not work without schema
7 updates. Note that due to changes to some very large tables like the revision
8 table, the schema update may take quite long (minutes on a medium sized site,
9 many hours on a large site).
10
11 Don't forget to always back up your database before upgrading!
12
13 See the file UPGRADE for more detailed upgrade instructions, including
14 important information when upgrading from versions prior to 1.11.
15
16 Some specific notes for MediaWiki 1.33 upgrades are below:
17
18 * Some external link searches will not work correctly until update.php (or
19 refreshExternallinksIndex.php) is run. These include searches for links using
20 IP addresses, internationalized domain names, and possibly mailto links.
21 * If you ran migrateActors.php using an older version of MediaWiki and want to
22 run your wiki with $wgActorTableSchemaMigrationStage SCHEMA_COMPAT_READ_OLD,
23 note that log_search rows needed to find revision deletions by target user
24 were incorrectly deleted. See T215464 for details.
25 * If revision deletions were performed when the wiki was configured with
26 $wgActorTableSchemaMigrationStage SCHEMA_COMPAT_WRITE_BOTH and without
27 migrateActors.php having been run, the log_search table may contain rows with
28 empty values for "target_author_actor" which will prevent log searches for
29 revision deletions by target user from finding those log entries. These rows
30 may be corrected by (re-)running migrateActors.php.
31
32 For notes on 1.32.x and older releases, see HISTORY.
33
34 == MediaWiki 1.33.0 ==
35
36 === Changes since MediaWiki 1.33.0-rc.0 ===
37 * (T225558) Update installer link to PHP intl.
38 * (T225901) Only attempt to deduplicate if there is data in archive and revision
39 tables.
40 * (T225564) Fetch tag ID before calling undefineTag().
41 * (T225496) Detect APC for MainCacheType in CLI installer.
42 * Call unpack() with correct parameters in MimeAnalyzer.php for PHP 7.0 support.
43 * (T212613) Style change tags correctly on Special:Newpages.
44 * (T202211) Fix SQLite patch-(page|template)links-fix-pk.sql column order.
45
46 == MediaWiki 1.33.0-rc.0 ==
47
48 === Configuration changes for system administrators in 1.33 ===
49 ==== New configuration ====
50 * $wgEnablePartialBlocks – This enables the Partial Blocks feature, which gives
51 accounts with block permissions the ability to block users, IPs, and IP ranges
52 from editing specific pages, while allowing them to edit the rest of the wiki.
53 It is a temporary setting for gradual enablement, current default to `false`,
54 and will be set to `true` and then removed once initial development completes.
55
56 ==== Changed configuration ====
57 * $wgChangeTagsSchemaMigrationStage (T193868) — This temporary setting, added in
58 MediaWiki 1.32, now defaults to MIGRATION_NEW instead of MIGRATION_WRITE_BOTH.
59 * $wgPasswordPolicy – There is a new password policy to check that the account's
60 password is not in the large blacklist. This is enabled by default for the
61 built-in user groups bureaucrat, sysop, interface-admin, and bot. To configure
62 this for other user groups, set the `PasswordNotInLargeBlacklist` flag `true`.
63 * $wgPasswordDefault – There is a new password type configuration using Argon2
64 password hashing (which requires PHP 7.2 and above). It's designed to resist
65 timing attacks, and (on systems with PHP 7.3+) GPU hacking; if you configure
66 argon2 to be used, by default, it will automatically choose the best available
67 algorithm depending on which version of PHP you have available. To use this,
68 you can set `$wgPasswordDefault = 'argon2';`.
69 * $wgActorTableSchemaMigrationStage now defaults to reading the new schema.
70 update.php will back-populate the new database fields due to the changed
71 setting, which may take some time on large wikis. You can avoid downtime by
72 following a process like that described in T188327.
73
74 ==== Removed configuration ====
75 * $wgTagStatisticsNewTable (T199334) — This temporary setting, added in
76 MediaWiki 1.32, has now been removed. When loading Special:Tags, MediaWiki
77 will now always use the `change_tag_def` instead of the `change_tag` table.
78 * $wgUseTidy, $wgTidyBin, $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and
79 $wgDebugTidy – These options, all deprecated since 1.26, have now all been
80 removed, as MediaWiki now always tidies user output. The $wgTidyConfig setting
81 remains only for experimental features and debugging, and should not be used.
82 * $wgEnableParserCache – This setting has been deprecated since 1.26, has now
83 been removed. If you still desire to disable the parser cache, instead you can
84 set `$wgParserCacheType = CACHE_NONE;`.
85 * $wgCommentTableSchemaMigrationStage – This temporary migration setting has now
86 been removed. Code finding it unset should treat it as being MIGRATION_NEW.
87 * $wgAuth – This old setting, deprecated in 1.27, has been removed as part of
88 the removal of AuthPlugin.
89 * $wgSitesCacheFile – This configuration was introduced in 1.25 with the intent
90 to allow sites to configure a file in which to cache the SiteStore database
91 table, but it was never used. SiteStore already caches its information by
92 default using BagOStuff (e.g. Memcached or APC).
93 * $wgClockSkewFudge – This setting was used by User.php to let sites adjust by
94 how much MediaWiki would fudge when trying to minimize the chances of a
95 user.user_touched database update to the "current" timestamp being before the
96 value already there (e.g. due to clock skew between different servers). This
97 is no longer a problem, because the code now ensures the timestamp is always
98 higher than the previous one. The writes are guarded with CAS logic (check
99 and set), which prevents updates that would overlap.
100 * $wgDBmysql5 (T196185) - This experimental setting, deprecated in 1.31, has
101 been removed.
102
103 === New user-facing features in 1.33 ===
104 * (T96041) __EXPECTUNUSEDCATEGORY__ on a category page causes the category
105 to be hidden on Special:UnusedCategories.
106 * (T210814) SVGs are now by default displayed in wiki language on image
107 pages.
108 * Special:CreateAccount now warns the user if their chosen username has to be
109 normalized.
110 * (T205040) Multilingual images are now be displayed in the current parse
111 language where available.
112 * Special:ActiveUsers will no longer filter out users who became inactive since
113 the last time the active users query cache was updated.
114 * (T215675) RecentChange and ManualLogEntry implement new Taggable interface.
115 * (T215675) Added a hook, ManualLogEntryBeforePublish, to allow extensions
116 to modify (example: add tags) log entries.
117
118 === New developer features in 1.33 ===
119 * The AuthManagerLoginAuthenticateAudit hook has a new parameter for
120 additional information about the authentication event.
121 * TextContent::getText() was introduced as a replacement for
122 Content::getNativeData() for text-based content models.
123 * (T214706) LinksUpdate::getAddedExternalLinks() and
124 LinksUpdate::getRemovedExternalLinks() were introduced.
125 * (T213893) Added 'MaintenanceUpdateAddParams' hook
126 * (T219655) The MarkPatrolled hook has a new parameter for the tags
127 associated with this entry in the patrol log.
128 * (T212472) Extensions can now specify platform abilities they require to work,
129 limited to shell access for now.
130
131
132 === External library changes in 1.33 ===
133 ==== New external libraries ====
134 * Added wikimedia/password-blacklist 0.1.4.
135 * Added guzzlehttp/guzzle 6.3.3.
136
137 ==== Changed external libraries ====
138 * Updated OOUI from v0.29.2 to v0.31.3.
139 * Updated OOjs Router from pre-release to v0.2.0.
140 * Updated moment from v2.19.3 to v2.24.0.
141 * Updated wikimedia/xmp-reader from 0.6.0 to 0.6.2.
142 * Updated wikimedia/scoped-callback from 2.0.0 to 3.0.0.
143 * Updated jquery-client from 2.0.1 to 2.0.2.
144 * Updated pear/net_smtp from 1.8.0 to 1.8.1.
145 * Updated cssjanus/cssjanus from 1.2.0 to 1.3.0.
146 * Updated wikimedia/php-session-serializer from 1.0.6 to 1.0.7.
147
148 ==== Removed external libraries ====
149 * (T219403) jquery.ui.spinner, deprecated since 1.31, was removed.
150
151
152 === Developer library changes in 1.33 ===
153 ==== New developer libraries ====
154 * Added jakub-onderka/php-console-highlighter 0.3.2 explicitly (dev-only).
155 * Added mediawiki/mediawiki-phan-config 0.5.0 (dev-only).
156
157 ==== Changed developer libraries ====
158 * Updated wikimedia/ip-set from 1.3.0 to 2.0.1.
159 * The deprecated IPSet\IPSet alias was removed, Wikimedia\IPSet must be
160 used instead.
161 * Updated psy/psysh from 0.9.6 to 0.9.9 (dev-only).
162 * Updated nikic/php-parser from 3.1.3 to 3.1.5 (dev-only).
163 * Updated mediawiki/mediawiki-codesniffer from 22.0.0 to 25.0.0 (dev-only).
164 * Updated qunitjs from 2.6.2 to 2.9.1.
165
166 ==== Removed developer libraries ====
167 * The jetbrains/phpstorm-stubs repository was removed in favour of the minimal
168 stubs we need, which are kept in the new `.phan/internal_stubs` directory
169 (dev-only).
170
171
172 === Bug fixes in 1.33 ===
173 * (T164211) Special:UserRights could sometimes fail with a
174 "conflict detected" error when there weren't any conflicts.
175 * (T216029) Chrome redirects to Special:BadTitle after editing a section with
176 a non-Latin name on a page with non-Latin characters in title.
177 * (T222385) resourceloader: Use AND instead of OR for upsert conds in
178 saveFileDependencies().
179
180 === Action API changes in 1.33 ===
181 * (T198913) Added 'ApiOptions' hook.
182 * The JSON formatversion=2 is no longer experimental.
183 * Internal API errors (those with code beginning "internal_api_error") will
184 include the exception class name in a data field named "errorclass".
185 * Class names are not guaranteed to remain stable, and in particular database
186 exceptions will now include the "Wikimedia\Rdbms\" prefix in the class name.
187 * The code including an exception class name is deprecated. In the future,
188 all internal errors will use code "internal_api_error".
189 * (T212356) When using action=delete on pages with many revisions, the module
190 may return a boolean-true 'scheduled' and no 'logid'. This signifies that the
191 deletion will be processed via the job queue.
192 * action=setnotificationtimestamp will now update the watchlist asynchronously
193 if entirewatchlist is set, so updates may not be visible immediately
194 * Block info will be added to "blocked" errors from more modules.
195 * (T216245) Autoblocks will now be spread by action=edit and action=move.
196 * action=query&meta=userinfo has a new uiprop, 'latestcontrib', that returns
197 the date of user's latest contribution.
198 * (T25227) action=logout now requires to be posted and have a csrf token.
199
200 === Action API internal changes in 1.33 ===
201 * A number of deprecated methods for API documentation, intended for overriding
202 by extensions, are no longer called by MediaWiki, and will emit deprecation
203 notices if your extension attempts to use them:
204 * ApiBase::getDescription() (deprecated in 1.25)
205 * ApiBase::getParamDescription() (deprecated in 1.25)
206 * ApiBase::getExamples() (deprecated in 1.25)
207 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
208 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
209 been removed, as their only use was to let extensions override values returned
210 by getDescription() and getParamDescription(), respectively.
211 * API error codes may only contain ASCII letters, numbers, underscore, and
212 hyphen. Methods such as ApiBase::dieWithError() and
213 ApiMessageTrait::setApiCode() will throw an InvalidArgumentException if
214 passed a bad code.
215 * ApiBase::checkTitleUserPermissions() now takes an options array as its third
216 parameter. Passing a User object or null is deprecated.
217 * The api-feature-usage log channel now has log context. The text message is
218 deprecated and will be removed in the future.
219
220 === Languages updated in 1.33 ===
221 MediaWiki supports over 350 languages. Many localisations are updated regularly.
222 Below only new and removed languages are listed, as well as changes to languages
223 because of Phabricator reports.
224
225 * (T203908) Added language support for Eastern Pwo (kjp).
226 * (T213717) Fixed a translation error on Goan Konkani (gom-deva) translations
227 for NS_TEMPLATE.
228 * (T212221) Added $digitTransformTable for Santali (sat).
229 * (T216479) Added language support for Saisiyat (xsy).
230 * (T219728) Added support for new Japanese era name "Reiwa"
231
232 === Breaking changes in 1.33 ===
233 * The parameteter $lang in DifferenceEngine::setTextLanguage must be of type
234 Language. Other types are deprecated since 1.32.
235 * Skin::doEditSectionLink requires type Language for the parameter $lang.
236 The parameters $tooltip and $lang are mandatory. Omitting the parameters is
237 deprecated since 1.32.
238 * Language::truncate(), deprecated in 1.31, has been removed.
239 * UtfNormal, deprecated in 1.25, was removed. Use UtfNormal\Validator directly
240 instead.
241 * (T197179) In OOUI HTMLForm fields, the parameters 'notice', 'notice-messages',
242 and 'notice-message', which were deprecated in 1.32, were removed. Instead,
243 use 'help', 'help-message', and 'help-messages'.
244 * (T197179) HTMLFormField::getNotices(), deprecated in 1.32, was removed.
245 * The "Parsoid v1" compatibility mappings in ParsoidVirtualRESTService and
246 RestbaseVirtualRESTService, deprecated since 1.26, have been removed.
247 Use the RESTBase v1 or Parsoid v3 API instead.
248 * ParserOptions defaults 'tidy' to true now, since the untidy modes of the
249 parser are being deprecated and ParserOptions::getCanonicalOverrides()
250 has always been true at any rate.
251 * Support for disabling tidy and external tidy implementations has been removed.
252 This was deprecated in 1.32. The pure PHP Remex tidy implementation is now
253 used and no configuration is necessary.
254 * A number of deprecated methods for API documentation, intended for overriding
255 by extensions, are no longer called by MediaWiki, and will emit deprecation
256 notices if your extension attempts to use them:
257 * ApiBase::getDescription() (deprecated in 1.25)
258 * ApiBase::getParamDescription() (deprecated in 1.25)
259 * ApiBase::getExamples() (deprecated in 1.25)
260 * ApiBase::getDescriptionMessage() (deprecated in 1.30)
261 Additionally, the 'APIGetDescription' and 'APIGetParamDescription' hooks have
262 been removed, as their only use was to let extensions override values returned
263 by getDescription() and getParamDescription(), respectively.
264 * The authentication hooks 'AbortAutoAccount' 'AbortNewAccount', 'AbortLogin',
265 'LoginUserMigrated', 'UserCreateForm', and 'UserLoginForm', all deprecated by
266 the creation of AuthManager in 1.27, have been removed. This also means that
267 the FakeAuthTemplate and LoginForm classes are removed, that FakeAuthTemplate
268 is no longer passed into LoginSignupSpecialPage->getFieldDefinitions(), and
269 that LoginSignupSpecialPage->getBCFieldDefinitions() is removed.
270 * The 'jquery.localize' module, deprecated in 1.32, has been removed. Instead,
271 use 'jquery.i18n'.
272 * The hooks LanguageGetSpecialPageAliases and LanguageGetMagic, deprecated since
273 1.16, have now been removed. Instead, use $specialPageAliases or $magicWords
274 respectively in a $wgExtensionMessagesFiles file.
275 * The following methods of the Preferences class, deprecated in 1.31, have been
276 removed:
277 * getSaveBlacklist()
278 * loadPreferenceValues()
279 * getOptionFromUser()
280 * profilePreferences()
281 * skinPreferences()
282 * filesPreferences()
283 * datetimePreferences()
284 * renderingPreferences()
285 * editingPreferences()
286 * rcPreferences()
287 * watchlistPreferences()
288 * searchPreferences()
289 * miscPreferences()
290 * generateSkinOptions()
291 * getDateOptions()
292 * getImageSizes()
293 * getThumbSizes()
294 * validateSignature()
295 * cleanSignature()
296 * getTimezoneOptions()
297 * filterIntval()
298 * filterTimezoneInput()
299 * getTimeZoneList()
300 * mw.util.jsMessage(), deprecated in 1.20, was removed. Use mw.notify instead.
301 * (T61113) User::EDIT_TOKEN_SUFFIX was removed. It was deprecated since 1.27.
302 * The 'mediawiki.api' module aliases, deprecated in 1.32, have been removed.
303 Specifically: mediawiki.api.category, mediawiki.api.edit,
304 mediawiki.api.login, mediawiki.api.options, mediawiki.api.parse,
305 mediawiki.api.upload, mediawiki.api.user, mediawiki.api.watch,
306 mediawiki.api.messages, and mediawiki.api.rollback.
307 * The 'jquery.byteLimit' module alias for 'jquery.lengthLimit',
308 deprecated in 1.31, was removed.
309 * Revision::fetchRevision(), deprecated in 1.28, was removed.
310 * Class SquidUpdate, deprecated in 1.27, was removed.
311 * Title->getSquidURLs(), deprecated in 1.27, was removed. Instead, use
312 Title->getCdnUrls().
313 * Title::escapeFragmentForURL(), deprecated in 1.30, was removed. Use
314 Sanitizer::escapeIdForLink() or escapeIdForExternalInterwiki() instead.
315 * Title->canTalk(), deprecated in 1.30, was removed. Instead, use
316 Title->canHaveTalkPage().
317 * Title's methods for site and user page related to CSS and JS, deprecated in
318 1.31, were removed:
319 * Title->isCssOrJsPage() — Use Title->isSiteConfigPage()
320 * Title->isCssJsSubpage() – Use Title->isUserConfigPage()
321 * Title->getSkinFromCssJsSubpage() – Use Title->getSkinFromConfigSubpage()
322 * Title->isCssSubpage() – Use Title->isUserCssConfigPage()
323 * Title->isJsSubpage() – Use Title->isUserJsConfigPage()
324 * SiteSQLStore, deprecated in 1.27 and whose only method, ::newInstance(),
325 would return the global SiteStore instance, has been removed. You can get to
326 this via MediaWiki\MediaWikiServices::getInstance()->getSiteStore() directly.
327 * Linker::formatSize, deprecated in 1.28, has been removed (with DummyLinker's).
328 Instead, use Language->formatSize() with the relevant Language object.
329 * Linker::formatTemplates, deprecated in 1.28, has been removed (along with the
330 version in DummyLinker). You can use TemplatesOnThisPageFormatter directly.
331 * EventRelayerGroup::singleton(), deprecated in 1.27, has been removed. You can
332 use MediaWikiServices::getInstance()->getEventRelayerGroup() directly.
333 * LinkCache->addLink(), deprecated in 1.27, has been removed. It is thought to
334 be unused, and is distinct from OutputPage->addLink(), which remains.
335 * JsonContent->getJsonData(), deprecated in 1.25, has been removed. Instead, use
336 JsonContent->getData().
337 * MWExceptionHandler::getLogId(), deprecated in 1.27, has been removed, as the
338 exception ID is the same as the request ID, from WebRequest::getRequestId().
339 * SearchEngine::getNearMatchResultSet(), deprecated in 1.27, has been removed.
340 You can use SearchEngine::getNearMatcher() instead.
341 * EmailNotification::updateWatchlistTimestamp, deprecated in 1.27, has been
342 removed. Instead, use WatchedItemStore::updateNotificationTimestamp directly.
343 * User::getGroupName() and ::getGroupMember(), both deprecated in 1.29, have
344 been removed. Instead, please use UserGroupMembership::getGroupName() and
345 UserGroupMembership::getGroupMemberName().
346 * Backwards compatibility for setting wgSessionsInObjectCache to false or using
347 wgSessionHandler, both of which were deprecated in 1.27 with the introduction
348 of SessionManager, has been removed.
349 * SessionManager::autoCreateUser, deprecated in 1.27, has been removed. Use
350 MediaWiki\Auth\AuthManager::autoCreateUser instead.
351 * The mw.libs.jpegmeta property, deprecated in 1.31, was removed.
352 Use require( 'mediawiki.libs.jpegmeta' ) instead.
353 * The mw.user.stickyRandomId() method, deprecated in 1.32, was removed.
354 Use mw.user.getPageviewToken() instead.
355 * Removed deprecated class property WikiRevision::$importer.
356 * ResourceLoaderFileModule::readStyleFiles() now requires its $context
357 parameter.
358 * The ChangeList::insertArticleLink() method, that was deprecated in 1.27, has
359 been removed.
360 * MessageBlobStore::__construct() now requires its $rl parameter.
361 * Second parameter to Sanitizer::escapeIdReferenceList() (deprecated in 1.31)
362 has been removed.
363 * The 'jquery.xmldom' module has been removed.
364 * The 'jquery.mockjax' module has been removed.
365 * The 'jquery.hidpi' module, deprecated in 1.32, has been removed.
366 * AuthPlugin and related code, deprecated in 1.27, has been removed. Extensions
367 should instead use AuthManager. The following no longer exist:
368 * The AuthPlugin class itself and the related AuthPluginUser class and i18n
369 * The AuthPluginSetup and AuthPluginAutoCreate hooks
370 * The transitional wrapper classes AuthPluginPrimaryAuthenticationProvider,
371 AuthManagerAuthPlugin, and AuthManagerAuthPluginUser.
372 * The $wgAuth configuration setting and its use in Setup.php and unit tests
373 * (T217772) The 'wgAvailableSkins' mw.config key in JavaScript, was removed.
374 * Language::markNoConversion, deprecated in 1.32, has been removed. Use
375 LanguageConverter::markNoConversion instead.
376 * BagOStuff::modifySimpleRelayEvent() method has been removed.
377 * ParserOutput::getLegacyOptions, deprecated in 1.30, has been removed.
378 Use ParserOutput::allCacheVaryingOptions instead.
379 * CdnCacheUpdate::newSimplePurge, deprecated in 1.27, has been removed.
380 Use CdnCacheUpdate::newFromTitles() instead.
381 * Handling of multiple arguments by the Block constructor, deprecated in 1.26,
382 has been removed.
383 * The translation of main page in Sardinian (sc) was changed from "Pàgina Base"
384 to "Pàgina printzipale". Existing wikis using this content language need to
385 move the main page or change the name through MediaWiki:Mainpage page.
386 * wfSplitWikiID(), deprecated in 1.32, has been removed.
387 * MessageBlobStore::getBlob(), deprecated in 1.27, has been removed.
388 Use ::getBlobs() instead.
389 * The .background-size() LESS mixin, deprecated in 1.27, has been removed.
390 * ReadOnlyMode::clearCache() and ConfiguredReadOnlyMode::clearCache() have been
391 removed. Use MediaWikiTestCase::overrideMwServices() instead.
392
393 === Deprecations in 1.33 ===
394 * The configuration option $wgUseESI has been deprecated, and is expected
395 to be removed in a future release.
396 * The configuration option $wgSquidPurgeUseHostHeader has been deprecated,
397 and is expected to be removed in a future release.
398 * The configuration options $wgFixArabicUnicode and $wgFixMalayalamUnicode,
399 introduced in MW 1.17, have been deprecated. These fixes will always be
400 applied for Arabic and Malayalam in the future. Please enable these on
401 your local wiki (if you have them explicitly set to false) and run
402 maintenance/cleanupTitles.php to fix any existing page titles.
403 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
404 in 1.27 as part of the AuthManager re-write, now emits deprecation warnings.
405 This will help identify the issue if you added it to $wgAuthManagerConfig.
406 * wfSplitWikiId() is now deprecated. Cache key generation should have the wiki
407 domain ID as a key component and use makeGlobalKey().
408 * (T202094) Title::getUserCaseDBKey() is deprecated; instead, please use
409 Title::getDBKey(), which doesn't vary case.
410 * User::getPasswordValidity() is now deprecated. User::checkPasswordValidity()
411 returns the same information in a more useful format.
412 * For Linker::generateTOC() and Linker::tocList(), passing strings or booleans
413 as the $lang parameter was deprecated. The same applies to DummyLinker.
414 * The PasswordPolicy 'PasswordCannotBePopular' has been deprecated. To
415 follow best practices, it is reccommended to use 'PasswordNotInLargeBlacklist'
416 instead which blacklists 100,000 commonly used passwords.
417 * (T208862) Action::requiresUnblock() is now called from
418 Title::getUserPermissionsErrors() and Title::userCan(). Previously, the method
419 was only called in Action::checkCanExecute(). Actions should ensure that their
420 requiresUnblock() returns the proper result (the default is `true`).
421 * (T211608) The MediaWiki\Services namespace has been renamed to
422 Wikimedia\Services. The old name is still supported, but deprecated.
423 * (T155582) Content::getNativeData has been deprecated. Please use model-
424 specific getters, such as TextContent::getText().
425 * The class WebInstallerOutput is now marked as @private.
426 * (T209699) The jquery.async module has been deprecated. JavaScript code that
427 needs asynchronous behaviour should use Promises.
428 * Password::equals() is deprecated, use verify().
429 * BaseTemplate::msgWiki() and QuickTemplate::msgWiki() will be removed. Use
430 other means to fetch a properly escaped message string or Message object.
431 * (T126091) The 'ResourceLoaderTestModules' hook, which lets you declare QUnit
432 testing code for your JavaScript modules, is deprecated. Instead, you can now
433 use the new extension registration key 'QUnitTestModule'.
434 * (T213426) The jquery.throttle-debounce module has been deprecated. JavaScript
435 code that needs this behaviour should use OO.ui.debounce/throttle.
436 * The mw.language.specialCharacters property from the
437 'mediawiki.language.specialCharacters' module has been deprecated.
438 Use require( 'mediawiki.language.specialCharacters' ) instead.
439 * ChangeTags::purgeTagUsageCache() has been deprecated, and is expected to be
440 removed in a future release.
441 * Passing a User object or null as the third parameter to
442 ApiBase::checkTitleUserPermissions() has been deprecated. Pass an array
443 [ 'user' => $user ] instead.
444 * (T211578) Block::prevents is deprecated. Use Block::isEmailBlocked,
445 Block::isCreateAccountBlocked and Block::isUsertalkEditAllowed to get and set
446 block properties; use Block::appliesToRight and Block::appliesToUsertalk to
447 check block behaviour.
448 * The api-feature-usage log channel now has log context. The text message is
449 deprecated and will be removed in the future.
450 * The FileBasedSiteLookup class has been deprecated. For a cacheable SiteLookup
451 implementation, use CachingSiteStore instead.
452 * Language::viewPrevNext function is deprecated, use
453 SpecialPage::buildPrevNextNavigation instead
454 * ManualLogEntry::setTags() is deprecated, use ManualLogEntry::addTags()
455 instead. The setTags() method was overriding the tags, addTags() doesn't
456 override, only adds new tags.
457 * Block::isValid is deprecated, since it is no longer needed in core.
458 * Calling Maintenance::hasArg() as well as Maintenance::getArg() with no
459 parameter has been deprecated. Please pass the argument number 0.
460 * ResourceLoaderContext::expandModuleNames has been deprecated.
461 Use ResourceLoader::expandModuleNames instead.
462
463 === Other changes in 1.33 ===
464 * (T201747) Html::openElement() warns if given an element name with a space
465 in it.
466 * The implementation of buildStringCast() in Wikimedia\Rdbms\Database has
467 changed to explicitly cast. Subclasses relying on the base-class
468 implementation should check whether they need to override it now.
469 * BagOStuff::add is now abstract and must explicitly be defined in subclasses.
470 * LinksDeletionUpdate is now a subclass of LinksUpdate. As a consequence,
471 the following hooks will now be triggered upon page deletion in addition
472 to page updates: LinksUpdateConstructed, LinksUpdate, LinksUpdateComplete.
473 LinksUpdateAfterInsert is not triggered since deletions do not cause
474 insertions into links tables.
475 * Category::newFromID( $id )->getID() will now return $id without any
476 validation, to avoid a mostly unnecessary DB query.
477 * On Special:Version, the name for an extension can no longer be arbitrary
478 html when no link is specified.
479
480
481 = MediaWiki 1.32 =
482
483 == MediaWiki 1.32.3 ==
484
485 This is a maintenance release of the MediaWiki 1.32 branch.
486
487 === Changes since MediaWiki 1.32.2 ===
488 * (T225558) Update installer link to PHP intl.
489 * (T225496) Detect APC for MainCacheType in CLI installer.
490 * (T226766) Remove jetbrains/phpstorm-stubs from composer dev dependancies.
491 * (T202211) Fix SQLite patch-(image|page|template)links-fix-pk.sql column order.
492
493 == MediaWiki 1.32.2 ==
494
495 This is a security and maintenance release of the MediaWiki 1.32 branch.
496
497 === Changes since MediaWiki 1.32.1 ===
498 * (T204423) Backport support for hyphenated DB names in JobQueueGroup.
499 * (T216968) Return pageid as int in both list=iwbacklinks and
500 list=langbacklinks.
501 * (T215169) Fix for Database::update() with IGNORE option fails on PostgreSQL.
502 * (T199474) Fix typo in rebuildrecentchanges.php resulting in rogue flags.
503 * (T218608) SECURITY: Fix an issue that prevents Extension:OAuth working when
504 $wgBlockDisablesLogin is true.
505 * (T216029) Chrome redirects to Special:BadTitle after editing a section with
506 a non-Latin name on a page with non-Latin characters in title.
507 * Unbreak language related maintenance scripts that use StaticArrayWriter.
508 * (T219728) Added support for new Japanese era name "Reiwa".
509 * (T25227) SECURITY: action=logout now requires to be posted and have a csrf
510 token.
511 * Updated cssjanus/cssjanus from 1.2.0 to 1.3.0.
512 * (T221045) Remove orphaned code from ConfigRepository.
513 * (T222385) resourceloader: Use AND instead of OR for upsert conds in
514 saveFileDependencies().
515 * (T224374) Fix message parameters so that the message that says SQLite is
516 out of date makes sense.
517 * (T200471) Prevent LBFactorySimple breaking ExternalStorage, when trying to
518 connect to external server with local database name.
519 * (T197279) SECURITY: Fix reauth in Special:ChangeEmail.
520 * (T208881) SECURITY: blacklist CSS var().
521 * (T209794) SECURITY: rate-limit and prevent blocked users from changing email.
522 * (T199540) SECURITY: API: Respect $wgBlockCIDRLimit in action=block.
523 * (T212118) SECURITY: Fix cache mode for (un)patrolled recent changes query.
524 * (T222036, T222038) SECURITY: Add permission check for user is permitted to
525 view the log type.
526 * (T221739) SECURITY: resources: Patch jQuery 3.3.1 for CVE-2019-11358.
527
528 == MediaWiki 1.32.1 ==
529
530 === Changes since MediaWiki 1.32.0 ===
531 * (T213577) rdbms: avoid transaction status errors from ping() in rollback().
532 * rdbms: Pass required parameter.
533 * rdbms: do not treat SAVEPOINT and RELEASE SAVEPOINT as write queries.
534 * (T204531) rdbms: reduce LoadBalancer replication log spam.
535 * (T213489) Avoid session double-start in Setup.php.
536 * (T213717) Correct namespace 'Template' for gom-deva
537 * (T198054) Fix login page crash caused by unknown language via ?uselang
538 * (T215324) (T210937) list=users mistakenly reports user as missing.
539 * (T209483) Add ILBFactory::redefineLocalDomain method. This is intended for
540 use with scripts like addWiki.php to avoid mismatched domain errors.
541 * (T208871) The hard-coded Google search form on the database error page was
542 removed.
543 * (T204800) Fix Title::getFragmentForURL for bad interwiki prefix
544 * (T215566) Fix installer being unable to determine if the database exists
545 during a fresh installation.
546
547 == MediaWiki 1.32.0 ==
548
549 === Changes since MediaWiki 1.32.0-rc.2 ===
550 * (T188327) Fix slow queries in migrateActors.php.
551 * (T102320) Fix $magicWords for the Sanskrit language.
552
553 === Changes since MediaWiki 1.32.0-rc.1 ===
554 * Fix addition of ug_expiry column to user_groups table on MSSQL.
555 * (T210307) Fix the cache timestamp for forced updates.
556 * (T210621) User: Bypass repeatable-read when creating an actor_id.
557 * (T197535) Extensions can now specify PHP versions and PHP extensions they
558 depend on.
559 * Updated wikimedia/ip-set from v1.2.0 to v1.3.0.
560 * (T212356) When using action=delete on pages with many revisions, the module
561 may return a boolean-true 'scheduled' and no 'logid'. This signifies that the
562 deletion will be processed via the job queue.
563 * (T64103) Dropped columns category.cat_hidden, site_stats.ss_admins, and
564 recentchanges.rc_cur_time from the PostgreSQL schema.
565
566 === Changes since MediaWiki 1.32.0-rc.0 ===
567 * (T209885) Prevent populateSearchIndex.php from breaking once actor migration
568 has been started.
569 * (T210998) Properly set $wgLanguageCode in the generated LocalSettings.php
570 if --lang is used with the command-line installer (install.php).
571
572 === Configuration changes in 1.32 ===
573
574 ==== New configuration ====
575 * $wgJpegQuality – The quality of JPEG thumbnails is now configurable through
576 this setting. The default is 80, which matches the quality of JPEG thumbnails
577 previously generated by ImageMagick. The quality of JPEG thumbnails generated
578 by GD was previously 95, but now uses the $wgJpegQuality setting as well.
579 * $wgCookieSetOnIpBlock - This determines whether to set a cookie when an IP
580 user is blocked. Doing so means that a blocked user, even after moving to a
581 new IP address, will still be blocked.
582 * $wgRawHtmlMessages – This new configuration setting is added for listing
583 messages which are displayed as raw HTML.
584 * $wgCSPHeader and $wgCSPReportOnlyHeader – You can now define a
585 "Content Security Policy" for your wiki. This adds a defense-in-depth feature
586 to stop an attacker who has found a bug in the parser allowing them to insert
587 malicious attributes. Disabled by default. (T135963)
588 * $wgGroupPermissions – A new user group, 'interface-admin', is added for
589 controlling access to sitewide CSS/JS (and editing other users' CSS/JS). No
590 other group has 'editsitecss', 'editusercss', 'editsitejs' or 'edituserjs'
591 by default.
592 * $wgGrantPermissions – A new grant group, 'editsiteconfig', is added for
593 granting the above rights.
594 * $wgDBDefaultGroup – A default database group for use by maintenance scripts.
595 * $wgResourceLoaderEnableJSProfiler – This new configuration setting lets you
596 enable client-side profiling of JavaScript modules; it is off by default.
597 * (T193868) $wgChangeTagsSchemaMigrationStage — This temporary configuration
598 setting allows sysadmins to gradually migrate the database table schema for
599 how change tags are stored.
600 * (T199334) $wgTagStatisticsNewTable — This temporary configuration setting
601 allows sysadmins to enable the caching of Special:Tags via the new
602 change_tag_def table.
603
604 ==== Changed configuration ====
605 * $wgUseAjax – This setting, deprecated in 1.31, is now ignored.
606 * $wgDefaultUserOptions – The default watchlist view time (watchlistdays) has
607 been increased from 3 to 7 days. (T194414)
608 * $wgGroupPermissions – The right to edit sitewide Javascript
609 (e.g. MediaWiki:Common.js), CSS or JSON was separated from 'editinterface'
610 and is available under 'editsitejs'/'editsitecss'/'editsitejson'. Having
611 'editinterface' is still necessary to edit such pages.
612 * $wgMultiContentRevisionSchemaMigrationStage now defaults to writing both the
613 old and the new schema, but reading the new schema, so Multi-Content Revisions
614 (MCR) are now functional per default. The new default value of the setting is
615 SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW.
616 * $wgActorTableSchemaMigrationStage no longer accepts MIGRATION_WRITE_BOTH or
617 MIGRATION_WRITE_NEW. It instead uses SCHEMA_COMPAT_WRITE_BOTH |
618 SCHEMA_COMPAT_READ_OLD and SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_NEW
619 for intermediate stages of migration.
620 * $wgDBTableOptions – The default table options now use the binary charset. The
621 default was already overridden in the installer-generated LocalSettings.php,
622 and so is always set to binary after the installer UI option was removed. The
623 default value is only used when the installer installs an extension.
624 * $wgPopularPasswordFile — The location of the default popular passwords file
625 has been moved to be in line with other non-PHP files used by libraries and
626 classes.
627 * $wgEnableImageWhitelist is now disabled by default, as it opens up a hole for
628 potential privacy leaks by administrators. You can check
629 "MediaWiki:External image whitelist" on your wiki to see whether the feature
630 was ever used, and whether it needs to be re-enabled.
631
632 ==== Removed configuration ====
633 * $wgEnableAPI and $wgEnableWriteAPI – These settings, deprecated in 1.31,
634 have been removed. (T115414)
635 * $wgSiteSupportPage – This setting, unused since 1.5, was removed.
636 * $wgBrowserBlacklist – This setting, deprecated in 1.30, was removed.
637 * $wgExperimentalHtmlIds – This setting, deprecated since 1.30, was removed.
638 The 'html5-legacy' value for $wgFragmentMode is no longer accepted.
639 * $wgPasswordSenderName - This setting, ignored since 1.23 by MediaWiki and
640 most extensions, is no longer set. Instead, you can modify the system
641 message `emailsender`.
642 * $wgTidyConfig – The experimental Html5Internal and Html5Depurate tidy drivers
643 were removed. RemexHtml, which is the default, should be used instead.
644 * (T181318) The $wgStyleVersion setting and its appendage to various script and
645 style URLs in OutputPage, deprecated in 1.31, was removed.
646 * (T140807) The wgResourceLoaderLESSImportPaths configuration option was removed
647 from ResourceLoader. Instead, use `@import` statements in LESS to import
648 files directly from nearby directories within the same project.
649 * (T140804) The wgResourceLoaderLESSVars configuration option, deprecated
650 since 1.30, was removed. Instead, to expose variables from PHP to LESS, use
651 the ResourceLoaderModule::getLessVars() method.
652 * $wgResourceLoaderValidateStaticJS – This setting, unused since MediaWiki 1.18,
653 was removed.
654 * Two temporary variables for deploying the feature of filters on change lists,
655 $wgStructuredChangeFiltersShowPreference introduced in MediaWiki 1.30 and
656 $wgStructuredChangeFiltersOnWatchlist in 1.31, were removed.
657
658 === New features in 1.32 ===
659 * (T112474) Generalized the ResourceLoader mechanism for overriding modules
660 using a particular page during edit previews.
661 * (T12331) You can now log page creation events by setting $wgPageCreationLog
662 to true.
663 * Added 'ApiParseMakeOutputPage' hook.
664 * (T174313) Added checkbox on Special:ListUsers to display only users in
665 temporary user groups.
666 * (T152462) A cookie can now be set when an IP user is blocked to track that
667 user if they move to a new IP address. This is disabled by default.
668 * (T194950) Added 'ApiMaxLagInfo' hook.
669 * SpecialPage::checkLoginSecurityLevel() will now preserve POST data when
670 reauthenticating.
671 * FormSpecialPage::execute() will now call checkLoginSecurityLevel() if
672 getLoginSecurityLevel() returns non-false.
673 * The 'ImageBeforeProduceHTML' hook is now passed three new parameters, $parser,
674 &$query and &$widthOption, allowing extensions even finer control over the
675 resulting HTML code.
676 * Added new 'ArticleShowPatrolFooter' hook, which allows extensions to determine
677 if the [mark as patrolled] link should be shown at the footer of patrollable
678 pages.
679 * The array of hidden options ($opts) passed to the 'SpecialSearchPowerBox' hook
680 is now passed by reference, allowing extensions to modify or even unset it.
681 * Added new 'OutputPageAfterGetHeadLinksArray' hook, allowing extensions to
682 modify the return value of OutputPage#getHeadLinksArray in order to add,
683 remove or otherwise alter the elements to be output in the page <head>.
684 * (T28934) The 'HistoryPageToolLinks' hook allows extensions to append
685 additional links to the subtitle of a history page.
686 * The 'GetLinkColours' hook now receives an additional $title parameter,
687 the Title object of the page being parsed, on which the links will be shown.
688 * (T194731) DifferenceEngine supports multiple slots. Added SlotDiffRenderer to
689 render diffs between two Content objects, and DifferenceEngine::setRevisions()
690 to render diffs between two custom (potentially multi-content) revisions.
691 Added GetSlotDiffRenderer hook which works like GetDifferenceEngine for slots.
692 * Added a temporary action=mcrundo to the web UI, as the normal undo logic
693 can't yet handle MCR and deadlines are forcing is to put off fixing that.
694 This action should be considered deprecated and should not be used directly.
695 * Extensions overriding ContentHandler::getUndoContent() will need to be
696 updated for the changed method signature.
697 * Added a new hook, 'UserGetRightsRemove', which can be used to remove rights
698 from user. Unlike the 'UserGetRights' it will ensure that removed rights
699 will not be reinserted.
700 * (T197535) Extensions can now specify PHP versions and PHP extensions they
701 depend on.
702
703 === External library changes in 1.32 ===
704
705 ==== New external libraries ====
706 * Added pear/Net_SMTP v1.8.0.
707 * Added wikimedia/xmp-reader v0.6.0.
708
709 * Added cache/integration-tests v0.16.0 (dev-only).
710 * Added giorgiosironi/eris v0.10.0 (dev-only).
711 * Added seld/jsonlint v1.7.1 (dev-only).
712
713 * Added EasyDeflate (unversioned).
714
715 ==== Changed external libraries ====
716 * Updated OOUI from v0.26.3 to v0.29.2.
717 * Updated wikimedia/base-convert from v1.0.1 to v2.0.0.
718 * Updated wikimedia/remex-html from v1.0.3 to v2.0.1.
719 * Updated wikimedia/scoped-callback from v1.0.0 to v2.0.0.
720 ** ScopedCallback objects can no longer be serialized.
721 * Updated wikimedia/timestamp from v1.0.0 to v2.2.0.
722 * Updated wikimedia/wrappedstring from v2.3.0 to v3.0.1.
723 * oyejorge/less.php replaced with our fork wikimedia/less.php
724 * Updated wikimedia/ip-set from v1.2.0 to v1.3.0.
725
726 * Updated composer/spdx-licenses from v1.3.0 to v1.4.0 (dev-only).
727 * Updated mediawiki/mediawiki-codesniffer from v18.0.0 to v22.0.0 (dev-only).
728 * Updated psy/psysh from v0.8.11 to v0.9.6 (dev-only).
729
730 * Updated CLDRPluralRuleParser from v0.1.0 to v1.3.2-pre.
731 * Updated jquery from v3.2.1 to v3.3.1.
732 * Updated jquery.client from v2.0.0 to v2.0.1.
733 * Updated jquery.i18n from v1.0.4 to v1.0.5.
734 * Updated mustache.js from v0.8.2-d9aa703 to v1.0.0.
735 * Updated OOjs from v2.2.0 to v2.2.2.
736 * Updated qunitjs from v2.4.0 to v2.6.2.
737 * Updated sinonjs from v1.17.3 to v1.17.7.
738
739 ==== Removed external libraries ====
740 * pear/mail_mime-decode was removed.
741
742 === Bug fixes in 1.32 ===
743 * SpecialPage::execute() will now only call checkLoginSecurityLevel() if
744 getLoginSecurityLevel() returns non-false.
745 * (T43720, T46197) Improved page display title handling for category pages
746 * (T65080) Fixed resetting options of some types via API action=options.
747
748 === Action API changes in 1.32 ===
749 * Added templated parameters.
750 * A module can define a templated parameter like "{fruit}-quantity", where
751 the actual parameters recognized correspond to the values of a multi-valued
752 parameter. Then clients can make requests like
753 "fruits=apples|bananas&apples-quantity=1&bananas-quantity=5".
754 * action=paraminfo will return templated parameter definitions separately
755 from normal parameters. All parameter definitions now include an "index"
756 key to allow clients to maintain parameter ordering when merging normal and
757 templated parameters.
758 * It is now an error to submit too many values for a multi-valued parameter.
759 This has generated a warning since MediaWiki 1.14.
760 * Assertion failures from the 'assert' and 'assertuser' parameters will no
761 longer use the action module's custom response format, for the few modules
762 that use custom formatters that handle errors.
763 * (T198935) User list preferences such as `email-blacklist` and similar
764 extension preferences are no longer represented as arrays when returned by
765 action=query&meta=userinfo&uiprop=options.
766 * 'missingparam' errors will now use the prefixed parameter name in the code
767 and error text, e.g. "noxxfoo" and "The 'xxfoo' parameter must be set" rather
768 than "nofoo" and "The 'foo' parameter must be set".
769 * action=query&prop=revisions now takes a 'rvslots' parameter to indicate the
770 multi-content revision slots for which content should be returned. It also
771 has a new rvprop, 'roles', to indicate which roles have slots. A deprecation
772 warning will be issued if rvprop=content or rvprop=contentmodel are used
773 without rvslots.
774 * The rvcontentformat parameter to action=query&prop=revisions has been
775 deprecated. Clients should be prepared to deal with the default format for
776 relevant models.
777 * Use of the deprecated parameters rvexpandtemplates, rvgeneratexml, rvparse,
778 rvdiffto, rvdifftotext, rvdifftotextpst, rvcontentformat, or the deprecated
779 rvprop=parsetree is forbidden with the new 'rvslots' parameter.
780 * action=query&prop=deletedrevisions, action=query&list=allrevisions, and
781 action=query&list=alldeletedrevisions are changed similarly to
782 &prop=revisions (see the three previous items).
783 * (T174032) action=compare now supports multi-content revisions.
784 * It has a 'slots' parameter to select diffing of individual slots. The
785 default behavior is to return one combined diff.
786 * The 'fromtext', 'fromsection', 'fromcontentmodel', 'fromcontentformat',
787 'totext', 'tosection', 'tocontentmodel', and 'tocontentformat' parameters
788 are deprecated. Specify the new 'fromslots' and 'toslots' to identify which
789 slots have text supplied and the corresponding templated parameters for
790 each slot.
791 * The behavior of 'fromsection' and 'tosection' of extracting one section's
792 content is not being preserved. 'fromsection-{slot}' and 'tosection-{slot}'
793 instead expand the given text as if for a section edit. This effectively
794 declines T183823 in favor of T185723.
795 * (T198214) The 'disabletidy' parameter to action=parse has been
796 deprecated; untidy output will not be supported by future wikitext
797 parsers.
798 * Added intestactionsdetail to action=query&prop=info to allow retrieving the
799 reasons an action is not allowed.
800 * Deprecated action=query&prop=info inprop=readable in favor of
801 intestactions=read.
802 * (T212356) When using action=delete on pages with many revisions, the module
803 may return a boolean-true 'scheduled' and no 'logid'. This signifies that the
804 deletion will be processed via the job queue.
805
806 === Action API internal changes in 1.32 ===
807 * Added 'ApiParseMakeOutputPage' hook.
808 * Parameter names may no longer contain '{' or '}', as these are now used for
809 templated parameters.
810 * (T194950) Added 'ApiMaxLagInfo' hook.
811 * The following methods now take a RevisionRecord rather than a Revision. No
812 external callers are known.
813 * ApiFeedContributions::feedItemAuthor()
814 * ApiFeedContributions::feedItemDesc()
815 * ApiQueryRevisionsBase::extractRevisionInfo()
816 * The following deprecated methods have been removed:
817 * ApiBase::profileIn() (deprecated in 1.25)
818 * ApiBase::profileOut() (deprecated in 1.25)
819 * ApiBase::safeProfileOut() (deprecated in 1.25)
820 * ApiBase::profileDBIn() (deprecated in 1.25)
821 * ApiBase::profileDBOut() (deprecated in 1.25)
822 * ApiBase::dieUsage() (deprecated in 1.29)
823 * ApiBase::dieUsageMsg() (deprecated in 1.29)
824 * ApiBase::dieUsageMsgOrDebug() (deprecated in 1.29)
825 * ApiBase::getErrorFromStatus() (deprecated in 1.29)
826 * ApiBase::parseMsg() (deprecated in 1.29)
827 * ApiBase::setWarning() (deprecated in 1.29)
828 * ApiPageSet::getInvalidTitles() (deprecated in 1.26)
829 * ApiQueryLogEvents::addLogParams() (deprecated in 1.25)
830 * ApiUsageException::getCodeString() (deprecated in 1.29)
831 * ApiUsageException::getMessageArray() (deprecated in 1.29)
832 * Class UsageException, deprecated in 1.29, has been removed.
833 * ApiErrorFormatter: Added getFormat() and newWithFormat(). In particular, you
834 can now easily test $formatter->getFormat() === 'bc', and then call
835 $formatter->newWithFormat( 'plaintext' ) to get a non-BC formatter.
836
837 === Languages updated in 1.32 ===
838 MediaWiki supports over 350 languages. Many localisations are updated regularly.
839 Below only new and removed languages are listed, as well as changes to languages
840 because of Phabricator reports.
841
842 * (T193566) Added language support for Ambonese Malay (abs).
843 * (T194047) Added language support for Shawiya, Latin script (shy-latn).
844 * (T195940) Added language support for Batak Mandailing (btm).
845 * (T137491) Added language support for Standard Moroccan Amazigh (zgh).
846 * (T198132) Added language support for Manipuri (mni).
847 * (T201276) Added language support for Western Armenian (hyw).
848 * (T201583) Added language support for Mon (mnw).
849
850 === Breaking changes in 1.32 ===
851 * $wgRequestTime, deprecated in 1.25, was removed. Use
852 $_SERVER['REQUEST_TIME_FLOAT'] or WebRequest::getElapsedTime() instead.
853 * The MediaWikiI18N class, deprecated in 1.31, was removed.
854 * QuickTemplate::setTranslator(), deprecated in 1.31, was removed. Use
855 Skin::msg() instead.
856 * wfInitShellLocale(), deprecated in 1.30, was removed.
857 * wfShellExecDisabled(), deprecated in 1.30, was removed.
858 * The type string for the parameter $lang of DateFormatter::getInstance,
859 deprecated in 1.31, was removed.
860 * The EDIT_TOKEN_SUFFIX constant deprecated in 1.27, was removed. Use
861 MediaWiki\Session\Token::SUFFIX instead.
862 * EditPage::isOouiEnabled() deprecated in 1.30, was removed.
863 * mw.util.wikiGetlink(), deprecated in 1.23, was removed. Use mw.util.getUrl()
864 instead.
865 * (T61113) The following methods and constants from the Revision class, which
866 were deprecated in 1.25, have now been removed:
867 * Revision::getRawUser()
868 * Revision::getRawUserText()
869 * Revision::getRawComment()
870 * window.gM() from mediawiki.jqueryMsg, deprecated in 1.23, was removed. Use
871 mw.msg() or mw.message() instead.
872 * mw.util.escapeId(), deprecated in 1.30, was removed. Use
873 mw.util.escapeIdForAttribute or mw.util.escapeIdForLink instead.
874 * mw.util.updateTooltipAccessKeys(), deprecated in 1.24, was removed. Use
875 jquery.accessKeyLabel instead.
876 * The SqlDataUpdate class, deprecated in 1.28, has been removed.
877 * The Html5Internal and Html5Depurate tidy driver classes were removed, along
878 with the Balancer tidy implementation. Both implementations were experimental,
879 and were replaced by RemexHtml.
880 * (T179624) Job::insert() and ::batchInsert(), deprecated in 1.21, were both
881 removed. Use JobQueueGroup::singleton()->push() instead.
882 * The jquery.footHovzer module, for mediawiki.debug, was removed.
883 * The es5-shim module, empty and deprecated since 1.29, was removed.
884 * the dom-level2-shim module, empty and deprecated since 1.29, was removed.
885 * the json module, empty and deprecated since 1.29, was removed.
886 * The mediawiki.widgets.visibleByteLimit module alias, deprecated in 1.32, was
887 removed. Use mediawiki.widgets.visibleLengthLimit instead.
888 * The jquery.farbtastic module, unused since 1.18, was removed.
889 * The 'jquery.expandableField' module, unused since 1.22, was removed.
890 * The hooks 'PreferencesFormPreSave' and 'PreferencesGetLegend' may provide
891 any HTMLForm object rather than PreferencesForm.
892 * The non namespaced TimestampException class, deprecated in 1.29, was removed.
893 Use Wikimedia\Timestamp\TimestampException instead.
894 * The global functions codepointToUtf8, hexSequenceToUtf8, utf8ToHexSequence,
895 utf8ToCodepoint, and escapeSingleString (deprecated in 1.25) were removed.
896 The UtfNormal\Utils class from the utfnormal library should be used instead.
897 * The deprecated UTF8_ and UNICODE_ constants were removed. The class constants
898 from the UtfNormal\Constants class from the utfnormal library should be used
899 * The protected methods PHPSessionHandler::returnSuccess() and returnFailure(),
900 only needed for PHP5 compatibility, have been removed. It now uses the boolean
901 values `true` and `false` respectively.
902 * The $parserMemc global and wfGetParserCacheStorage(), deprecated since 1.30,
903 were removed. Use the ParserCache class instead.
904 * ScopedCallback (deprecated in 1.28) was removed. Use Wikimedia\ScopedCallback
905 instead.
906 * Support for ResourceLoaderModule::getModifiedTime() and getModifiedHash(),
907 deprecated since 1.26, was removed. Use getDefinitionSummary() instead.
908 * (T195256) Skins are recommended not to rely on JavaScript for the "mw-jump"
909 and "jump-to-nav" accessibility links. To this end, the "jquery.mw-jump"
910 is no longer loaded by default. The Vector and MonoBook skins have made a
911 minor change to implement the toggle feature with CSS instead. To restore
912 prior functionality, either explicitly load "jquery.mw-jump" in your skin
913 or refer to T195256 for details on how to make the same change.
914 * Hook 'EditPageBeforeEditChecks' was removed;
915 use 'EditPageGetCheckboxesDefinition' instead.
916 * Linker::getLinkColour() and DummyLinker::getLinkColour(), deprecated since
917 1.28, were removed. LinkRenderer::getLinkClasses() should be used instead.
918 * Wikimedia\Rdbms\LoadBalancer::getLaggedSlaveMode(), deprecated in 1.28, has
919 been removed. Use Wikimedia\Rdbms\LoadBalancer::getLaggedReplicaMode()
920 instead.
921 * mw.widgets.CategoryMultiselectWidget now uses TagMultiselectWidget instead of
922 CapsuleMultiselectWidget. The following methods may no longer be used:
923 * setItemsFromData: Use setValue instead
924 * getItemsData: Use getItems instead and get the data property
925 * Two OutputPage methods, addMetadataLink() and getMetadataAttribute(), were
926 removed. Use addLink() instead.
927 * Another two OutputPage methods, setPageTitleActionText() and
928 getPageTitleActionText(), were removed. They did nothing since 1.15 (almost
929 ten years). Use setHTMLTitle() directly.
930 * The return value of OutputPage::adaptCdnTTL() has been removed. The
931 value returned was misleading and probably not what any caller would
932 have wanted.
933 * All MagicWord static member variables have been removed. Use appropriate
934 hooks or MagicWordFactory methods instead.
935 * MagicWord::clearCache() has been removed. Instead, create a new
936 MagicWordFactory, such as by calling
937 resetServiceForTesting( 'MagicWordFactory' ) on a MediaWikiServices.
938 * mw.util.init() has been removed. This function is not needed anymore and was
939 a no-op function since 1.30.
940 * SpecialPageFactory::resetList() is a no-op. Call overrideMwServices()
941 instead.
942 * MediaWiki no longer supports a StartProfiler.php file. Instead, you can set
943 $wgProfiler and $wgEnableProfileInfo.
944 * The mw.loader.addSource() is now considered a private method, and no longer
945 supports the `id, url` signature. Use the `Object` parameter instead.
946 * The backwards-compatibility code in HTMLForm to add a drop-down control to an
947 option that is not set to be a drop-down if the "mw-chosen" class is present,
948 is now removed.
949 * Several collations were removed. They were workarounds for bugs in the ICU
950 library and they are no longer needed (as of ICU 57.1):
951 * 'uppercase-se' (NorthernSamiUppercaseCollation) - use 'uca-se' instead
952 * 'xx-uca-et' (CollationEt) - use 'uca-et' instead
953 * 'xx-uca-fa' (CollationFa) - use 'uca-fa' instead
954 * LanguageCode::bcp47() now always returns a valid BCP 47 code. This means
955 that some MediaWiki-specific language codes, such as `simple`, are mapped
956 into valid BCP 47 codes (eg `en-simple`).
957 * The hooks 'SpecialRecentChangesFilters' & 'SpecialWatchlistFilters' deprecated
958 in 1.23 were removed. Instead, use 'ChangesListSpecialPageStructuredFilters'.
959 The ChangesListSpecialPage code for these legacy hooks, and their use in
960 SpecialRecentchanges.php and SpecialWatchlist, was also removed:
961 * ChangesListSpecialPage->getCustomFilters()
962 * ChangesListSpecialPage->getFilterGroupDefinitionFromLegacyCustomFilters()
963 * ChangesListSpecialPage::customFilters
964 * The global function wfUseMW, deprecated since 1.26, has now been removed. Use
965 the "requires" property of static extension registration instead.
966 * $wgSpecialPages no longer accepts array syntax, deprecated since 1.18.
967 * The MailAddress constructor can no longer be called with a User object,
968 behaviour which has been deprecated since 1.24.
969 * LBFactory, deprecated since 1.28, has been removed. Instead, use
970 Wikimedia\Rdbms\LBFactory.
971 * The MimeMagic class, deprecated since 1.28 has been removed. Get a
972 MimeAnalyzer instance from MediaWikiServices instead.
973 * The '--tidy' option to maintenance/parse.php has been removed. Tidying
974 the output is now the default. Use '--no-tidy' to bypass the tidy
975 phase.
976 * The global function wfErrorLog, deprecated since 1.25, has now been removed.
977 Use MWLoggerLegacyLogger::emit or UDPTransport.
978 * The hooks 'SpecialRecentChangesQuery' & 'SpecialWatchlistQuery', deprecated in
979 1.23, were removed. Instead, use ChangesListSpecialPageStructuredFilters or
980 ChangesListSpecialPageQuery.
981 * The global function wfUsePHP, deprecated since 1.30, has now been removed. To
982 assert a newer version of PHP than MediaWiki does, use extension registration.
983 * The hook 'ChangesListSpecialPageFilters', deprecated in 1.29, has now been
984 removed. Use the 'ChangesListSpecialPageStructuredFilters' hook instead.
985 * DeferredUpdates::setImmediateMode(), deprecated since 1.29, has been removed.
986 * File / MediaHandler::getStreamHeaders(), deprecated since 1.30, was removed.
987 * The hook 'DoEditSectionLink', deprecated since 1.25, has been removed. Use
988 the hook 'SkinEditSectionLinks' instead.
989 * The hook 'UserGetImplicitGroups', deprecated since 1.25, has been removed.
990 * The global function wfRunHooks, deprecated since 1.25, has now been removed.
991 Use Hooks::run().
992 * The hook 'UnknownAction', deprecated since 1.19, has now been removed.
993 * The hook 'ParserLimitReport', deprecated since 1.22, has been removed. Use
994 the hooks 'ParserLimitReportPrepare' and 'ParserLimitReportFormat' instead.
995 * The following deprecated API methods have been removed:
996 * ApiBase::profileIn() (deprecated in 1.25)
997 * ApiBase::profileOut() (deprecated in 1.25)
998 * ApiBase::safeProfileOut() (deprecated in 1.25)
999 * ApiBase::profileDBIn() (deprecated in 1.25)
1000 * ApiBase::profileDBOut() (deprecated in 1.25)
1001 * ApiBase::dieUsage() (deprecated in 1.29)
1002 * ApiBase::dieUsageMsg() (deprecated in 1.29)
1003 * ApiBase::dieUsageMsgOrDebug() (deprecated in 1.29)
1004 * ApiBase::getErrorFromStatus() (deprecated in 1.29)
1005 * ApiBase::parseMsg() (deprecated in 1.29)
1006 * ApiBase::setWarning() (deprecated in 1.29)
1007 * ApiPageSet::getInvalidTitles() (deprecated in 1.26)
1008 * ApiQueryLogEvents::addLogParams() (deprecated in 1.25)
1009 * ApiUsageException::getCodeString() (deprecated in 1.29)
1010 * ApiUsageException::getMessageArray() (deprecated in 1.29)
1011 * Class UsageException, deprecated in 1.29, has been removed.
1012 * MediaWiki no longer has a 'JavaScript-powered' wikitext toolbar built in. The
1013 old "bulletin board style toolbar", known as "the 2006 wikitext editor", has
1014 been removed, and instead sysadmins will be required to choose one (or more)
1015 of the several extensions available for this purpose if they need the
1016 functionality. The MediaWiki "tarball" releases have included the replacement
1017 extension for this, the WikiEditor extension aka "the 2010 wikitext editor",
1018 for many years now. As part of this, several parts of MediaWiki have been
1019 removed or simplified:
1020 * The user option 'showtoolbar' (shown as "Show edit toolbar") is no longer
1021 available; if an extension adds a toolbar via the EditPageBeforeEditToolbar
1022 hook, it will be shown; extensions should provide a specific user preference
1023 to disable themselves as needed.
1024 * The public methods Language::getImageFile() and ::getImageFiles(), and the
1025 related specification of $imageFiles within individual languages' code file,
1026 as well as the referenced static media assets, all of which were only used
1027 inside MediaWiki itself for providing the icons for the old toolbar, have
1028 been removed without explicit deprecation.
1029 * The internal ResourceLoader module "mediawiki.toolbar", which is unused
1030 except by MediaWiki itself and back-compatibility code, has been removed.
1031 * The internal ResourceLoaderEditToolbarModule class has been removed.
1032
1033 === Deprecations in 1.32 ===
1034 * HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit
1035 button is already marked as progressive.
1036 * Skin::setupSkinUserCss() is deprecated. Adding of modules to load
1037 has been centralised to Skin::getDefaultModules(), which is now capable
1038 of queueing style modules as well.
1039 * OutputPage::addModuleScripts() and ParserOutput::addModuleScripts are
1040 deprecated. Use addModules() instead.
1041 * Overriding SearchEngine::{searchText,searchTitle,searchArchiveTitle}
1042 in extending classes is deprecated. Extend related doSearch* methods
1043 instead.
1044 * The following 'mediawiki.api' plugin modules were merged into mediawiki.api
1045 and deprecated: mediawiki.api.category, mediawiki.api.edit,
1046 mediawiki.api.login, mediawiki.api.options, mediawiki.api.parse,
1047 mediawiki.api.upload, mediawiki.api.user, mediawiki.api.watch,
1048 mediawiki.api.messages, and mediawiki.api.rollback.
1049 * ApiBase::truncateArray() is deprecated. No replacement, as nothing is known
1050 to use it.
1051 * WatchAction::getUnwatchToken is deprecated. Use WatchAction::getWatchToken
1052 with the 'unwatch' action parameter instead.
1053 * IcuCollation::getICUVersion() is deprecated, as you can just use the PHP
1054 constant INTL_ICU_VERSION directly in all versions that MediaWiki supports.
1055 * Parser::fetchFile() is deprecated. Use ::fetchFileAndTitle() instead.
1056 * The ApiQueryContributions class has been renamed to ApiQueryUserContribs.
1057 * The XMPInfo, XMPReader, and XMPValidate classes have been deprecated in favor
1058 of the namespaced classes provided by the wikimedia/xmp-reader library.
1059 * SearchResultSet::{next,rewind} are deprecated. Calling code should
1060 use foreach on the SearchResultSet, or the extractResults method. Extending
1061 code should override extractResults.
1062 * Instantiating SearchResultSet directly is deprecated. SearchEngine
1063 implementations must subclass SearchResultSet for their purposes.
1064 * SearchResult::setExtensionData argument has been changed from accepting an
1065 array to accepting a Closure that returns the array when called.
1066 * Class CryptRand, everything in MWCryptRand except generateHex() and function
1067 MediaWikiServices::getInstance()->getCryptRand() are deprecated, use
1068 random_bytes() to generate cryptographically secure random byte sequences.
1069 * Parser::getConverterLanguage() is deprecated. Use ::getTargetLanguage()
1070 instead.
1071 * Language::markNoConversion() is deprecated. It confused readers because
1072 it had unexpected behavior (only marking text if it looked like a URL)
1073 and was only used in a single place in the code. Use
1074 LanguageConverter::markNoConversion() instead.
1075 * (T197492) Language::truncate() was soft deprecated in 1.31 and is
1076 hard deprecated in this release. It has been split into two similar
1077 methods, Language::truncateForVisual() and Language::truncateForDatabase(),
1078 which measure length in characters and bytes, respectively. Use
1079 Language::truncateForVisual() when possible to provide equity to users
1080 of multibyte scripts.
1081 * (T176526) EditPage::getContextTitle() falling back to $wgTitle when the
1082 context title is unset is now deprecated; anything creating an EditPage
1083 instance should set the context title via ::setContextTitle().
1084 * The 'jquery.hidpi' module (polyfill for IMG srcset) is deprecated.
1085 * ResourceLoaderStartUpModule::getStartupModules() and ::getLegacyModules()
1086 are deprecated. These concepts are obsolete and have no replacement.
1087 * String type for $lang of DifferenceEngine::setTextLanguage is deprecated.
1088 * The following methods of OutputPage are now deprecated in favour
1089 of using showFatalError directly: OutputPage::showFileDeleteError()
1090 OutputPage::showFileNotFoundError(), OutputPage::showFileRenameError()
1091 OutputPage::showFileCopyError() and OutputPage::showUnexpectedValueError().
1092 * The Replacer, DoubleReplacer, HashtableReplacer, and RegexlikeReplacer
1093 classes are now deprecated. Use a Closure instead.
1094 * (T194263) ContentHandler::makeParserOptions() is deprecated. Use
1095 WikiPage::makeParserOptions() or ParserOptions::newCanonical() instead.
1096 * (T100681) Use of the Parsoid v1 API with the VirtualRESTService, deprecated in
1097 MediaWiki 1.26, is now hard-deprecated. All known clients were converted to
1098 the Parsoid v3 API in May 2015.
1099 * $input is deprecated in hook 'LogEventsListGetExtraInputs'. Use
1100 $formDescriptor instead.
1101 * SearchEngine::transformSearchTerm( $term ) should no longer be called prior
1102 to running searchText. This method was mainly implemented to support the
1103 'prefix' URI param in SpecialSearch, but there are no reasons to expose this
1104 logic as it should be handled internally by SearchEngine implementations
1105 supporting this feature. SearchEngine implementations should no longer
1106 override this methods.
1107 * SearchEngine::replacePrefixes( $query ) should no longer be called prior
1108 to running searchText/searchTitle.
1109 * (T199657) Messages for $wgFilterLogTypes labels should be no longer be in the
1110 'log-show-hide-[type]' format. Instead use 'logeventslist-[type]-log'.
1111 * Global functions wfArrayFilter() and wfArrayFilterByKey() are deprecated.
1112 use array_filter() directly.
1113 * The $wgShowSQLErrors global is deprecated and nonfunctional.
1114 Set $wgShowExceptionDetails and/or $wgShowHostnames instead.
1115 * The $wgShowDBErrorBacktrace global is deprecated and nonfunctional.
1116 Set $wgShowExceptionDetails instead.
1117 * Public access to the DifferenceEngine properties mOldid, mNewid, mOldRev,
1118 mNewRev, mOldPage, mNewPage, mOldContent, mNewContent, mRevisionsLoaded,
1119 mTextLoaded and mCacheHit is deprecated. Use getOldid() / getNewid() /
1120 getOldRevision() / getNewRevision() for the first four (note that the
1121 revision ones return a RevisionRecord, not a Revision), do your own lookup
1122 for page/content.
1123 * The $wgExternalDiffEngine value 'wikidiff2' is deprecated. To use wikidiff2
1124 just enable the PHP extension, and it will be autodetected.
1125 * (T194731) DifferenceEngine properties mOldContent and mNewContent and methods
1126 setContent(), generateContentDiffBody(), generateTextDiffBody() and textDiff()
1127 are deprecated. To interact with a single slot, use a SlotDiffRenderer (and
1128 subclass it to customize diff rendering); to diff custom (e.g. unsaved)
1129 content, use setRevisions(). Subclassing DifferenceEngine should only be done
1130 to customize page-level diff properties (such as the navigation header).
1131 * The wfUseMW function, soft-deprecated in 1.26, is now hard deprecated.
1132 * All MagicWord static methods are now deprecated. Use the MagicWordFactory
1133 methods instead.
1134 * PasswordFactory::init is deprecated. To get a password factory with the
1135 standard configuration, use
1136 MediaWikiServices::getInstance()->getPasswordFactory.
1137 * $wgContLang is deprecated, use
1138 MediaWikiServices::getInstance()->getContentLanguage() instead.
1139 * $wgParser is deprecated, use MediaWikiServices::getInstance()->getParser()
1140 instead.
1141 * wfGetMainCache() is deprecated, use ObjectCache::getLocalClusterInstance()
1142 instead.
1143 * wfGetCache() is deprecated, use ObjectCache::getInstance() instead.
1144 * All SpecialPageFactory static methods are deprecated. Instead, call the
1145 methods on a SpecialPageFactory instance, which may be obtained from
1146 MediaWikiServices.
1147 * mw.user.stickyRandomId was renamed to the more explicit
1148 mw.user.getPageviewToken to better capture its function.
1149 * Passing Revision objects to ContentHandler::getUndoContent() is deprecated,
1150 Content object should be passed instead.
1151 * (T197179) Parameters 'notice', 'notice-messages', 'notice-message',
1152 previously used by OOUI HTMLForm fields, are now deprecated. Use
1153 'help', 'help-message', 'help-messages' instead.
1154 * (T197179) HTMLFormField::getNotices() is now deprecated.
1155 * The jquery.localize module is now deprecated. Use jquery.i18n instead.
1156 * The SecondaryDataUpdates hook was deprecated in favor of RevisionDataUpdates,
1157 or overriding ContentHandler::getSecondaryDataUpdates (T194038).
1158 * The WikiPageDeletionUpdates hook was deprecated in favor of
1159 PageDeletionDataUpdates, or overriding ContentHandler::getDeletionDataUpdates
1160 (T194038).
1161 * Content::getSecondaryDataUpdates has been deprecated in favor of
1162 ContentHandler::getSecondaryDataUpdates() for overriding by extensions
1163 (T194038).
1164 Application logic should call WikiPage::doSecondaryDataUpdates() (T194037).
1165 * Content::getDeletionUpdates has been deprecated in favor of
1166 ContentHandler::getDeletionUpdates() for overriding by extensions (T194038).
1167 Application logic should call WikiPage::doSecondaryDataUpdates() (T194037).
1168 * (T198214) Old Tidy-related configuration settings, which were soft-deprecated
1169 in MediaWiki 1.26, have now been hard deprecated. This affects $wgUseTidy,
1170 $wgTidyBin, $wgTidyConf, $wgTidyOpts, $wgTidyInternal, and $wgDebugTidy. Use
1171 $wgTidyConfig instead.
1172 * All Tidy configurations other than Remex have been hard deprecated;
1173 future parsers will not emit compatible output for these configurations.
1174 In particular, running MediaWiki with tidy disabled has been deprecated.
1175 * (T198214) OutputPage::addWikiText(), OutputPage::addWikiTextWithTitle(),
1176 and OutputPage::addWikiTextTitle() have been deprecated, since they
1177 can result in untidy output. In addition OutputPage::addWikiTextTidy()
1178 and OutputPage::addWikiTextTitleTidy() was deprecated to make naming new
1179 methods consistent. Use OutputPage::addWikiTextAsInterface() or
1180 OutputPage::addWikiTextAsContent() instead, which ensures the output is
1181 tidy and clarifies whether content-language specific postprocessing should
1182 be done on the text.
1183 * OutputPage::parse() and OutputPage::parseInline() have been deprecated
1184 due to untidy output and inconsistent handling of wrapper divs and
1185 interface/content language defaults. Use OutputPage::parseAsContent(),
1186 OutputPage::parseAsInterface(), or OutputPage::parseInlineAsInterface()
1187 as appropriate.
1188 * QuickTemplate::msgHtml() and BaseTemplate::msgHtml() have been deprecated
1189 as they promote bad practises. I18n messages should always be properly
1190 escaped.
1191 * Skin::getDynamicStylesheetQuery() has been deprecated. It always
1192 returns action=raw&ctype=text/css which callers should use directly.
1193 * Class LegacyFormatter is deprecated.
1194 * Use of CommentStore::insertWithTempTable() with 'img_description' is
1195 deprecated. Use CommentStore::insert() instead.
1196 * Language::setCode is deprecated as public function. Use Language::factory
1197 to create a new Language object with a different language code.
1198 * Several classes have been moved from the MediaWiki\Storage\ namespace to the
1199 MediaWiki\Revision\ namespace. The old class names are aliased for
1200 compatibility, but are deprecated. Classes are IncompleteRevisionException,
1201 MutableRevisionRecord, MutableRevisionSlots, RevisionAccessException,
1202 RevisionArchiveRecord, RevisionFactory, RevisionLookup, RevisionRecord,
1203 RevisionSlots, RevisionStore, RevisionStoreRecord, SlotRecord, and
1204 SuppressedDataException.
1205 * When using OOUI HTMLForm containing an 'info' field which uses the 'rawrow'
1206 option, it is now deprecated to give its contents (the 'default' option)
1207 as a string. They should be given as a OOUI\FieldLayout object instead.
1208 Notably, this affects fields defined in the 'GetPreferences' hook, because
1209 Special:Preferences uses an OOUI form now. (If possible, don't use 'rawrow'.)
1210 * In Skin::doEditSectionLink omitting the parameters $tooltip and $lang is
1211 deprecated. For the $lang parameter, types other than Language are
1212 deprecated.
1213 * The $wgUseKeyHeader configuration option and the
1214 OutputPage::getKeyHeader() method have been deprecated; the relevant
1215 draft IETF spec expired without becoming a standard.
1216 * Deprecated API action=query&prop=info inprop=readable in favor of
1217 intestactions=read.
1218
1219 === Other changes in 1.32 ===
1220 * (T198811) The following tables have had their UNIQUE indexes turned into
1221 proper PRIMARY KEYs for increased maintainability: interwiki, page_props,
1222 protected_titles and site_identifiers.
1223 * OOUI HTMLForm will now display help text inline after the input field,
1224 rather than in a popup. Previous behavior can be restored by using
1225 `'help-inline' => false`.
1226 * The archive table's ar_rev_id field is now unique.
1227 * Special:BotPasswords now requires reauthentication.
1228 * (T174023) Multi-Content Revision (MCR) capabilities were introduced into the
1229 storage layer and have basic support for display. No user interface exists
1230 yet for creating or managing content in slots beides the main slot. See
1231 <https://www.mediawiki.org/wiki/Multi-Content_Revisions> for more
1232 information.
1233 * The image_comment_temp database table has been removed. Since all access
1234 should be mediated by the CommentStore class, this change shouldn't affect
1235 external code.
1236 * (T206147) Database::close() will no longer commit any open transactions.
1237 * (T64103) Dropped columns category.cat_hidden, site_stats.ss_admins, and
1238 recentchanges.rc_cur_time from the PostgreSQL schema.
1239
1240 = MediaWiki 1.31 =
1241
1242 == MediaWiki 1.31.3 ==
1243
1244 This is a maintenance release of the MediaWiki 1.31 branch.
1245
1246 === Changes since MediaWiki 1.31.2 ===
1247 * (T225558) Update installer link to PHP intl.
1248 * (T225496) Detect APC for MainCacheType in CLI installer.
1249 * (T226766) Remove jetbrains/phpstorm-stubs from composer dev dependancies.
1250 * (T202211) Fix SQLite patch-(image|page|template)links-fix-pk.sql column order.
1251
1252 == MediaWiki 1.31.2 ==
1253
1254 This is a security and maintenance release of the MediaWiki 1.31 branch.
1255
1256 Required PHP version has been increased from 7.0.0 to 7.0.13.
1257
1258 === Changes since MediaWiki 1.31.1 ===
1259 * (T204729) WatchedItemStore::countVisitingWatchersMultiple() shouldn't query
1260 all titles when asked for none.
1261 * (T205967) Fix syntax error typo in postgres database upgrade file.
1262 * (T200254) Add pear/Net_SMTP 1.7.3 to composer dependencies.
1263 * (T206765) Load installer i18n when running update.php.
1264 * (T109121) Remove deprecated pear/mail_mime-decode from composer suggested
1265 libraries.
1266 [Also in the bundled composer /vendor directory.]
1267 * Various PHP 7.2 and 7.3 compatibility fixes:
1268 * (T200595, T206974) Fix PHP 7.3 warnings of using "continue" in some
1269 scenarios instead of "break".
1270 * (T206976, T206977) Also in the bundled LocalisationUpdate and
1271 ParserFunctions extensions.
1272 * (T206979) Fix PHP 7.3 warnings of using "compact()" when some variables may
1273 not be set.
1274 * (T215632) FormatMetadata and UploadStash regexes fixed to be PHP
1275 7.3-compatible.
1276 * Fix PHP warnings "preg_replace(): [...] invalid range in character class.
1277 * Avoid PHP 7.2 warnings in DBConRefTest about count() on non-Countable.
1278 * Suppress "Headers already sent" in PHP 7.2 too.
1279 * (T206476) Output only to stderr in unit tests.
1280 * (T207112) Add session_write_close() calls to SessionManager tests.
1281 * oyejorge/less.php replaced with our fork wikimedia/less.php
1282 * (T209756) Updated wikimedia/ip-set from 1.2.0 to 1.3.0.
1283 * (T213489) Avoid session double-start in Setup.php.
1284 * (T206975) Switch to our fork of less.php.
1285 * (T207540) Include IP address in "Login for $1 succeeded" log entry.
1286 * (T201781) Database: Allow selectFieldValues() to accept SQL fragments.
1287 * (T205765) installer: Don't link to the obsolete "Extension Matrix" page.
1288 * (T206013) Update ImportableUploadRevisionImporter for interwiki usernames.
1289 * (T207541) Pass an email address, not a MailAddress, to mail().
1290 * (T207603) SECURITY: User JS may no longer be loaded with mime type
1291 text/javascript if there is no account associated with the username.
1292 * (T112937, T113042) SECURITY: Do not allow loading pages raw with a
1293 text/javascript MIME
1294 type if non-admins can edit the page.
1295 * (T17491) <ins>/<del> elements can be phrasing or flow.
1296 * (T200827) RemexCompatMunger: Don't call endTag() in case B/b
1297 * (T207088) Upgrade wikimedia/remex-html to 2.0.1.
1298 [Also in the bundled composer /vendor directory.]
1299 * (T194052) Updated wikimedia/base-convert from 1.0.1 to 2.0.0.
1300 [Also in the bundled composer /vendor directory.]
1301 * (T199494) Fix notices in maintenance/removeUnusuedAccounts.php.
1302 * Require ext-fileinfo in composer.json, per PHPVersionCheck.
1303 * (T176390) Bundled LocalisationUpdate extension: Handle exceptions from
1304 GitHubFetcher.
1305 * (T208255) Completion search should not change the search query.
1306 * (T209870) Fix SQL syntax error in MS-SQL initialisation file for new wikis.
1307 * (T185049) LogFormatter: Fail softer when trying to link an invalid titles.
1308 * (T210998) Properly set $wgLanguageCode in the generated LocalSettings.php
1309 if --lang is used with the command-line installer (install.php).
1310 * (T211061) ImageListPager: Actor migration for buildQueryConds().
1311 * (T209335) Clarify the default sidebar 'Help' link is about MediaWiki itself.
1312 * Fix addition of ug_expiry column to user_groups table on MSSQL.
1313 * (T204767) Add join conditions to ActiveUsersPager.
1314 * (T210621) User: Bypass repeatable-read when creating an actor_id.
1315 * (T204531) rdbms: reduce LoadBalancer replication log spam.
1316 * (T195525) Fix db error outage page.
1317 * (T208871) The hard-coded Google search form on the database error page was
1318 removed.
1319 * (T176097) Fix flaky MessageBlobStoreTest assertion failures.
1320 * (T209423) Update required PHP version to 7.0.13.
1321 * (T209885) Prevent populateSearchIndex.php from breaking once actor migration
1322 has been started.
1323 * (T216968) Return pageid as int in both list=iwbacklinks and
1324 list=langbacklinks.
1325 * (T215169) Fix for Database::update() with IGNORE option fails on PostgreSQL.
1326 * (T204423) Backport support for hyphenated DB names in JobQueueGroup.
1327 * (T199474) Fix typo in rebuildrecentchanges.php resulting in rogue flags.
1328 * (T218608) SECURITY: Fix an issue that prevents Extension:OAuth working when
1329 $wgBlockDisablesLogin is true.
1330 * (T216029) Chrome redirects to Special:BadTitle after editing a section with
1331 a non-Latin name on a page with non-Latin characters in title.
1332 * (T219728) Added support for new Japanese era name "Reiwa".
1333 * (T25227) SECURITY: action=logout now requires to be posted and have a csrf
1334 token.
1335 * Updated cssjanus/cssjanus from 1.2.0 to 1.3.0.
1336 * (T222385) resourceloader: Use AND instead of OR for upsert conds in
1337 saveFileDependencies().
1338 * (T224374) Fix message parameters so that the message that says SQLite is out
1339 of date makes sense.
1340 * SpecialPage::checkLoginSecurityLevel() will now preserve POST data when
1341 reauthenticating.
1342 * FormSpecialPage::execute() will now call checkLoginSecurityLevel() if
1343 getLoginSecurityLevel() returns non-false.
1344 * (T197279) SECURITY: Fix reauth in Special:ChangeEmail.
1345 * (T208881) SECURITY: blacklist CSS var().
1346 * (T209794) SECURITY: rate-limit and prevent blocked users from changing email.
1347 * (T199540) SECURITY: API: Respect $wgBlockCIDRLimit in action=block.
1348 * (T212118) SECURITY: Fix cache mode for (un)patrolled recent changes query.
1349 * (T222036, T222038) SECURITY: Add permission check for user is permitted to
1350 view the log type.
1351 * (T221739) SECURITY: resources: Patch jQuery 3.2.1 for CVE-2019-11358.
1352
1353 == MediaWiki 1.31.1 ==
1354
1355 This is a security and maintenance release of the MediaWiki 1.31 branch.
1356
1357 === Changes since MediaWiki 1.31.0 ===
1358 * (T169545, CVE-2018-0503) SECURITY: $wgRateLimits entry for 'user' overrides
1359 'newbie'.
1360 * (T194605, CVE-2018-0505) SECURITY: BotPasswords can bypass CentralAuth's
1361 account lock.
1362 * (T199029, CVE-2018-13258) SECURITY: Tarball was missing .htaccess files.
1363 * (T197229) Bundle Nuke extension, it was accidentally omitted.
1364 * (T193995) Fix undefined patchPath() method call in parser tests.
1365 * (T198687) Fix various selectFields methods to use the string 'NULL', not null.
1366 * Special:BotPasswords now requires reauthentication.
1367 * (T191608, T187638) Add 'logid' parameter to Special:Log.
1368 * (T193829) Indicate when a Bot Password needs reset.
1369 * (T198037) GitInfo: Don't try shelling out if it's disabled.
1370 * (T151415) Log email changes.
1371 * (T197206) Fix performance regression when multiple DB used without caching.
1372 * (T197030) PHPSessionHandler: Suppress headers warnings in initialize().
1373 * (T182377, T196793) Exif: Guard against uncountable tag values.
1374 * (T200861) Fix total breakage of SQLite web upgrade.
1375 * (T200864) Fix pingback over-reporting on non-MySQL databases
1376 * (T202550) Unbreak SpecialListusersHeaderForm and SpecialListusersHeader
1377 hooks.
1378
1379 == MediaWiki 1.31.0 ==
1380
1381 === Changes since MediaWiki 1.31.0-rc.2 ===
1382 * (T195783) Initialize PSR-4 namespaces at same stage as normal autoloader.
1383 * (T196092) Hide MySQL binary/utf-8 charset option in the installer.
1384 * (T196185) Don't allow setting $wgDBmysql5 in the installer.
1385 * (T196125) php-memcached 3.0 (provided with PHP 7.0) is now supported.
1386 * (T182366) UploadBase::checkXMLEncodingMissmatch() now works on PHP 7.1+
1387 * (T118683) Fix exception from &$user deref on HHVM in the TitleMoveComplete
1388 hook.
1389 * (T196672) The mtime of extension.json files is now able to be zero
1390 * (T180403) Validate $length in padleft/padright parser functions.
1391 * (T143790) Make $wgEmailConfirmToEdit only affect edit actions.
1392
1393 === Changes since MediaWiki 1.31.0-rc.0 ===
1394 * (T33223) Drop archive.ar_text and ar_flags.
1395 * Add default edit rate limit of 90 edits/minute for all users.
1396 * (T187645) Use codepoint as tiebreaker when getting first-letters in
1397 IcuCollation.
1398 * (T191947) Don't shell during the installer if shelling out is disabled.
1399 * (T194319) Improve duplicate config setting exception as part of extension
1400 registration.
1401 * (T195211) Don't require trailing slash in PSR-4 autoloader directory.
1402 * (T186565) Fix PHP Notice from `ob_end_flush()` in `FileRepo::streamFile()`.
1403 * Do not incorrectly hide namespace input field in the installer.
1404 * (T186456) Refactor checks looking for PEAR maik libraries to be clearer.
1405
1406 === Important pre-upgrade notes for 1.31 ===
1407 * If you're using MySQL, SQLite, or MSSQL, are not using update.php to apply
1408 schema changes, and cannot have downtime to run migrateArchiveText.php and
1409 apply patch-drop-ar_text.sql manually, you'll have to apply a default value
1410 to the ar_text and ar_flags columns of the archive table or make those
1411 columns nullable before upgrading to MediaWiki 1.31.
1412 maintenance/archives/patch-nullable-ar_text.sql shows how to do this for
1413 MySQL.
1414
1415 === Configuration changes in 1.31 ===
1416 * $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in
1417 a future version. The API is now considered to be stable, secure and
1418 essential.
1419 * $wgUsejQueryThree was removed, as it is now the default. This was documented
1420 as a temporary variable during the migration period, deprecated since 1.29.
1421 * $wgLogoHD has been updated to support svg images and uses $wgLogo where
1422 possible for fallback images such as png.
1423 * (T44246) $wgFilterLogTypes will no longer ignore 'patrol' when user does not
1424 have the right to mark things patrolled.
1425 * Wikis that contain imported revisions or CentralAuth global blocks should run
1426 maintenance/cleanupUsersWithNoId.php.
1427 * The configuration settings $wgResourceLoaderMinifierStatementsOnOwnLine and
1428 $wgResourceLoaderMinifierMaxLineLength, deprecated since 1.27, were removed.
1429 * (T180921) $wgReferrerPolicy now supports having fallbacks for browsers that
1430 are not using the latest version of the Referrer Policy specification.
1431 * $wgFragmentMode is now set to [ 'legacy', 'html5' ] by default. This is a
1432 first step of migration to human-readable section IDs that will later result
1433 in 'html5' being the default mode.
1434 * CACHE_ACCEL now only supports APC(u) or WinCache. XCache support was removed
1435 as upstream is inactive and has no plans to move to PHP 7.
1436 * The old CategorizedRecentChanges feature, including its related configuration
1437 option $wgAllowCategorizedRecentChanges, has been removed.
1438 * (T188472) The 'comma' value for $wgArticleCountMethod is no longer supported
1439 for performance reasons, and installations with this setting will now work as
1440 if it was configured with 'any'.
1441 * (T185753) MediaWiki now defaults to using RemexHtml to tidy up user input,
1442 rather than being off by default. If you wish to disable HTML tidying
1443 entirely, set $wgTidyConfig to null; if you wish to use the old, deprecated
1444 Tidy external binary, both set $wgTidyConfig to null and $wgUseTidy to true.
1445 * $wgLogAutopatrol now defaults to false instead of true.
1446 * $wgValidateAllHtml was removed and will be ignored.
1447 * $wgScriptExtension, deprecated and ignored since 1.25, was removed. See the
1448 1.25 release notes for more information.
1449 * $wgUseAjax is now marked as deprecated, just like the deprecated AJAX
1450 framework that it enables. Some extensions mistakenly used this to check
1451 whether any AJAX functionality at all should be enabled, further making this
1452 problematic to retain.
1453 * $wgDBmysql5 is now deprecated, and will be removed in a future version. It
1454 has been marked as experimental ever since it was introduced.
1455
1456 === New features in 1.31 ===
1457 * (T76554) User sub-pages named ….json are now protected in the same way that
1458 ….js and ….css pages are, so that configuration options can safely be placed
1459 there.
1460 * Wikimedia\Rdbms\IDatabase->select() and similar methods now support joins
1461 with parentheses for grouping.
1462 * As a first pass in standardizing dialog boxes across the MediaWiki product,
1463 Html class now provides helper methods for messageBox, successBox, errorBox
1464 and warningBox generation.
1465 * (T9240) Imports will now record unknown (and, optionally, known) usernames in
1466 a format like "iw>Example".
1467 * (T20209) Linker (used on history pages, log pages, and so on) will display
1468 usernames formed like "iw>Example" as interwiki links, as if by wikitext like
1469 [[iw:User:Example|iw>Example]].
1470 * (T111605) The 'ImportHandleUnknownUser' hook allows extensions to auto-create
1471 users during an import.
1472 * Added a hook, ParserOutputPostCacheTransform, to allow extensions to affect
1473 the ParserOutput::getText() post-cache transformations.
1474 * Added a hook, UploadForm:getInitialPageText, to allow extensions to alter the
1475 initial page text for file uploads.
1476 * (T181651) The info page for File pages now displays the file's base-16 SHA1
1477 hash value in the table of basic information.
1478 * Style tags with a 'data-mw-deduplicate' attribute will be deduplicated as a
1479 ParserOutput::getText() post-cache transformation. This may be disabled by
1480 passing 'deduplicateStyles' => false to that method.
1481 * The identity of the logged-in or IP "actor" for logged actions is being moved
1482 into a new actor table, with the rows in tables such as revision and logging
1483 referring to the actor ID instead of storing the user ID and name/IP in
1484 every row.
1485 * This is currently gated by $wgActorTableSchemaMigrationStage. Most wikis
1486 can set this to MIGRATION_NEW and run maintenance/migrateActors.php as
1487 soon as any necessary extensions are updated.
1488 * Most code accessing rows for logged actions from the database should use
1489 the relevant getQueryInfo() methods to get the information needed to build
1490 the SQL query. The ActorMigration class may also be used to get feature
1491 -flagged information needed to access actor-related fields during the
1492 migration period.
1493 * Added Wikimedia\Rdbms\IDatabase::cancelAtomic(), to roll back an atomic
1494 section without having to roll back the whole transaction.
1495 * Wikimedia\Rdbms\IDatabase::doAtomicSection(), non-native ::insertSelect(),
1496 and non-MySQL ::replace() and ::upsert() no longer roll back the whole
1497 transaction on failure.
1498 * (T189785) Added a monthly heartbeat ping to the pingback feature.
1499 * The CLI installer (maintenance/install.php) learned to detect and include
1500 extensions. Pass --with-extensions to enable that feature.
1501 * (T184791) rc_patrolled now has three states: "0" for unpatrolled,
1502 "1" for manually patrolled and "2" for autopatrolled actions.
1503 * Extensions can now set their type to "editor" if they provide an editor or
1504 enhance the editing experience.
1505 * Extensions can use a PSR-4 autoloader by setting an "AutoloadNamespaces"
1506 property in extension.json. See the documentation at
1507 <https://mediawiki.org/wiki/Manual:Extension.json/Schema#AutoloadNamespaces>
1508 for more details and an example.
1509 * (T19099) Tabs which link to pages that don't exist (like those to uncreated
1510 discussion pages) now have a tooltip to indicate state, not just colour.
1511
1512 === External library changes in 1.31 ===
1513 * pear/mail, pear/mail_mime and pear/mail_mime-decode have been moved from
1514 suggested to required. These packages now must be installed via composer
1515 and not via PEAR itself.
1516
1517 ==== Upgraded external libraries ====
1518 * Updated jquery.chosen from v0.9.14 to v1.8.2.
1519 * Updated composer/spdx-licenses from 1.1.4 to 1.3.0 (development dependency).
1520 * Updated nikic/php-parser from 2.1.0 to 3.1.3 (development dependency).
1521 * Updated wikimedia/ip-set from 1.1.0 to 1.2.0.
1522 * Updated wikimedia/relpath from 2.0.0 to 2.1.1.
1523 * Updated wikimedia/running-stat from 1.1.0 to 1.2.0.
1524 * Updated wikimedia/wrappedstring from 2.2.0 to 2.3.0.
1525 * Updated mediawiki/at-ease from 1.1.0 to 1.2.0.
1526 * Updated wikimedia/php-session-serializer from 1.0.4 to 1.0.6.
1527 * Updated wikimedia/remex-html from 1.0.2 to 1.0.3.
1528 * Updated wikimedia/html-formatter from 1.0.1 to 1.0.2.
1529
1530 ==== New external libraries ====
1531 * Added wikimedia/object-factory 1.0.0
1532
1533 ==== Removed and replaced external libraries ====
1534 * (T17845) The deprecated 'jquery.badge' module was removed.
1535 * The deprecated 'jquery.autoEllipsis' module was removed. Use the CSS
1536 text-overflow property instead.
1537 * The deprecated 'jquery.placeholder' module was removed.
1538 * The deprecated 'jquery.appear' module was removed. Use the
1539 'mediawiki.viewport' module instead.
1540 * mediawiki/at-ease was replaced with wikimedia/at-ease.
1541
1542 === Bug fixes in 1.31 ===
1543 * (T90902) Non-breaking space in header ID breaks anchor.
1544 * (T189375) CSSMin now allows quoted urls in `url()` syntax to start with a
1545 space.
1546 * (T2087, T10897, T87753, T174639) Whitespace created by category and language
1547 links is now stripped rather than leaving blank lines in odd places.
1548 * (T3780) Uploads with UTF-8 names now work on PHP7.1+ on Windows servers.
1549 * (T182366) UploadBase::checkXMLEncodingMissmatch() now works on PHP 7.1+
1550
1551 === Action API changes in 1.31 ===
1552 * (T185058) The 'name' value to tgprop for action=query&list=tags has been
1553 removed. It has never made a difference in the output, the name was always
1554 returned regardless.
1555 * The 'watch' and 'unwatch' parameters for action=move have been removed. They
1556 were deprecated and also accidentally nonfunctional since 1.17 in 2010. Use
1557 'watchlist' instead.
1558
1559 === Action API internal changes in 1.31 ===
1560 * ApiBase::getProfileDBTime, deprecated since 1.25, was removed.
1561 * ApiBase::getModuleProfileName, deprecated since 1.25, was removed.
1562 * ApiBase::getProfileTime, deprecated since 1.25, was removed.
1563
1564 === Languages updated in 1.31 ===
1565 MediaWiki supports over 350 languages. Many localisations are updated
1566 regularly. Below only new and removed languages are listed, as well as
1567 changes to languages because of Phabricator reports.
1568
1569 * (T180052) Mirandese (mwl) now supports gendered NS_USER/NS_USER_TALK.
1570 * (T182305) New language support: Nyungar (nys).
1571 * (T186359) New language support: Siberian Tatar [cебертатар] (sty).
1572 * (T186635) New language support: Guianan Creole (gcr).
1573 * (T186647) New language support: Kumyk [къумукъ] (kum).
1574 * (T187750) New language support: Spanish formal address (es-formal).
1575 * (T187824) New language support: Hungarian formal address (hu-formal).
1576 * (T189127) New language support: Gorontalo (gor).
1577
1578 === Breaking changes in 1.31 ===
1579 * MessageBlobStore::insertMessageBlob(), deprecated in 1.27, was removed.
1580 * The OutputPage class constructor now requires a context parameter.
1581 Instantiating without context was deprecated in 1.18.
1582 * The mw.page JavaScript singleton, deprecated in 1.30, was removed.
1583 * Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
1584 related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
1585 * The Article::selectFields(), ::onArticleCreate(), ::onArticleDelete(), and
1586 ::onArticleEdit() methods, deprecated in 1.24, were removed.
1587 * Installer::locateExecutable() and ::locateExecutableInDefaultPaths() were
1588 removed. Use ExecutableFinder::findInDefaultPaths() instead.
1589 * The deprecated MW_DIFF_VERSION constant was removed.
1590 DifferenceEngine::MW_DIFF_VERSION should be used instead.
1591 * Due to significant refactoring, method ContribsPager::getUserCond() that had
1592 no access restriction has been removed.
1593 * The Block class will no longer accept usable-but-missing usernames for
1594 'byText' or ->setBlocker(). Callers should either ensure the blocker exists
1595 locally or use a new interwiki-format username like "iw>Example".
1596 * The following methods and constants from the WatchedItem class, which were
1597 deprecated in 1.27, have been removed:
1598 * WatchedItem::getTitle()
1599 * WatchedItem::fromUserTitle()
1600 * WatchedItem::addWatch()
1601 * WatchedItem::removeWatch()
1602 * WatchedItem::isWatched()
1603 * WatchedItem::duplicateEntries()
1604 * WatchedItem::IGNORE_USER_RIGHTS
1605 * WatchedItem::CHECK_USER_RIGHTS
1606 * WatchedItem::DEPRECATED_USAGE_TIMESTAMP
1607 * The $statementsOnOwnLine parameter of JavaScriptMinifier::minify was removed.
1608 $wgResourceLoaderMinifierStatementsOnOwnLine, the corresponding configuration
1609 variable, has been deprecated since 1.27 and was removed as well.
1610 * The $maxLineLength parameter of JavaScriptMinifier::minify was removed.
1611 $wgResourceLoaderMinifierMaxLineLength, the corresponding configuration
1612 variable, has been deprecated since 1.27 and was removed as well.
1613 * The HtmlFormatter class, deprecated in 1.27, was removed. The namespaced
1614 HtmlFormatter\HtmlFormatter class should be used instead.
1615 * The driver 'mysql' for MySQL, deprecated in MediaWiki 1.30, has been removed.
1616 The driver has been deprecated since PHP 5.5 and was removed in PHP 7.0. The
1617 default driver for MySQL has been 'mysqli' since MediaWiki 1.22.
1618 * The following properties of PreparedEdit were deprecated in 1.21 and have
1619 been removed:
1620 * PreparedEdit->newText
1621 * PreparedEdit->oldText
1622 * PreparedEdit->pst
1623 * ParserOutput objects which are generated using a non-default value for
1624 ParserOptions::setWrapOutputClass() can no longer be added to the parser
1625 cache.
1626 * The following deprecated methods from the OutputPage class have been removed:
1627 * OutputPage::addExtensionStyle(); deprecated in 1.27
1628 * OutputPage::getExtStyle(); deprecated in 1.27
1629 * OutputPage::setETag(); deprecated in 1.28 (obsolete no-op)
1630 * OutputPage::setSquidMaxage(); deprecated in 1.27
1631 * OutputPage::readOnlyPage(); deprecated in 1.25
1632 * OutputPage::rateLimited(); deprecated in 1.25
1633 * Additionally, the protected OutputPage::$mExtStyles array, only accessed
1634 through the above and with no known uses, was removed.
1635 * The no-op method Skin::showIPinHeader(), deprecated in 1.27, was removed.
1636 * The following variables and methods in EditPage, deprecated in MediaWiki 1.30,
1637 were removed:
1638 * $isCssJsSubpage — use ::isUserConfigPage()
1639 * $isCssSubpage — use ::isUserCssConfigPage()
1640 * $isJsSubpage — use ::isUserJsConfigPage()
1641 * $isWrongCaseCssJsPage – use ::isWrongCaseUserConfigPage()
1642 * ::getSummaryInput() – use ::getSummaryInputWidget()
1643 * ::getSummaryInputOOUI() – use ::getSummaryInputWidget()
1644 * ::getCheckboxes() – use ::getCheckboxesWidget() or
1645 ::getCheckboxesDefinition()
1646 * ::getCheckboxesOOUI() – use ::getCheckboxesWidget() or
1647 ::getCheckboxesDefinition()
1648 * ResourceLoaderModule::getPosition(), deprecated in 1.29, has been removed.
1649 * In User, the cookie-related methods which were wrappers for the functions on
1650 the response object, and were deprecated in 1.27, have been removed:
1651 * ::setCookie()
1652 * ::clearCookie()
1653 * ::setExtendedLoginCookie()
1654 Note that User::setCookies() remains, and is not deprecated.
1655 * Also in User, some auth-related methods which were deprecated in 1.27 have
1656 been removed:
1657 * ::getEditTokenTimestamp() – use MediaWiki\Session\Token::getTimestamp()
1658 * ::getPasswordFactory() – create a PasswordFactory directly
1659 * ::passwordChangeInputAttribs()
1660 * The global functions wfProfileIn and wfProfileOut, deprecated in 1.25, have
1661 been removed.
1662 * SpecialPageFactory::getList(), deprecated in 1.24, has been removed. You can
1663 use ::getNames() instead.
1664 * OpenSearch::getOpenSearchTemplate(), deprecated in 1.25, has been removed. You
1665 can use ApiOpenSearch::getOpenSearchTemplate() instead.
1666 * The global function wfBaseConvert, deprecated in 1.27, has been removed. Use
1667 Wikimedia\base_convert() directly.
1668 * Calling Database::begin() explicitly during an implicit transaction or when
1669 DBO_TRX is set results in an exception. Calling Database::commit() explicitly
1670 for an implicit transaction also results in an exception. Previously these
1671 were logged as errors. The startAtomic() and endAtomic() methods, or
1672 AtomicSectionUpdate should be used instead.
1673 * The global function wfOutputHandler() was removed, use the its replacement
1674 MediaWiki\OutputHandler::handle() instead. The global function was only
1675 sometimes defined. Its replacement is always available via the autoloader.
1676 * ChangeTags::listExtensionActivatedTags and ::listExtensionDefinedTags,
1677 deprecated in 1.28, have been removed. Use ::listSoftwareActivatedTags() and
1678 ::listSoftwareDefinedTags() instead.
1679 * Title::getTitleInvalidRegex(), deprecated in 1.25, has been removed. You can
1680 use MediaWikiTitleCodec::getTitleInvalidRegex() instead.
1681 * HTMLForm & VFormHTMLForm::isVForm(), deprecated in 1.25, have been removed.
1682 * The ProfileSection class, deprecated in 1.25 and unused, has been removed.
1683 * The ResourceLoaderGetLessVars hook, deprecated in 1.30, has been removed. Use
1684 ResourceLoaderModule::getLessVars() to expose local variables instead of
1685 global ones.
1686 * As part of work to modernise user-generated content clean-up, a config option
1687 and some methods related to HTML validity were removed without deprecation.
1688 The public methods MWTidy::checkErrors() and the path through which it was
1689 called, TidyDriverBase::validate(), are removed, as are the testing methods
1690 MediaWikiTestCase::assertValidHtmlSnippet() and ::assertValidHtmlDocument().
1691 The $wgValidateAllHtml configuration option is removed and will be ignored.
1692 * Execution of external programs using MediaWiki\Shell\Command now applies
1693 the RESTRICT_DEFAULT Firejail restriction by default.
1694 * The ResourceLoaderModule::getHashMtime() and ::getDefinitionMtime() methods,
1695 deprecated in 1.26, were removed.
1696 * The deprecated 'mediawiki.widgets.CategorySelector' module alias was removed.
1697 Use the 'mediawiki.widgets.CategoryMultiselectWidget' module directly.
1698
1699 === Deprecations in 1.31 ===
1700 * The Revision class was deprecated in favor of RevisionStore, BlobStore, and
1701 RevisionRecord and its subclasses.
1702 * The global function wfBCP47 is deprecated in favour of LanguageCode::bcp47.
1703 * The global function wfCountDown is now deprecated in favor of
1704 Maintenance::countDown.
1705 * Several methods for returning lists of fields to select from the database
1706 have been deprecated in favor of similar methods that also return the tables
1707 to select from and the join conditions for those tables.
1708 * Block::selectFields() → Block::getQueryInfo()
1709 * RecentChange::selectFields() → RecentChange::getQueryInfo()
1710 * ArchivedFile::selectFields() → ArchivedFile::getQueryInfo()
1711 * LocalFile::selectFields() → LocalFile::getQueryInfo()
1712 * LocalFile::getCacheFields() with a prefix no longer works
1713 * LocalFile::getLazyCacheFields() with a prefix no longer works
1714 * OldLocalFile::selectFields() → OldLocalFile::getQueryInfo()
1715 * RecentChange::selectFields() → RecentChange::getQueryInfo()
1716 * Revision::userJoinCond() → Revision::getQueryInfo( [ 'user' ] )
1717 * Revision::selectUserFields() → Revision::getQueryInfo( [ 'user' ] )
1718 * Revision::pageJoinCond() → Revision::getQueryInfo( [ 'page' ] )
1719 * Revision::selectPageFields() → Revision::getQueryInfo( [ 'page' ] )
1720 * Revision::selectTextFields() → Revision::getQueryInfo( [ 'text' ] )
1721 * Revision::selectFields() → Revision::getQueryInfo()
1722 * Revision::selectArchiveFields() → Revision::getArchiveQueryInfo()
1723 * User::selectFields() → User::getQueryInfo()
1724 * WikiPage::selectFields() → WikiPage::getQueryInfo()
1725 * Revision::setUserIdAndName() was deprecated.
1726 * Access to TitleValue class properties was deprecated, the relevant getters
1727 should be used instead.
1728 * DifferenceEngine::getDiffBodyCacheKey() is deprecated. Subclasses should
1729 override DifferenceEngine::getDiffBodyCacheKeyParams() instead.
1730 * Use of Maintenance::error( $err, $die ) to exit script was deprecated. Use
1731 Maintenance::fatalError() instead.
1732 * Passing a ParserOptions object to OutputPage::parserOptions() is deprecated.
1733 * The RevisionInsertComplete hook is now deprecated; use instead the hook
1734 RevisionRecordInserted. RevisionInsertComplete is still called, but the second
1735 and third parameter will always be null. Hard deprecation is scheduled for
1736 1.32.
1737 * The following methods that get and set ParserOutput state are deprecated.
1738 Callers should use the new stateless $options parameter to
1739 ParserOutput::getText() instead.
1740 * ParserOptions::getEditSection()
1741 * ParserOptions::setEditSection()
1742 * ParserOutput::getEditSectionTokens()
1743 * ParserOutput::setEditSectionTokens()
1744 * ParserOutput::getTOCEnabled()
1745 * ParserOutput::setTOCEnabled()
1746 * OutputPage::enableSectionEditLinks()
1747 * OutputPage::sectionEditLinksEnabled()
1748 * The public ParserOutput state fields $mTOCEnabled and $mEditSectionTokens
1749 are also deprecated.
1750 * License::getLicenses has been deprecated; use License::getLines instead.
1751 * QuickTemplate::setRef() was deprecated in favour of QuickTemplate::set().
1752 Setting template variables by reference allowed violating the principle of
1753 data being immutable once added to the skin template. In practice, this method
1754 was not being used for that. Rather, setRef() existed as memory optimisation
1755 for PHP 4.
1756 * QuickTemplate::setTranslator() and MediaWikiI18N::set() were deprecated in
1757 favour of Skin::msg() parameters.
1758 * MediaWikiI18N::translate() was deprecated in favour of Skin::msg() or
1759 wfMessage().
1760 * Passing false to ParserOptions::setWrapOutputClass() is deprecated. Use the
1761 'unwrap' transform to ParserOutput::getText() instead.
1762 * \ObjectFactory (no namespace) is deprecated, the namespaced class
1763 \Wikimedia\ObjectFactory from the wikimedia/object-factory library should be
1764 used instead.
1765 * CommentStore::newKey is deprecated. Instead, get an instance from
1766 MediaWikiServices.
1767 * The following CommentStore methods have had their signatures changed to
1768 introduce a $key parameter, usage of the methods on instances retrieved from
1769 CommentStore::newKey will remain unchanged but deprecated:
1770 * CommentStore::getFields
1771 * CommentStore::getJoin
1772 * CommentStore::getComment
1773 * CommentStore::getCommentLegacy
1774 * CommentStore::insert
1775 * CommentStore::insertWithTemplate
1776 * The following methods in Title have been renamed, and the old ones are
1777 deprecated:
1778 * Title::getSkinFromCssJsSubpage – use ::getSkinFromConfigSubpage
1779 * Title::isCssOrJsPage – use ::isSiteConfigPage
1780 * Title::isCssJsSubpage – use ::isUserConfigPage
1781 * Title::isCssSubpage – use ::isUserCssConfigPage
1782 * Title::isJsSubpage – use ::isUserJsConfigPage
1783 * The following methods related to caching of half-parsed HTML were deprecated:
1784 * Parser::serializeHalfParsedText()
1785 * Parser::unserializeHalfParsedText()
1786 * Parser::isValidHalfParsedText()
1787 * StripState::getSubState()
1788 * StripState::merge()
1789 * The DeferredStringifier class is deprecated, use Message::listParam() instead.
1790 * The type string for the parameter $lang of DateFormatter::getInstance is
1791 deprecated.
1792 * Wikimedia\Rdbms\SavepointPostgres is deprecated.
1793 * The DO_MAINTENANCE constant is deprecated. RUN_MAINTENANCE_IF_MAIN should be
1794 used instead.
1795 * The function wfShellWikiCmd() has been deprecated, use
1796 MediaWiki\Shell::makeScriptCommand().
1797 * In the future, the hooks 'PreferencesFormPreSave' and 'PreferencesGetLegend'
1798 will be allowed to provide any HTMLForm object rather than PreferencesForm.
1799
1800 === Other changes in 1.31 ===
1801 * Browser support for Internet Explorer 10 was lowered from Grade A to Grade C.
1802 * Browser support for Opera 12 and older was dropped entirely. Opera 15+
1803 continues at Grade A.
1804 * Multi-content-revision capability was introduced into the storage layer. See
1805 <https://mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions>.
1806 * The "free" CSS class is now only applied to unbracketed URLs in wikitext.
1807 Links written using square brackets will get the class "text" not "free".
1808 * RFC 157418: Whitespace is trimmed from wikitext headings, wikitext list items,
1809 wikitext table captions, wikitext table headings, wikitext table cells. HTML
1810 headings, HTML list items, HTML table captions, HTML table headings, HTML
1811 table cells will not have this trimming behavior.
1812
1813 == Compatibility ==
1814 MediaWiki 1.31 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is
1815 supported, it is generally advised to use PHP 7.0.0 or later for long term
1816 support.
1817
1818 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
1819 but support for them is somewhat less mature. There is experimental support for
1820 Oracle and Microsoft SQL Server.
1821
1822 The supported versions are:
1823
1824 * MySQL 5.5.8 or later
1825 * PostgreSQL 9.2 or later
1826 * SQLite 3.3.7 or later
1827 * Oracle 9.0.1 or later
1828 * Microsoft SQL Server 2005 (9.00.1399)
1829
1830 == Upgrading ==
1831 1.31 has several database changes since 1.30, and will not work without schema
1832 updates. Note that due to changes to some very large tables like the revision
1833 table, the schema update may take quite long (minutes on a medium sized site,
1834 many hours on a large site).
1835
1836 Don't forget to always back up your database before upgrading!
1837
1838 See the file UPGRADE for more detailed upgrade instructions, including
1839 important information when upgrading from versions prior to 1.11.
1840
1841 For notes on 1.30.x and older releases, see HISTORY.
1842
1843 == Online documentation ==
1844 Documentation for both end-users and site administrators is available on
1845 MediaWiki.org, and is covered under the GNU Free Documentation License (except
1846 for pages that explicitly state that their contents are in the public domain):
1847
1848 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
1849
1850 == Mailing list ==
1851 A mailing list is available for MediaWiki user support and discussion:
1852
1853 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
1854
1855 A low-traffic announcements-only list is also available:
1856
1857 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
1858
1859 It's highly recommended that you sign up for one of these lists if you're
1860 going to run a public MediaWiki, so you can be notified of security fixes.
1861
1862 == IRC help ==
1863 There's usually someone online in #mediawiki on irc.freenode.net.
1864
1865
1866 = MediaWiki 1.30 =
1867
1868 == MediaWiki 1.30.2 ==
1869
1870 This is a security and maintenance release of the MediaWiki 1.30 branch.
1871
1872 === Changes since MediaWiki 1.30.1 ===
1873 * (T204729) WatchedItemStore::countVisitingWatchersMultiple() shouldn't query
1874 all titles when asked for none.
1875 * (T109121) Remove deprecated pear/mail_mime-decode from composer suggested
1876 libraries.
1877 * (T207540) Include IP address in "Login for $1 succeeded" log entry.
1878 * (T205765) Don't link to the obsolete "Extension Matrix" page in installer.
1879 * (T207603) SECURITY: User JS may no longer be loaded with mime type
1880 text/javascript if there is no account associated with the username.
1881 * (T113042) SECURITY: Do not allow loading pages raw with a text/javascript MIME
1882 type if non-admins can edit the page.
1883 * (T207541) Pass email address to mail().
1884 * Fix addition of ug_expiry column to user_groups table on MSSQL.
1885 * (T204531) rdbms: reduce LoadBalancer replication log spam.
1886 * (T213489) Avoid session double-start in Setup.php.
1887 * (T195525) Fix db error outage page.
1888 * (T208871) The hard-coded Google search form on the database error page was
1889 removed.
1890 * (T216968) Return pageid as int in both list=iwbacklinks and
1891 list=langbacklinks.
1892 * (T218608) SECURITY: Fix an issue that prevents Extension:OAuth working when
1893 $wgBlockDisablesLogin is true.
1894 * (T25227) SECURITY: action=logout now requires to be posted and have a csrf
1895 token.
1896 * (T222385) resourceloader: Use AND instead of OR for upsert conds in
1897 saveFileDependencies().
1898 * (T224374) Fix message parameters so that the message that says SQLite is out
1899 of date makes sense.
1900 * SpecialPage::checkLoginSecurityLevel() will now preserve POST data when
1901 reauthenticating.
1902 * FormSpecialPage::execute() will now call checkLoginSecurityLevel() if
1903 getLoginSecurityLevel() returns non-false.
1904 * (T197279) SECURITY: Fix reauth in Special:ChangeEmail.
1905 * (T208881) SECURITY: blacklist CSS var().
1906 * (T209794) SECURITY: rate-limit and prevent blocked users from changing email.
1907 * (T199540) SECURITY: API: Respect $wgBlockCIDRLimit in action=block.
1908 * (T212118) SECURITY: Fix cache mode for (un)patrolled recent changes query.
1909 * (T222036, T222038) SECURITY: Add permission check for user is permitted to
1910 view the log type.
1911 * (T221739) SECURITY: resources: Patch jQuery 1.11.3 for CVE-2019-11358.
1912
1913 == MediaWiki 1.30.1 ==
1914
1915 This is a security and maintenance release of the MediaWiki 1.30 branch.
1916
1917 === Changes since MediaWiki 1.30.0 ===
1918 * (T169545, CVE-2018-0503) SECURITY: $wgRateLimits entry for 'user' overrides
1919 'newbie'.
1920 * (T194605, CVE-2018-0505) SECURITY: BotPasswords can bypass CentralAuth's
1921 account lock.
1922 * (T87572) Make FormatMetadata::flattenArrayReal() work for an associative
1923 array.
1924 * Updated composer/spdx-licenses from 1.1.4 to 1.3.0 (development dependency).
1925 * (T189567) the CLI installer (maintenance/install.php) learned to detect and
1926 include extensions. Pass --with-extensions to enable that feature.
1927 * (T190503) Let built-in web server (maintenance/dev) handle .php requests.
1928 * (T167507) selenium: Run Chrome headlessly.
1929 * selenium: Pass -no-sandbox to Chrome under Docker.
1930 * (T179190) selenium: Move logic for running tests from package.json to
1931 selenium.sh
1932 * (T192584) Stop incorrectly passing USE INDEX to RecentChange::newFromConds().
1933 * Add default edit rate limit of 90 edits/minute for all users.
1934 * (T186565) Fix PHP Notice from `ob_end_flush()` in `FileRepo::streamFile()`.
1935 * oojs/oojs-ui updated to remove an unnecessary dependancy.
1936 * (T196125) php-memcached 3.0 (provided with PHP 7.0) is now supported.
1937 * (T118683) Fix exception from &$user deref on HHVM in the TitleMoveComplete
1938 hook.
1939 * (T196672) The mtime of extension.json files is now able to be zero
1940 * (T180403) Validate $length in padleft/padright parser functions.
1941 * (T143790) Make $wgEmailConfirmToEdit only affect edit actions.
1942 * (T193995) Fix undefined patchPath() method call in parser tests.
1943 * Special:BotPasswords now requires reauthentication.
1944 * (T191608, T187638) Add 'logid' parameter to Special:Log.
1945 * (T193829) Indicate when a Bot Password needs reset.
1946 * (T151415) Log email changes.
1947 * (T200861) Fix total breakage of SQLite web upgrade.
1948 * (T202550) Unbreak SpecialListusersHeaderForm and SpecialListusersHeader
1949 hooks.
1950 * (T190539) Explicitly require Postgres 9.1.
1951 * (T118420) Unbreak Oracle installer.
1952
1953 == MediaWiki 1.30.0 ==
1954
1955 === Changes since MediaWiki 1.30.0-rc.0 ===
1956 * Upgraded Moment.js from v2.15.0 to v2.19.3.
1957 * Add ip_changes to postgres/tables.sql.
1958 * Skip null shell parameters.
1959 * Add wfWaitForSlaves() to maintenance/migrateComments.php.
1960 * (T182245) Fix join conditions in ImageListPager.
1961 * (T178626) Revert #contentSub and #jump-to-nav margin changes.
1962
1963 === MySQL version requirement in 1.30 ===
1964 As of 1.30, MediaWiki now requires MySQL 5.5.8 or higher (see Compatibility
1965 section).
1966
1967 === Configuration changes in 1.30 ===
1968 * The "C.UTF-8" locale should be used for $wgShellLocale, if available, to avoid
1969 unexpected behavior when code uses locale-sensitive string comparisons. For
1970 example, the Scribunto extension considers "bar" < "Foo" in most locales
1971 since it ignores case.
1972 * $wgShellLocale now affects LC_ALL rather than only LC_CTYPE. See
1973 documentation of $wgShellLocale for details.
1974 * $wgShellLocale is now applied for all requests. wfInitShellLocale() is
1975 deprecated and a no-op, as it is no longer needed.
1976 * $wgJobClasses may now specify callback functions as an alternative to plain
1977 class names. This is intended for extensions that want control over the
1978 instantiation of their jobs, to allow for proper dependency injection.
1979 * $wgResourceModules may now specify callback functions as an alternative
1980 to plain class names, using the 'factory' key in the module description
1981 array. This allows dependency injection to be used for ResourceLoader modules.
1982 * $wgExceptionHooks has been removed.
1983 * (T163562) $wgRangeContributionsCIDRLimit was introduced to control the size
1984 of IP ranges that can be queried at Special:Contributions.
1985 * (T45547) $wgUsePigLatinVariant added (off by default).
1986 * (T152540) MediaWiki now supports a section ID escaping style that allows to
1987 display non-Latin characters verbatim on many modern browsers. This is
1988 controlled by the new configuration setting, $wgFragmentMode.
1989 * $wgExperimentalHtmlIds is now deprecated and will be removed in a future
1990 version, use $wgFragmentMode to migrate off it to a modern alternative.
1991 * $wgExternalInterwikiFragmentMode was introduced to control how fragments in
1992 sinterwikis going outside of current wiki farm are encoded.
1993 * (T120333) Soft-deprecated the use of PHP extension 'mysql' in favor of
1994 'mysqli'. This PHP extension was deprecated in PHP 5.5 and removed in PHP 7.0.
1995 MediaWiki auto-selects the 'mysqli' driver since MediaWiki 1.22, except if
1996 explicitly requested through the configuration parameter $wgDBservers.
1997 * $wgOOUIEditPage was removed, as it is now the default. This was documented as
1998 a temporary variable during the migration period.
1999
2000 === New features in 1.30 ===
2001 * (T37247) Output from Parser::parse() will now be wrapped in a div with
2002 class="mw-parser-output" by default. This may be changed or disabled using
2003 ParserOptions::setWrapOutputClass().
2004 * (T163562) Added ability to search for contributions within an IP ranges
2005 at Special:Contributions.
2006 * Added 'ChangeTagsAllowedAdd' hook, enabling extensions to allow software-
2007 specific tags to be added by users.
2008 * Added a 'ParserOptionsRegister' hook to allow extensions to register
2009 additional parser options.
2010 * (T45547) Included Pig Latin, a language game in English, as a
2011 LanguageConverter variant. This allows English-speaking developers
2012 to develop and test LanguageConverter more easily. Pig Latin can be
2013 enabled by setting $wgUsePigLatinVariant to true.
2014 * Added RecentChangesPurgeRows hook to allow extensions to purge data that
2015 depends on the recentchanges table.
2016 * Added JS config values wgDiffOldId/wgDiffNewId to the output of diff pages.
2017 * (T2424) Added direct unwatch links to entries in Special:Watchlist (if the
2018 'watchlistunwatchlinks' preference option is enabled). With JavaScript
2019 enabled, these links toggle so the user can also re-watch pages that have
2020 just been unwatched.
2021 * Added $wgParserTestMediaHandlers, where mock media handlers can be passed to
2022 MediaHandlerFactory for parser tests.
2023 * Edit summaries, block reasons, and other "comments" are now stored in a
2024 separate database table. Use the CommentFormatter class to access them.
2025 ** This is currently gated by $wgCommentTableSchemaMigrationStage. Most wikis
2026 can set this to MIGRATION_NEW and run maintenance/migrateComments.php as
2027 soon as any necessary extensions are updated.
2028 * (T138166) Added ability for users to prohibit other users from sending them
2029 emails with Special:Emailuser. Can be enabled by setting
2030 $wgEnableUserEmailBlacklist to true.
2031 * (T67297) $wgBrowserBlacklist is deprecated, and changing it will have no
2032 effect. Instead, users using browsers that do not support Unicode will be
2033 unable to edit and should upgrade to a modern browser instead.
2034
2035 === External library changes in 1.30 ===
2036
2037 ==== Upgraded external libraries ====
2038 * Updated justinrainbow/json-schema from v3.0 to v5.2.
2039 * Updated mediawiki/mediawiki-codesniffer from v0.7.2 to v0.12.0.
2040 * Updated wikimedia/composer-merge-plugin from v1.4.0 to v1.4.1.
2041 * Updated wikimedia/relpath from v1.0.3 to v2.0.0.
2042 * Updated OOjs from v2.0.0 to v2.1.0.
2043 * Updated OOUI from v0.21.1 to v0.23.0.
2044 * Updated QUnit from v1.23.1 to v2.4.0.
2045 * Updated phpunit/phpunit from v4.8.35 to v4.8.36.
2046 * Upgraded Moment.js from v2.15.0 to v2.19.3.
2047
2048 ==== New external libraries ====
2049 * The class \TestingAccessWrapper has been moved to the external library
2050 wikimedia/testing-access-wrapper and renamed \Wikimedia\TestingAccessWrapper.
2051 * Purtle, a fast, lightweight RDF generator.
2052
2053 ==== Removed and replaced external libraries ====
2054 * …
2055
2056 === Bug fixes in 1.30 ===
2057 * (T151633) Ordered list items use now Devanagari digits in Nepalese
2058 (thanks to Sfic)
2059
2060 === Action API changes in 1.30 ===
2061 * (T37247) action=parse output will be wrapped in a div with
2062 class="mw-parser-output" by default. This may be changed or disabled using
2063 the new 'wrapoutputclass' parameter.
2064 * When errorformat is not 'bc', abort reasons from action=login will be
2065 formatted as specified by the error formatter parameters.
2066 * action=compare can now handle arbitrary text, deleted revisions, and
2067 returning users and edit comments.
2068 * (T164106) The 'rvdifftotext', 'rvdifftotextpst', 'rvdiffto',
2069 'rvexpandtemplates', 'rvgeneratexml', 'rvparse', and 'rvprop=parsetree'
2070 parameters to prop=revisions are deprecated, as are the similarly named
2071 parameters to prop=deletedrevisions, list=allrevisions, and
2072 list=alldeletedrevisions. Use action=compare, action=parse, or
2073 action=expandtemplates instead.
2074
2075 === Action API internal changes in 1.30 ===
2076 * ApiBase::getDescriptionMessage() and the "apihelp-*-description" messages are
2077 deprecated. The existing message should be split between "apihelp-*-summary"
2078 and "apihelp-*-extended-description".
2079 * (T123931) Individual values of multi-valued parameters can now be marked as
2080 deprecated.
2081
2082 === Languages updated in 1.30 ===
2083 MediaWiki supports over 350 languages. Many localisations are updated
2084 regularly. Below only new and removed languages are listed, as well as
2085 changes to languages because of Phabricator reports.
2086
2087 * Added: kbp (Kabɩyɛ / Kabiyè)
2088 * Added: skr (Saraiki, سرائیکی)
2089 * Added: tay (Tayal / Atayal)
2090 * Removed: tokipona (Toki Pona)
2091
2092 ==== Pig Latin added ====
2093 * (T45547) Added Pig Latin, a made-up English variant (en-x-piglatin),
2094 for easier variant development and testing. Disabled by default. It can be
2095 enabled by setting $wgUsePigLatinVariant to true.
2096
2097 === Other changes in 1.30 ===
2098 * The use of an associative array for $wgProxyList, where the IP address is in
2099 the key instead of the value, is deprecated (e.g. [ '127.0.0.1' => 'value' ]).
2100 Please convert these arrays to indexed/sequential ones (e.g. [ '127.0.0.1' ]).
2101 * mw.user.bucket (deprecated in 1.23) was removed.
2102 * LoadBalancer::getServerInfo() and LoadBalancer::setServerInfo() are
2103 deprecated. There are no known callers.
2104 * File::getStreamHeaders() was deprecated.
2105 * MediaHandler::getStreamHeaders() was deprecated.
2106 * Title::canTalk() was deprecated. The new Title::canHaveTalkPage() should be
2107 used instead.
2108 * MWNamespace::canTalk() was deprecated. The new MWNamespace::hasTalkNamespace()
2109 should be used instead.
2110 * The ExtractThumbParameters hook (deprecated in 1.21) was removed.
2111 * The OutputPage::addParserOutputNoText and ::getHeadLinks methods (both
2112 deprecated in 1.24) were removed.
2113 * wfMemcKey() and wfGlobalCacheKey() were deprecated. BagOStuff::makeKey() and
2114 BagOStuff::makeGlobalKey() should be used instead.
2115 * (T146304) Preprocessor handling of LanguageConverter markup has been improved.
2116 As a result of the new uniform handling, '-{' may need to be escaped
2117 (for example, as '-<nowiki/>{') where it occurs inside template arguments
2118 or wikilinks.
2119 * (T163966) Page moves are now counted as edits for the purposes of
2120 autopromotion, i.e., they increment the user_editcount field in the database.
2121 * Two new hooks, LogEventsListLineEnding and NewPagesLineEnding, were added for
2122 manipulating Special:Log and Special:NewPages lines.
2123 * The OldChangesListRecentChangesLine, EnhancedChangesListModifyLineData,
2124 PageHistoryLineEnding, ContributionsLineEnding and
2125 DeletedContributionsLineEnding hooks have an additional parameter, for
2126 manipulating HTML data attributes of RC/history lines.
2127 EnhancedChangesListModifyBlockLineData can do that via the
2128 $data['attribs'] subarray.
2129 * (T130632) The OutputPage::enableTOC() method was removed.
2130 * WikiPage::getParserOutput() will now throw an exception if passed
2131 ParserOptions that would pollute the parser cache. Callers should use
2132 WikiPage::makeParserOptions() to create the ParserOptions object and only
2133 change options that affect the parser cache key.
2134 * Article::viewRedirect() is deprecated.
2135 * IP::isValidBlock() was deprecated. Use the equivalent IP::isValidRange().
2136 * DeprecatedGlobal no longer supports passing in a direct value, it requires a
2137 callable factory function or a class name.
2138 * The $parserMemc global, wfGetParserCacheStorage(), and
2139 ParserCache::singleton() are all deprecated. The main ParserCache instance
2140 should be obtained from MediaWikiServices instead. Access to the underlying
2141 BagOStuff is possible through the new ParserCache::getCacheStorage() method.
2142 * .mw-ui-constructive CSS class (deprecated in 1.27) was removed.
2143 * Sanitizer::escapeId() was deprecated, use escapeIdForAttribute(),
2144 escapeIdForLink() or escapeIdForExternalInterwiki() instead.
2145 * Title::escapeFragmentForURL() was deprecated, use one of the aforementioned
2146 Sanitizer functions or, if possible, Title::getFragmentForURL().
2147 * Second parameter to Sanitizer::escapeIdReferenceList() ($options) now does
2148 nothing and is deprecated.
2149 * mw.util.escapeId() was deprecated, use escapeIdForAttribute() or
2150 escapeIdForLink().
2151 * MagicWord::replaceMultiple() (deprecated in 1.25) was removed.
2152 * WikiImporter now requires the second parameter to be an instance of the
2153 Config, class. Prior to that, the Config parameter was optional (a behavior
2154 deprecated in 1.25).
2155 * Removed 'jquery.mwExtension' module. (deprecated since 1.26)
2156 * mediawiki.ui: Deprecate greys, which are not part of WikimediaUI color palette
2157 any more.
2158 * CdbReader, CdbWriter, CdbException classes (deprecated in 1.25) were removed.
2159 The namespaced classes in the Cdb namespace should be used instead.
2160 * IPSet class (deprecated in 1.26) was removed. The namespaced IPSet\IPSet
2161 should be used instead.
2162 * RunningStat class (deprecated in 1.27) was removed. The namespaced
2163 RunningStat\RunningStat should be used instead.
2164 * MWMemcached and MemCachedClientforWiki classes (deprecated in 1.27) were
2165 removed.
2166 The MemcachedClient class should be used instead.
2167 * EditPage underwent some refactoring and deprecations:
2168 * EditPage::isOouiEnabled() is deprecated and will always return true.
2169 * EditPage::getSummaryInput() and ::getSummaryInputOOUI() are deprecated.
2170 Please use ::getSummaryInputWidget() instead.
2171 * EditPage::getCheckboxes() and ::getCheckboxesOOUI() are deprecated. Please
2172 use ::getCheckboxesWidget() instead.
2173 * Creating an EditPage instance without calling EditPage::setContextTitle()
2174 should be avoided and will be deprecated in a future release.
2175 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput() are deprecated and
2176 no-ops.
2177 * EditPage::$isCssJsSubpage, ::$isCssSubpage, and ::$isJsSubpage are
2178 deprecated. The corresponding methods from Title should be used instead.
2179 * EditPage::$isWrongCaseCssJsPage is deprecated. There is no replacement.
2180 * EditPage::$mArticle and ::$mTitle are deprecated for public usage. The
2181 getters ::getArticle() and ::getTitle() should be used instead.
2182 * Trying to control or fake EditPage context by overriding $wgUser,
2183 $wgRequest, $wgOut, and $wgLang is no longer supported and won't work. The
2184 IContextSource returned from EditPage::getContext() must be modified
2185 instead.
2186 * Parser::getRandomString() (deprecated in 1.26) was removed.
2187 * Parser::uniqPrefix() (deprecated in 1.26) was removed.
2188 * Parser::extractTagsAndParams() now only accepts three arguments. The fourth,
2189 $uniq_prefix was deprecated in 1.26 and has now been removed.
2190 * (T172514) The following tables have had their UNIQUE indexes turned into
2191 proper PRIMARY KEYs for increased maintainability: categorylinks, imagelinks,
2192 iwlinks, langlinks, log_search, module_deps, objectcache, pagelinks,
2193 query_cache, site_stats, templatelinks, text, transcache, user_former_groups,
2194 user_properties.
2195 * IDatabase::nextSequenceValue() is no longer needed by any database backends
2196 (formerly it was needed by PostgreSQL and Oracle), and is now deprecated.
2197 * (T146591) The lc_lang_key index on the l10n_cache table has been changed into
2198 a PRIMARY KEY.
2199 * (T157227) bot_password.bp_user, change_tag.ct_log_id, change_tag.ct_rev_id,
2200 page_restrictions.pr_user, tag_summary.ts_log_id, tag_summary.ts_rev_id and
2201 user_properties.up_user have all been made unsigned on MySQL.
2202 * DB_SLAVE is deprecated. DB_REPLICA should be used instead.
2203 * wfUsePHP() is deprecated.
2204 * wfFixSessionID() was removed.
2205 * wfShellExec() and related functions are deprecated, use Shell::command(). This
2206 also slightly changes the behavior of how execution time limits are calculated
2207 when only some of defaults are overridden per-call. When in doubt, always
2208 override both wall clock and CPU time.
2209 * (T138166) SpecialEmailUser::getTarget() now requires a second argument, the
2210 sending user object. Using the method without the second argument is
2211 deprecated.
2212 * (T67297) Browsers that don't support Unicode will have their edits rejected.
2213 * (T178450) The module 'jquery.badge' is deprecated and will be removed in a
2214 future release. For notifying the user of an event, the Notifications ("Echo")
2215 system should be used instead.
2216 * (T178451) SECURITY: Potential XSS when $wgShowExceptionDetails = false and
2217 browser sends non-standard url escaping.
2218 * (T165846) SECURITY: BotPassword login attempts weren't throttled.
2219
2220 = MediaWiki 1.29 =
2221
2222 == MediaWiki 1.29.3 ==
2223
2224 This is a security and maintenance release of the MediaWiki 1.29 branch.
2225
2226 === Changes since 1.29.2 ===
2227 * (T169545, CVE-2018-0503) SECURITY: $wgRateLimits entry for 'user' overrides
2228 'newbie'.
2229 * (T194605, CVE-2018-0505) SECURITY: BotPasswords can bypass CentralAuth's
2230 account lock.
2231 * (T180551) Fix LanguageSrTest for language converter
2232 * (T180552) Fix langauge converter parser test with self-close tags
2233 * (T180537) Remove $wgAuth usage from wrapOldPasswords.php
2234 * (T180485) InputBox: Have inputbox langconvert certain attributes
2235 * (T161732, T181547) Upgraded Moment.js from v2.15.0 to v2.19.3.
2236 * (T172927) Drop vendor from MW release branch
2237 * (T87572) Make FormatMetadata::flattenArrayReal() work for an associative array
2238 * Updated composer/spdx-licenses from 1.1.4 to 1.3.0 (development dependency).
2239 * (T189567) the CLI installer (maintenance/install.php) learned to detect and
2240 include extensions. Pass --with-extensions to enable that feature.
2241 * (T182381) Mask deprecated call in WatchedItemUnitTest
2242 * (T190503) Let built-in web server (maintenance/dev) handle .php requests.
2243 * The karma qunit tests would fail on some configuration due to headers already
2244 sent. Check headers_sent() before sending cpPosTime headers
2245 * (T167507) selenium: Run Chrome headlessly.
2246 * selenium: Pass -no-sandbox to Chrome under Docker
2247 * (T191247) Use MediaWiki\SuppressWarnings around trigger_error('') instead @
2248 * (T75174, T161041) Unit test ChangesListSpecialPageTest::testFilterUserExpLevel
2249 fails under SQLite.
2250 * (T192584) Stop incorrectly passing USE INDEX to RecentChange::newFromConds().
2251 * (T179190) selenium: Move test running logic from package.json to selenium.sh.
2252 * (T117839, T193200) PDFHandler: Fix for pdfinfo changes in poppler-utils 0.48.
2253 * Add default edit rate limit of 90 edits/minute for all users.
2254 * (T196125) php-memcached 3.0 (provided with PHP 7.0) is now supported.
2255 * (T196672) The mtime of extension.json files is now able to be zero
2256 * (T180403) Validate $length in padleft/padright parser functions.
2257 * (T143790) Make $wgEmailConfirmToEdit only affect edit actions.
2258 * (T194237) Special:BotPasswords now requires reauthentication.
2259 * (T191608, T187638) Add 'logid' parameter to Special:Log.
2260 * (T176097) resourceloader: Disable a flaky MessageBlobStoreTest case
2261 * (T193829) Indicate when a Bot Password needs reset.
2262 * (T151415) Log email changes.
2263 * (T118420) Unbreak Oracle installer.
2264
2265 == MediaWiki 1.29.2 ==
2266
2267 This is a security and maintenance release of the MediaWiki 1.29 branch.
2268
2269 === Changes since 1.29.1 ===
2270 * (T166757) Avoid scoped lock errors in Category::refreshCounts() due to
2271 nesting.
2272 * (T175439) Unbreak Postgres Updater when setting defaults for a column.
2273 * (T160298) Remove use of implicitGroupBy() in ActiveUsersPager.
2274 * Fixed login button label to accept RawMessage.
2275 * Fixed case of SpecialRecentChanges class usage.
2276 * (T174255) Declare uploadCount property in importDump.php.
2277 * (T163646) Pass a string not an int to mysql_real_escape_string().
2278 * (T180143) Bump justinrainbow/json-schema development dependency to ~5.2.
2279 * Updated dev dependancy phpunit/phpunit from v4.8.35 to v4.8.36.
2280 * (T178451) SECURITY: Potential XSS when $wgShowExceptionDetails = false and
2281 browser sends non-standard url escaping.
2282 * (T165846) SECURITY: BotPassword login attempts weren't throttled.
2283 * (T128209) SECURITY: Reflected File Download from api.php.
2284 * (T134100) SECURITY: Do not reveal if user exists during login failure.
2285 * (T176247) SECURITY: Ensure Message::rawParams can't lead to XSS.
2286 * (T125163) SECURITY: Make anchor for headlines escape > and <.
2287 * (T180237) SECURITY: Protect vendor folder with .htaccess.
2288 * (T180231) SECURITY: Remove PHPUnit file with known RCE if exists in
2289 update.php.
2290 * (T124404) SECURITY: XSS in langconverter when regex hits pcre.backtrack_limit.
2291 * (T119158) SECURITY: Handle -{}- syntax in attributes safely.
2292 * (T180488) (T125177) "api.log contains passwords in plaintext" wasn't correctly
2293 fixed in all branches in the previous security release.
2294
2295 == MediaWiki 1.29.1 ==
2296
2297 This is a maintenance release of the MediaWiki 1.29 branch.
2298
2299 The SpamBlacklist and PdfHandler extensions were missing from the generated
2300 packages.
2301
2302 === Changes since 1.29.1 ===
2303 * (T164999) Define mw.Upload.Dialog.static.name in mediawiki.Upload.Dialog.js.
2304 * (T172061) Fix fatal when passing a category to refreshLinks.php.
2305
2306 == MediaWiki 1.29.0 ==
2307
2308 === Configuration changes in 1.29 ===
2309 * Default cookie expiration time has been reduced to 30 days. Login cookie
2310 expiration time is kept at 180 days.
2311 * A new configuration variable has been added: $wgCookieSetOnAutoblock. This
2312 determines whether to set a cookie when a user is autoblocked. Doing so means
2313 that a blocked user, even after logging out and moving to a new IP address,
2314 will still be blocked.
2315 * The resetpassword right and associated password reset capture feature has
2316 been removed.
2317 * The $error parameter to the EmailUser hook should be set to a Status object
2318 or boolean false. This should be compatible with at least MediaWiki 1.23 if
2319 not earlier. Returning a raw HTML string is now deprecated.
2320 * The $message parameter to the ApiCheckCanExecute hook should be set to an
2321 ApiMessage. This is compatible with MediaWiki 1.27 and later. Returning a
2322 code for ApiBase::parseMsg() will no longer work.
2323 * ApiBase::$messageMap is no longer public. Code attempting to access it will
2324 result in a PHP fatal error.
2325 * $wgUserEmailUseReplyTo is now true by default to work around restrictive DMARC
2326 policies.
2327 * Subpages are now enabled by default in the Template namespace. Set
2328 $wgNamespacesWithSubpages[NS_TEMPLATE] to false to keep the old behavior.
2329 * $wgRunJobsAsync is now false by default (T142751). This change only affects
2330 wikis with $wgJobRunRate > 0.
2331 * (T158474) "Unknown user" has been added to $wgReservedUsernames.
2332 * (T156983) $wgRateLimitsExcludedIPs now accepts CIDR ranges as well as single
2333 IPs.
2334 * $wgDummyLanguageCodes is deprecated. Additional language code mappings may be
2335 added to $wgExtraLanguageCodes instead.
2336 * (T161453) LocalisationCache will no longer use the temporary directory in it's
2337 fallback chain when trying to work out where to write the cache.
2338 * The user right 'editusercssjs' (deprecated in 1.16) was removed. Use
2339 'editusercss' and 'edituserjs' in $wgGroupPermissions and elsewhere instead.
2340
2341 === New features in 1.29 ===
2342 * (T5233) A cookie can now be set when a user is autoblocked, to track that user
2343 if they move to a new IP address. This is disabled by default.
2344 * Added ILocalizedException interface to standardize the use of localized
2345 exceptions, largely so the API can handle them more sensibly.
2346 * Blocks created automatically by MediaWiki, such as for configured proxies or
2347 dnsbls, are now indicated as such and use a new i18n message when displayed.
2348 * Added new $wgHTTPImportTimeout setting. Sets timeout for
2349 downloading the XML dump during a transwiki import in seconds.
2350 * Parser limit report is now available in machine-readable format to JavaScript
2351 via mw.config.get('wgPageParseReport').
2352 * Added $wgSoftBlockRanges, to allow for automatically blocking anonymous edits
2353 from certain IP ranges (e.g. private IPs).
2354 * (T59603) Added new magic word {{PAGELANGUAGE}} which returns the language code
2355 of the page being parsed.
2356 * HTML5 form validation attributes will no longer be suppressed. Originally
2357 browsers had poor support for them, but modern browsers handle them fine.
2358 This might affect some forms that used them and only worked because the
2359 attributes were not actually being set.
2360 * Expiry times can now be specified when users are added to user groups.
2361 * Completely new user interface for the RecentChanges page, which
2362 structures filters into user-friendly groups. This has corresponding
2363 changes to how filters are registered by core and extensions.
2364 * The edit form now uses pretty OOjs UI buttons, checkboxes and summary input.
2365 Because this change can cause problems for extensions and on-wiki
2366 scripts depending on the exact HTML, the old version is still available
2367 and can be used by setting $wgOOUIEditPage = false; in LocalSettings.php.
2368 This will be removed later and OOjs UI will become the only option.
2369 To make testing easier, users can also force either mode by adding
2370 &ooui=true or &ooui=false to the action=edit URL.
2371
2372 === External library changes in 1.29 ===
2373
2374 ==== Upgraded external libraries ====
2375 * Updated QUnit from v1.22.0 to v1.23.1.
2376 * Updated cssjanus from v1.1.2 to v1.2.0.
2377 * Updated psr/log from v1.0.0 to v1.0.2.
2378 * Update Moment.js from v2.8.4 to v2.15.0.
2379 * Updated oyejorge/less.php from v1.7.0.10 to v1.7.0.14.
2380 * Updated monolog from v1.18.2 to 1.22.1.
2381 * Updated wikimedia/composer-merge-plugin from v1.3.1 to v1.4.0.
2382 * Updated OOjs from v1.1.10 to v2.0.0.
2383 * Updated jQuery from v1.11.3 to v3.2.1 (including jQuery Migrate v3.0.0).
2384
2385 ==== New external libraries ====
2386 * Added wikimedia/timestamp v1.0.0.
2387 * Added wikimedia/remex-html v1.0.1.
2388
2389 ==== Removed and replaced external libraries ====
2390
2391 === Bug fixes in 1.29 ===
2392 * (T62604) Core parser functions returning a number now format the number
2393 according to the page content language, not wiki content language.
2394 * (T27187) Search suggestions based on jquery.suggestions will now correctly
2395 only highlight prefix matches in the results.
2396 * (T157035) "new mw.Uri()" was ignoring options when using default URI.
2397 * Special:Allpages can no longer be filtered by redirect in miser mode.
2398 * (T160519) CACHE_ANYTHING will not be CACHE_ACCEL if no accelerator is
2399 installed.
2400 * (T109140) (T122209) SECURITY: Special:UserLogin and Special:Search allow
2401 redirect to interwiki links.
2402 * (T144845) SECURITY: XSS in SearchHighlighter::highlightText() when
2403 $wgAdvancedSearchHighlighting is true.
2404 * (T125177) SECURITY: API parameters may now be marked as "sensitive" to keep
2405 their values out of the logs.
2406 * (T150044) SECURITY: "Mark all pages visited" on the watchlist now requires a
2407 CSRF token.
2408 * (T156184) SECURITY: Escape content model/format url parameter in message.
2409 * (T151735) SECURITY: SVG filter evasion using default attribute values in DTD
2410 declaration.
2411 * (T161453) SECURITY: LocalisationCache will no longer use the temporary
2412 directory in it's fallback chain when trying to work out where to write the
2413 cache.
2414 * (T48143) SECURITY: Spam blacklist ineffective on encoded URLs inside file
2415 inclusion syntax's link parameter.
2416 * (T108138) SECURITY: Sysops can undelete pages, although the page is protected
2417 against it.
2418
2419 === Action API changes in 1.29 ===
2420 * Submitting sensitive authentication request parameters to action=login,
2421 action=clientlogin, action=createaccount, action=linkaccount, and
2422 action=changeauthenticationdata in the query string is now an error. They
2423 should be submitted in the POST body instead.
2424 * The capture option for action=resetpassword has been removed
2425 * action=clearhasmsg now requires a POST.
2426 * (T47843) API errors and warnings may be requested in non-English languages
2427 using the new 'errorformat', 'errorlang', and 'errorsuselocal' parameters.
2428 * API error codes may have changed. Most notably, errors from modules using
2429 parameter prefixes (e.g. all query submodules) will no longer be prefixed.
2430 * ApiPageSet-using modules will report the 'invalidreason' using the specified
2431 'errorformat'.
2432 * action=emailuser may return a "Warnings" status, and now returns 'warnings'
2433 and 'errors' subelements (as applicable) instead of 'message'.
2434 * action=imagerotate returns an 'errors' subelement rather than 'errormessage'.
2435 * action=move now reports errors when moving the talk page as an array under
2436 key 'talkmove-errors', rather than using 'talkmove-error-code' and
2437 'talkmove-error-info'. The format for subpage move errors has also changed.
2438 * action=revisiondelete no longer includes a "rendered" property on warnings
2439 and errors for each item. Use errorformat=wikitext if you're wanting parsed
2440 output.
2441 * action=rollback no longer returns a "messageHtml" property. Use
2442 errorformat=html if you're wanting HTML formatting of error messages.
2443 * action=upload now reports optional stash failures as an array under key
2444 'stasherrors' rather than a 'stashfailed' text string.
2445 * action=watch reports 'errors' and 'warnings' instead of a single 'error', and
2446 no longer returns a 'message' on success.
2447 * Added action=validatepassword to validate passwords for the account creation
2448 and password change forms.
2449 * action=purge now requires a POST.
2450 * There is a new `languagevariants` siprop for action=query&meta=siteinfo,
2451 which returns a list of languages with active LanguageConverter instances.
2452 * action=query&query=allpages will no longer filter redirects using a database
2453 query in miser mode. This may result in less results being returned than were
2454 requested.
2455
2456 === Action API internal changes in 1.29 ===
2457 * New methods were added to ApiBase to handle errors and warnings using i18n
2458 keys. Methods for using hard-coded English messages were deprecated:
2459 * ApiBase::dieUsage() was deprecated
2460 * ApiBase::dieUsageMsg() was deprecated
2461 * ApiBase::dieUsageMsgOrDebug() was deprecated
2462 * ApiBase::getErrorFromStatus() was deprecated
2463 * ApiBase::parseMsg() was deprecated
2464 * ApiBase::setWarning() was deprecated
2465 * ApiBase::$messageMap is no longer public. Code attempting to access it will
2466 result in a PHP fatal error.
2467 * The $message parameter to the ApiCheckCanExecute hook should be set to an
2468 ApiMessage. This is compatible with MediaWiki 1.27 and later. Returning a
2469 code for ApiBase::parseMsg() will no longer work.
2470 * UsageException is deprecated in favor of ApiUsageException. For the time
2471 being ApiUsageException is a subclass of UsageException to allow things that
2472 catch only UsageException to still function properly.
2473 * If, for some strange reason, code was using an ApiErrorFormatter instead of
2474 ApiErrorFormatter_BackCompat, note that the result format has changed and
2475 various methods now take a module path rather than a module name.
2476 * ApiMessageTrait::getApiCode() now strips 'apierror-' and 'apiwarn-' prefixes
2477 from the message key, and maps some message keys for backwards compatibility.
2478 * API parameters may now be marked as "sensitive" to keep their values out of
2479 the logs.
2480
2481 === Languages updated in 1.29 ===
2482
2483 MediaWiki supports over 350 languages. Many localisations are updated
2484 regularly. Below only new and removed languages are listed, as well as
2485 changes to languages because of Phabricator reports.
2486
2487 * Based as always on linguistic studies on intelligibility and language
2488 knowledge by geography, language fallbacks have been expanded. When a
2489 translation is missing in the user's preferred interface language, the
2490 corresponding translation for the fallback language will be used instead.
2491 English will only be used as last resort when there are no translations.
2492 Some configurations (such as date formats and gender namespaces) have also
2493 been updated when using the fallback language's configuration was inadequate.
2494 The new or reinstated language fallbacks are (after cs ↔ sk in 1.28):
2495 ca ↔ oc; hsb ↔ dsb; io → eo; mdf → ru; pnt → el; roa-tara → it; rup → ro;
2496 sh → bs, sr-el, hr.
2497 * (T137376) New language support: Atikamekw (atj).
2498 * (T163600) New language support: Dinka (din).
2499 * (T155957) Talk Namespaces for Javanese language (jv) have been updated.
2500
2501 ==== No fallback for Ukrainian ====
2502 * (T39314) The fallback from Ukrainian to Russian was removed. The Ukrainian
2503 language will now use the default fallback language: English. When a
2504 translation to Ukrainian is not available, an English string will be shown.
2505
2506 === Other changes in 1.29 ===
2507 * Database::getSearchEngine() (deprecated in 1.28) was removed. Use
2508 SearchEngineFactory::getSearchEngineClass() instead.
2509 * $wgSessionsInMemcached (deprecated in 1.20) was removed. No replacement is
2510 required as all sessions are stored in Object Cache now.
2511 * MWHttpRequest::execute() should be considered to return a StatusValue; the
2512 Status return type is deprecated.
2513 * User::edits() (deprecated in 1.21) was removed.
2514 * Xml::escapeJsString() (deprecated in 1.21) was removed.
2515 * Article::getText() and Article::prepareTextForEdit() (deprecated in 1.21)
2516 were removed.
2517 * Article::getAutosummary() and WikiPage::getAutosummary() (deprecated in 1.21)
2518 were removed.
2519 * Hook ArticleViewCustom (deprecated in 1.21) was removed. Use
2520 ArticleContentViewCustom instead.
2521 * Hooks EditPageGetDiffText and ShowRawCssJs (deprecated in 1.21) were removed.
2522 * Class RevisiondeleteAction (deprecated in 1.25) was removed.
2523 * WikiPage::prepareTextForEdit() (deprecated in 1.21) was removed.
2524 * WikiPage::getText() (deprecated in 1.21) was removed.
2525 * Article::fetchContent() (deprecated in 1.21) was removed.
2526 * User::getPassword() (deprecated in 1.27) was removed.
2527 * User::getTemporaryPassword() (deprecated in 1.27) was removed.
2528 * User::isPasswordReminderThrottled() (deprecated in 1.27) was removed.
2529 * Class FSRepo (deprecated in 1.19) was removed.
2530 * WebRequest::checkSessionCookie() (deprecated in 1.27) was removed. Use
2531 \MediaWiki\Session\SessionManager::singleton()->getPersistedSessionId()
2532 instead.
2533 * Class ImageGallery (deprecated in 1.22) was removed.
2534 Use ImageGalleryBase::factory instead.
2535 * Title::moveNoAuth() (deprecated in 1.25) was removed. Use MovePage class
2536 instead.
2537 * Hook UnknownAction (deprecated in 1.19) was actually deprecated (it will now
2538 emit warnings). Create a subclass of Action and add it to $wgActions instead.
2539 * WikiRevision::getText() (deprecated since 1.21) is no longer marked
2540 deprecated.
2541 * Linker::getInterwikiLinkAttributes() (deprecated since 1.25) was removed.
2542 * Linker::getInternalLinkAttributes() (deprecated since 1.25) was removed.
2543 * Linker::getInternalLinkAttributesObj() (deprecated since 1.25) was removed.
2544 * Linker::getLinkAttributesInternal() (deprecated since 1.25) was removed.
2545 * RedisConnectionPool::handleException (deprecated since 1.23) was removed.
2546 * The static properties mw.Api.errors and mw.Api.warnings, containing incomplete
2547 and outdated lists of errors/warnings returned by the API, are now deprecated.
2548 * wiki.phtml entry point was removed. Refer to index.php instead. If you want
2549 "wiki.phtml" URLs to continue to work, set up redirects. In Apache, this can
2550 be done by enabling mod_rewrite and adding the following rules to your
2551 configuration:
2552
2553 RewriteEngine On
2554 RewriteBase /
2555 RewriteRule ^/w/wiki\.phtml$ /w/index.php [R=301,L]
2556 * Hook ArticleAfterFetchContent (deprecated in 1.21) was removed.
2557 Use ArticleAfterFetchContentObject instead.
2558 * Hook ArticleInsertComplete (deprecated in 1.21) was removed.
2559 Use PageContentInsertComplete instead.
2560 * Hook ArticleSave (deprecated in 1.21) was removed.
2561 Use PageContentSave instead.
2562 * Hook ArticleSaveComplete (deprecated in 1.21) was removed.
2563 Use PageContentSaveComplete instead.
2564 * Hook EditFilterMerged (deprecated in 1.21) was removed.
2565 Use EditFilterMergedContent instead.
2566 * Hook EditPageGetPreviewText (deprecated in 1.21) was removed.
2567 Use EditPageGetPreviewContent instead.
2568 * Hook TitleIsCssOrJsPage (deprecated in 1.21) was removed.
2569 Use ContentHandlerDefaultModelFor instead.
2570 * Hook TitleIsWikitextPage (deprecated in 1.21) was removed.
2571 Use ContentHandlerDefaultModelFor instead.
2572 * Article::getContent() (deprecated in 1.21) was removed.
2573 * Revision::getText() (deprecated in 1.21) was removed.
2574 * Article::doEdit() and WikiPage::doEdit() (deprecated in 1.21) were removed.
2575 * Parser::replaceUnusualEscapes() (deprecated in 1.24) was removed.
2576 * Article::doEditContent() was marked as deprecated, to be removed in 1.30
2577 or later.
2578 * ContentHandler::runLegacyHooks() was removed.
2579 * refreshLinks.php now can be limited to a particular category with
2580 --category=... or a tracking category with --tracking-category=...
2581 * User-like objects that are passed to SpecialUserRights and its subclasses are
2582 now required to have a getGroupMemberships() method. See UserRightsProxy for
2583 an example.
2584 * User::$mGroups (instance variable) was marked private. Use User::getGroups()
2585 instead.
2586 * User::getGroupName(), User::getGroupMember(), User:getGroupPage(),
2587 User::makeGroupLinkHTML(), and User::makeGroupLinkWiki() were deprecated.
2588 Use equivalent methods on the UserGroupMembership class.
2589 * Maintenance scripts and tests that call User::addGroup() must now ensure that
2590 User objects have been added to the database prior to calling addGroup().
2591 * Protected function UsersPager::getGroups() was removed, and protected function
2592 UsersPager::buildGroupLink() was changed from a static to an instance method.
2593 * The third parameter ($cache) to the UsersPagerDoBatchLookups hook was changed;
2594 see docs/hooks.txt.
2595 * User::crypt() (deprecated in 1.24) was removed.
2596 * User::comparePasswords() (deprecated in 1.24) was removed.
2597 * ArchivedFile::getUserText() (deprecated in 1.23) was removed.
2598 * HTMLFileCache::newFromTitle() (deprecated in 1.24) was removed.
2599 * BREAKING CHANGE: Internal signature changes to ChangesListSpecialPage
2600 and subclasses. It should only break if you call buildMainQueryConds
2601 (changed to buildQuery with new signature) or doMainQuery (new
2602 signature). Subclasses are likely to call at least doMainQuery
2603 (possibly both), but other classes might too, because they were
2604 public.
2605 Also, some related hooks were deprecated, but this is not yet a
2606 breaking change.
2607 * Removed 'jquery.arrowSteps' module. (deprecated since 1.28)
2608 * The 'jquery.autoEllipsis' ResourceLoader module is now deprecated.
2609 * WikiRevision::$fileIsTemp was deprecated.
2610 * WikiRevision::$importer was deprecated.
2611 * WikiRevision::$user was deprecated.
2612 * Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
2613 WikiPage::PURGE_* constants are deprecated, and the functions will always
2614 return false. They were a hack for an issue that has since been fixed.
2615 * Hook 'EditPageBeforeEditChecks' is now deprecated. Instead use the new hook
2616 'EditPageGetCheckboxesDefinition', or 'EditPage::showStandardInputs:options'
2617 if you don't actually care about checkboxes and just want to add some HTML
2618 to the page.
2619 * Selflinks are now rendered as href-less <a> tags with the class mw-selflink
2620 rather than <strong> tags. The old class name, "selflink", was deprecated
2621 and will be removed in a future release. (T160480)
2622 * (T156184) $wgRawHtml will no longer apply to internationalization messages.
2623 * Browser support for non-ES5 JavaScript browsers, including Android 2,
2624 Opera <12.10, and Internet Explorer 9, was lowered from Grade A to Grade C.
2625 * Removed wikibits global methods deprecated since MediaWiki 1.17 (T122755):
2626 is_gecko, is_chrome_mac, is_chrome, webkit_version, is_safari_win, is_safari,
2627 webkit_match, is_ff2, ff2_bugs, is_ff2_win, is_ff2_x11, opera95_bugs,
2628 opera7_bugs, opera6_bugs, is_opera_95, is_opera_preseven, is_opera,
2629 ie6_bugs, clientPC, changeText, killEvt, addHandler, hookEvent,
2630 addClickHandler, removeHandler, getElementsByClassName, getInnerText,
2631 setupCheckboxShiftClick, addCheckboxClickHandlers, mwEditButtons,
2632 mwCustomEditButtons, injectSpinner, removeSpinner, escapeQuotes,
2633 escapeQuotesHTML, jsMsg, addPortletLink, appendCSS, tooltipAccessKeyPrefix,
2634 tooltipAccessKeyRegexp, updateTooltipAccessKeys.
2635 * The ID of the <li> element containing the login link has changed from
2636 'pt-login' to 'pt-login-private' in private wikis.
2637 * The old, neglected "bulletin board style toolbar" in the edit form is now
2638 deprecated (T30856). This old code dates from 2006, and was replaced in the
2639 MediaWiki release tarball and in Wikimedia production by the WikiEditor
2640 extension in 2010. It is only shown to users if no other editor was
2641 installed, and leads to confusion.
2642 * (T92459) Loading ResourceLoader modules containing JavaScript through
2643 addModuleStyles() is deprecated and will log a warning server-side.
2644
2645 = MediaWiki 1.28 =
2646
2647 == MediaWiki 1.28.3 ==
2648
2649 This is a security and maintenance release of the MediaWiki 1.28 branch.
2650
2651 === Changes since 1.28.2 ==
2652 * (T168856) Allow SVGs created by Dia to be uploaded.
2653 * (T157545) Add missing doUpdates() call to refreshLinks.php.
2654 * (T165714) (T100085) Better handling of jobs execution in post-connection
2655 shutdown.
2656 * (T154425) (T154438) (T157679) Use AutoCommitUpdate instead of
2657 Database->onTransactionIdle.
2658 * (T154425) Make DeferredUpdates detect LBFactory transaction rounds.
2659 * (T149454) Restore erroneously removed realTableName call from
2660 DatabasePostgres.
2661 * (T167798) Fix phrase search and highlighting for phrase queries.
2662 * (T151136) Provide credits information to callbacks in extension registration.
2663 * (T160462) Allow namespaces defined in extension.json to be overwritten
2664 locally.
2665 * (T168337) Fix ErrorPageError to work from non-UI contexts.
2666 * (T143788) Backports for PHP 7.0 and 7.1 support.
2667 * (T175439) Unbreak Postgres Updater when setting defaults for a column.
2668 * (T160298) Remove use of implicitGroupBy() in ActiveUsersPager.
2669 * (T174255) Declare uploadCount property in importDump.php.
2670 * (T180231) SECURITY: Updated dev dependancy phpunit/phpunit from v4.8.24 to
2671 v4.8.36.
2672 * (T178451) SECURITY: Potential XSS when $wgShowExceptionDetails = false and
2673 browser sends non-standard url escaping.
2674 * (T165846) SECURITY: BotPassword login attempts weren't throttled.
2675 * (T128209) SECURITY: Reflected File Download from api.php.
2676 * (T134100) SECURITY: Do not reveal if user exists during login failure.
2677 * (T176247) SECURITY: Ensure Message::rawParams can't lead to XSS.
2678 * (T125163) SECURITY: Make anchor for headlines escape > and <.
2679 * (T180237) SECURITY: Protect vendor folder with .htaccess.
2680 * (T180231) SECURITY: Remove PHPUnit file with known RCE if exists in
2681 update.php.
2682 * (T124404) SECURITY: XSS in langconverter when regex hits pcre.backtrack_limit.
2683 * (T119158) SECURITY: Handle -{}- syntax in attributes safely.
2684
2685 == MediaWiki 1.28.2 ==
2686
2687 Due to a packaging error, the wrong version of the SyntaxHighlight extension was
2688 included in the tarball version of MediaWiki 1.28.1. The version included had a
2689 serious security issue in it (T158689). There was also some minor code fixes in
2690 MediaWiki itself since 1.28.1, but none of them were security relevant.
2691
2692 == MediaWiki 1.28.1 ==
2693
2694 This is a security and maintenance release of the MediaWiki 1.28 branch.
2695
2696 === Changes since 1.28.0 ===
2697
2698 * $wgRunJobsAsync is now false by default (T142751). This change only affects
2699 wikis with $wgJobRunRate > 0.
2700 * Fix fatal from "WaitConditionLoop" not being found, experienced when a wiki
2701 has more than one database server setup.
2702 * (T152717) Better escaping for PHP mail() command,
2703 * (T154670) A missing method causing the MySQL installer to fatal in rare
2704 circumstances was restored.
2705 * (T154672) Un-deprecate ArticleAfterFetchContentObject hook.
2706 * (T158766) Avoid SQL error on MSSQL when using selectRowCount().
2707 * (T145635) Fix too long index error when installing with MSSQL.
2708 * (T156184) $wgRawHtml will no longer apply to internationalization messages.
2709 * (T160519) CACHE_ANYTHING will not be CACHE_ACCEL if no accelerator is
2710 installed.
2711 * (T154872) Fix incorrect ar_usertext_timestamp index names in new 1.28
2712 installs.
2713 * (T109140) (T122209) SECURITY: Special:UserLogin and Special:Search allow
2714 redirect to interwiki links.
2715 * (T144845) SECURITY: XSS in SearchHighlighter::highlightText() when
2716 $wgAdvancedSearchHighlighting is true.
2717 * (T125177) SECURITY: API parameters may now be marked as "sensitive" to keep
2718 their values out of the logs.
2719 * (T150044) SECURITY: "Mark all pages visited" on the watchlist now requires a
2720 CSRF token.
2721 * (T156184) SECURITY: Escape content model/format url parameter in message.
2722 * (T151735) SECURITY: SVG filter evasion using default attribute values in DTD
2723 declaration.
2724 * (T161453) SECURITY: LocalisationCache will no longer use the temporary
2725 directory in it's fallback chain when trying to work out where to write the
2726 cache.
2727 * (T48143) SECURITY: Spam blacklist ineffective on encoded URLs inside file
2728 inclusion syntax's link parameter.
2729 * (T108138) SECURITY: Sysops can undelete pages, although the page is protected
2730 against it.
2731
2732 == MediaWiki 1.28 ==
2733
2734 === Changes since 1.28.0-rc1 ===
2735 * (T148957) Replace wgShowExceptionDetails with wgShowDBErrorBacktrace on db
2736 errors.
2737 * (T148956) Only apply wgDBschema to postgres/mssql.
2738 * (T145991) Introduce separate log action for deleting pages on move.
2739 * (T141474) (T110464) Bypass login page if no user input is required.
2740
2741 === Changes since 1.28.0-rc0 ===
2742 * (T142210) The changes to move the parser "NewPP limit report" from a HTML
2743 comment to a machine-readable JavaScript config option 'wgPageParseReport'
2744 have been undone. They caused the human-readable limit report to be shown
2745 incompletely or not at all. ParserOutput::setLimitReportData() and
2746 getLimitReportData() behave as they did in MediaWiki 1.27 again.
2747 * (T149510) Value of {{DISPLAYTITLE:}} parser function will not be used for
2748 the text of subheadings on a category page when creating it. This wasn't
2749 working correctly.
2750 * (T106793) MediaWiki will no longer try to perform a HTTP redirect to the
2751 canonical pretty URL when a non-pretty URL is used. It resulted in redirect
2752 loops in some clients and in some server configurations. This undoes a change
2753 made in MediaWiki 1.26.
2754 * (T149759) manifest_version: 2 was removed.
2755
2756 === Configuration changes in 1.28 ===
2757 * $wgSend404Code now affects status code of action=history if the page is not
2758 there.
2759 * BREAKING CHANGE: $wgHTTPProxy is now *required* for all external requests
2760 made by MediaWiki via a proxy. Relying on the http_proxy environment
2761 variable is no longer supported.
2762 * The load.php entry point now enforces the existing policy of not allowing
2763 access to session data, which includes the session user and the session
2764 user's language. If such access is attempted, an exception will be thrown.
2765 * The number of internal PBKDF2 iterations used to derive the session secret
2766 is configurable via $wgSessionPbkdf2Iterations.
2767 * Upload dialog's file upload log comment can now be configured separately for
2768 local and foreign uploads.
2769 * $wgForeignUploadTargets now defaults to `[ 'local' ]`, where `'local'`
2770 signifies local uploads. A value of `[]` (empty array) now means that
2771 no upload targets are allowed, effectively disabling the upload dialog.
2772 * The deprecated $wgEditEncoding variable has been removed; it was only used
2773 for Esperanto language character conversion. You are now recommended to use
2774 input methods provided by the UniversalLanguageSelector extension.
2775 * When $wgPingback is true, MediaWiki will periodically ping
2776 https://www.mediawiki.org/beacon with basic information about the local
2777 MediaWiki installation. This data includes, for example, the type of system,
2778 PHP version, and chosen database backend. This behavior is off by default.
2779 * When $wgEditSubmitButtonLabelPublish is true, MediaWiki will label the button
2780 to store-to-database-and-show-to-others as "Publish page"/"Publish changes";
2781 if false, the default, they will be "Save page"/"Save changes".
2782 * The 'editcontentmodel' permission is now granted to all logged-in users
2783 ('user').
2784 instead of just administrators ('sysop'). Documentation for this feature is
2785 available at <https://www.mediawiki.org/wiki/Help:ChangeContentModel>.
2786 * $wgRevisionCacheExpiry is now set to one week by default instead of being
2787 disabled.
2788 * Magic links are now disabled by default, and can be re-enabled by modifying
2789 the value of $wgEnableMagicLinks. Their usage is discouraged, but if they are
2790 manually enabled, a tracking category will be added to help identify usage and
2791 make it easier to migrate away from. If you depend upon magic link
2792 functionality, it is requested that you comment on
2793 <https://www.mediawiki.org/wiki/Requests_for_comment/Future_of_magic_links>
2794 and explain your use case(s).
2795 * New config variable $wgCSPFalsePositiveUrls to control what URLs to ignore
2796 in upcoming Content-Security-Policy feature's reporting.
2797
2798 === New features in 1.28 ===
2799 * User::isBot() method for checking if an account is a bot role account.
2800 * Added a new 'slideshow' mode for galleries.
2801 * Added a new hook, 'UserIsBot', to aid in determining if a user is a bot.
2802 * Added a new hook, 'ApiMakeParserOptions', to allow extensions to better
2803 interact with API parsing.
2804 * Added a new hook, 'UploadVerifyUpload', which can be used to reject a file
2805 upload. Unlike 'UploadVerifyFile' it provides information about upload comment
2806 and the file description page, but does not run for uploads to stash.
2807 * (T141604) Extensions can now provide a better error message when their
2808 maintenance scripts are run without the extension being installed.
2809 * (T8948) Numeric sorting in categories is now supported by setting
2810 $wgCategoryCollation to 'uca-default-u-kn' or 'uca-<langcode>-u-kn'. If you
2811 can't use UCA collations, a 'numeric' collation is also available. If
2812 migrating from another collation, you will need to run the updateCollation.php
2813 maintenance script.
2814 * Two new codes have been added to #time parser function: "xit" for days in
2815 current month, and "xiz" for days passed in the year, both in Iranian
2816 calendar.
2817 * mw.Api has a new option, useUS, to use U+001F (Unit Separator) when
2818 appropriate for sending multi-valued parameters. This defaults to true when
2819 the mw.Api instance seems to be for the local wiki.
2820 * After a client performs an action which alters a database that has replica
2821 databases, MediaWiki will wait for the replica databases to synchronize with
2822 the master database while it renders the HTML output. However, if the output
2823 is a redirect to another wiki on the wiki farm with a different domain,
2824 MediaWiki will instead alter the redirect URL to include a ?cpPosTime
2825 parameter that triggers the database synchronization when the URL is followed
2826 by the client. The same-domain case uses a new cpPosTime cookie.
2827 * Added new hooks, 'ApiQueryBaseBeforeQuery', 'ApiQueryBaseAfterQuery', and
2828 'ApiQueryBaseProcessRow', to make it easier for extensions to add 'prop' and
2829 'show' parameters to existing API query modules.
2830
2831 === External library changes in 1.28 ===
2832
2833 ==== Upgraded external libraries ====
2834 * Updated es5-shim from v4.1.5 to v4.5.8
2835 * Updated composer/semver from v1.4.1 to v1.4.2
2836 * Updated wikimedia/php-session-serializer from v1.0.3 to v1.0.4
2837
2838 ==== New external libraries ====
2839 * Added wikimedia/scoped-callback v1.0.0
2840 * Added wikimedia/wait-condition-loop v1.0.1
2841
2842 === Bug fixes in 1.28 ===
2843 * (T146496) action=history pages should return 404 HTTP error code if the page
2844 does not exist
2845 * (T137264) SECURITY: XSS in unclosed internal links
2846 * (T133147) SECURITY: Escape '<' and ']]>' in inline <style> blocks
2847 * (T133147) SECURITY: Require login to preview user CSS pages
2848 * (T132926) SECURITY: Do not allow undeleting a revision deleted file if it is
2849 the top file
2850 * (T129738) SECURITY: Make $wgBlockDisablesLogin also restrict logged in
2851 permissions
2852 * (T129738) SECURITY: Make blocks log users out if $wgBlockDisablesLogin is true
2853 * (T139670) Move 'UserGetRights' call before application of
2854 Session::getAllowedUserRights()
2855
2856 === Action API changes in 1.28 ===
2857 * Added 'maxarticlesize' property to action=query&meta=siteinfo which contains
2858 the value of $wgMaxArticleSize.
2859 * Property 'modulemessages' from action=parse&prop=modules was removed
2860 (deprecated since 1.26).
2861 * The following response properties from action=login, deprecated in 1.27, are
2862 now removed: lgtoken, cookieprefix, sessionid. Clients should handle cookies
2863 to properly manage session state.
2864 * Submitting the lgtoken and lgpassword parameters in the query string to
2865 action=login is now deprecated and outputs a warning. They should be submitted
2866 in the POST body instead.
2867 * Submitting sensitive authentication request parameters to action=clientlogin,
2868 action=createaccount, action=linkaccount, and action=changeauthenticationdata
2869 in the query string is now deprecated and outputs a warning. They should be
2870 submitted in the POST body instead.
2871 * (T141960) Multi-valued parameters may now be separated using U+001F
2872 (Unit Separator) instead of the pipe character. This will be useful if some of
2873 the multiple values need to contain pipes, e.g. for action=options.
2874 * The API will now warn if input is not NFC-normalized Unicode or if it
2875 contains invalid characters.
2876 * The 'normalized' list output by action=query and other modules that use
2877 ApiPageSet may contain entries where the 'from' value is percent-encoded as
2878 the raw value cannot be represented in a valid API response. These are
2879 indicated by a 'fromencoded' boolean alongside the existing 'from' parameter.
2880 * (T28680) action=paraminfo can now return info about all submodules of a
2881 module without listing them all explicitly.
2882 * (T146770) It is now possible to assert that the current user is a specific
2883 named user, using the 'assertuser' parameter.
2884 * (T141963) Added a 'known' property when missing-but-known titles (e.g. from
2885 the 'TitleIsAlwaysKnown' hook) are output in various modules.
2886
2887 === Action API internal changes in 1.28 ===
2888 * Added a new hook, 'ApiMakeParserOptions', to allow extensions to better
2889 interact with ApiParse and ApiExpandTemplates.
2890 * (T139565) SECURITY: API: Generate head items in the context of the given title
2891 * (T115333) SECURITY: Check read permission when loading page content in
2892 ApiParse
2893 * ApiBase::getResultData() was removed (deprecated since 1.25)
2894 * ApiBase::makeHelpArrayToString() was removed (deprecated since 1.25)
2895 * ApiBase::makeHelpMsgParameters() was removed (deprecated since 1.25)
2896 * ApiBase::makeHelpMsg() was removed (deprecated since 1.25)
2897 * ApiFormatBase::formatHTML() was removed (deprecated since 1.25)
2898 * ApiFormatBase::getNeedsRawData() was removed (deprecated since 1.25)
2899 * ApiFormatBase::getWantsHelp() was removed (deprecated since 1.25)
2900 * ApiFormatBase::setBufferResult() was removed (deprecated since 1.25)
2901 * ApiFormatBase::setHelp() was removed (deprecated since 1.25)
2902 * ApiFormatBase::setUnescapeAmps() was removed (deprecated since 1.25)
2903 * ApiMain::makeHelpMsgHeader() was removed (deprecated since 1.25)
2904 * ApiMain::reallyMakeHelpMsg() was removed (deprecated since 1.25)
2905 * ApiMain::setHelp() was removed (deprecated since 1.25)
2906 * ApiResult::beginContinuation() was removed (deprecated since 1.25)
2907 * ApiResult::cleanUpUTF8() was removed (deprecated since 1.25)
2908 * ApiResult::convertStatusToArray() was removed (deprecated since 1.25)
2909 * ApiResult::disableSizeCheck() was removed (deprecated since 1.24)
2910 * ApiResult::enableSizeCheck() was removed (deprecated since 1.24)
2911 * ApiResult::endContinuation() was removed (deprecated since 1.25)
2912 * ApiResult::getData() was removed (deprecated since 1.25)
2913 * ApiResult::getIsRawMode() was removed (deprecated since 1.25)
2914 * ApiResult::setContent() was removed (deprecated since 1.25)
2915 * ApiResult::setContinueParam() was removed (deprecated since 1.25)
2916 * ApiResult::setElement() was removed (deprecated since 1.25)
2917 * ApiResult::setGeneratorContinueParam() was removed (deprecated since 1.25)
2918 * ApiResult::setIndexedTagName_internal() was removed (deprecated since 1.25)
2919 * ApiResult::setIndexedTagName_recursive() was removed (deprecated since 1.25)
2920 * ApiResult::setMainForContinuation() was removed (deprecated since 1.25)
2921 * ApiResult::setParsedLimit() was removed (deprecated since 1.25)
2922 * ApiResult::setRawMode() was removed (deprecated since 1.25)
2923 * ApiResult::size() was removed (deprecated since 1.25)
2924 * Added new hooks, 'ApiQueryBaseBeforeQuery', 'ApiQueryBaseAfterQuery', and
2925 'ApiQueryBaseProcessRow', to make it easier for extensions to add 'prop' and
2926 'show' parameters to existing API query modules. A query module can enable
2927 these hooks by passing an array for $hookData to ApiQueryBase::select() and
2928 by calling ApiQueryBase->processRow() before adding a row's data to the
2929 result.
2930
2931 === Languages updated in 1.28 ===
2932
2933 MediaWiki supports over 375 languages. Many localisations are updated
2934 regularly. Below only new and removed languages are listed, as well as
2935 changes to languages because of Phabricator reports.
2936
2937 * (T137411) ban (Balinese), thanks to translators Adi Mayndra, Andru,
2938 BASAbali, M. Adiputra, Naval Scene, Nemo bis, NoiX180, and 아라.
2939 * (T135867) shn (Shan), thanks to translators Khun Sar, Piangpha,
2940 Saiddzone Saimawnkham, Saosukham, and Sengwan.
2941 * Czech (cs) and Slovak (sk) set as reciprocal fallbacks.
2942 * (T146744) Livvi-Karelian (olo) namespace messages created thanks to translator
2943 Ilja.mos.
2944
2945 === Other changes in 1.28 ===
2946 * (T128697) Improved handling of large diffs.
2947 * [BREAKING CHANGE] $wgExtendedLoginCookies has been removed. You can
2948 use or update a custom session provider if needed.
2949 * Deprecated APIEditBeforeSave hook in favor of EditFilterMergedContent.
2950 * The 'UploadVerification' hook is deprecated. Use 'UploadVerifyFile' instead.
2951 * SiteConfiguration::isLocalVHost() was removed (deprecated since 1.25).
2952 * The 'UserLoginComplete' hook has a new parameter to differentiate between
2953 actual login and visiting the login page while already logged in.
2954 * ResourceLoader::makeLoaderURL() was removed (deprecated since 1.24).
2955 * $.fn.liveAndTestAtStart was removed (deprecated since 1.24).
2956 * mw.util.tooltipAccessKeyPrefix was removed (deprecated since 1.24).
2957 * mw.util.tooltipAccessKeyRegexp was removed (deprecated since 1.24).
2958 * Linker::link() and Linker::linkKnown() were deprecated; please instead use
2959 MediaWiki\Linker\LinkRenderer. In addition, the LinkBegin and LinkEnd hooks
2960 were replaced by HtmlPageLinkRendererBegin and HtmlPageLinkRendererEnd
2961 respectively. See docs/hooks.txt for the specific changes needed for those
2962 hooks.
2963 * Linker::formatSize() was deprecated. Use Language::formatSize() directly.
2964 * Aliases for Linker methods, deprecated since 1.21, were removed from Skin:
2965 * Skin::commentBlock() (use Linker::commentBlock() instead)
2966 * Skin::generateRollback() (use Linker::generateRollback() instead)
2967 * Skin::link() (use MediaWiki\Linker\LinkRenderer instead)
2968 * Skin::linkKnown() (use MediaWiki\Linker\LinkRenderer instead)
2969 * Skin::userLink() (use Linker::userLink() instead)
2970 * Skin::userToolLinks() (use Linker::userToolLinks() instead)
2971 * Disabled "bug 2702" HTML tidying of parsed UI messages on wikis where Tidy is
2972 disabled.
2973 * DifferenceEngine::generateDiffBody() was removed (deprecated since 1.21).
2974 * UploadBase::stashFileGetKey() and UploadBase::stashSession() were deprecated.
2975 Use ...->stashFile()->getFileKey() instead.
2976 * "Public domain" was removed as a wiki license option from the installer, in
2977 favour of CC-0.
2978 * AuthenticationRequest::$required is now changed from REQUIRED to
2979 PRIMARY_REQUIRED on requests needed by primary providers even if all primaries
2980 need them.
2981 Primary providers are discouraged from returning multiple REQUIRED requests.
2982 * OOjs UI PHP widgets constructed with the `'infusable' => true` config option
2983 will no longer be automatically infused. You should call `OO.ui.infuse()`
2984 on them yourself from your JavaScript code.
2985 * parserTests.php has moved to tests/parser/parserTests.php
2986 * The command line options specific to parser tests have been removed from
2987 phpunit.php: --regex and --keep-uploads. Instead of --regex, use --filter.
2988 Instead of --keep-uploads, use the same option to parserTests.php, but you
2989 must specify a directory with --upload-dir.
2990 * The 'jquery.arrowSteps' ResourceLoader module is now deprecated.
2991 * IP::isConfiguredProxy() and IP::isTrustedProxy() were removed. Callers should
2992 migrate to using the same functions on a ProxyLookup instance, obtainable from
2993 MediaWikiServices.
2994 * The ArticleAfterFetchContent, ArticleInsertComplete, ArticleSave,
2995 ArticleSaveComplete, ArticleViewCustom, EditFilterMerged, EditPageGetDiffText,
2996 EditPageGetPreviewText and ShowRawCssJs hooks will now emit deprecation
2997 warnings if used.
2998 * (T68404) CSS3 attr() function with url type is no longer allowed
2999 in inline styles.
3000 * Database::getSearchEngine() is deprecated, use
3001 SearchEngineFactory::getSearchEngineClass instead.
3002
3003 == Compatibility ==
3004
3005 MediaWiki 1.28 requires PHP 5.5.9 or later. There is experimental support for
3006 HHVM 3.6.5 or later.
3007
3008 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
3009 support for them is somewhat less mature. There is experimental support for
3010 Oracle and Microsoft SQL Server.
3011
3012 The supported versions are:
3013
3014 * MySQL 5.0.3 or later
3015 * PostgreSQL 8.3 or later
3016 * SQLite 3.3.7 or later
3017 * Oracle 9.0.1 or later
3018 * Microsoft SQL Server 2005 (9.00.1399)
3019
3020 == Upgrading ==
3021
3022 1.28 has several database changes since 1.27, and will not work without schema
3023 updates. Note that due to changes to some very large tables like the revision
3024 table, the schema update may take quite long (minutes on a medium sized site,
3025 many hours on a large site).
3026
3027 If upgrading from before 1.11, and you are using a wiki as a commons
3028 repository, make sure that it is updated as well. Otherwise, errors may arise
3029 due to database schema changes.
3030
3031 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
3032 new database fields are filled with data.
3033
3034 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
3035 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
3036 with MediaWiki 1.21.
3037
3038 Don't forget to always back up your database before upgrading!
3039
3040 See the file UPGRADE for more detailed upgrade instructions.
3041
3042 For notes on 1.27.x and older releases, see HISTORY.
3043
3044 == Online documentation ==
3045
3046 Documentation for both end-users and site administrators is available on
3047 MediaWiki.org, and is covered under the GNU Free Documentation License (except
3048 for pages that explicitly state that their contents are in the public domain):
3049
3050 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
3051
3052 == Mailing list ==
3053
3054 A mailing list is available for MediaWiki user support and discussion:
3055
3056 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
3057
3058 A low-traffic announcements-only list is also available:
3059
3060 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
3061
3062 It's highly recommended that you sign up for one of these lists if you're
3063 going to run a public MediaWiki, so you can be notified of security fixes.
3064
3065 == IRC help ==
3066
3067 There's usually someone online in #mediawiki on irc.freenode.net.
3068
3069 = MediaWiki 1.27 =
3070
3071 == MediaWiki 1.27.7 ==
3072
3073 This is a maintenance release of the MediaWiki 1.27 branch.
3074
3075 === Changes since MediaWiki 1.27.6 ===
3076 * Add missing `use MediaWiki\MediaWikiServices;` to LogEventsList.php.
3077 * Remove broken tests from ApiBlockTest.php.
3078
3079 == MediaWiki 1.27.6 ==
3080
3081 This is a security and maintenance release of the MediaWiki 1.27 branch.
3082
3083 === Changes since MediaWiki 1.27.5 ===
3084 * (T204729) WatchedItemStore::countVisitingWatchersMultiple() shouldn't query
3085 all titles when asked for none.
3086 * (T109121) Remove deprecated pear/mail_mime-decode from composer suggested
3087 libraries.
3088 * (T207241) Augment precision of updatelist time.
3089 * (T207540) Include IP address in "Login for $1 succeeded" log entry.
3090 * (T205765) Don't link to the obsolete "Extension Matrix" page in installer.
3091 * (T207603) SECURITY: User JS may no longer be loaded with mime type
3092 text/javascript if there is no account associated with the username.
3093 * (T113042) SECURITY: Do not allow loading pages raw with a text/javascript MIME
3094 type if non-admins can edit the page.
3095 * (T207541) Pass email address to mail().
3096 * (T209335) Clarify the default sidebar 'Help' link is about MediaWiki itself.
3097 * (T213359) Update mediawiki/mediawiki-codesniffer to 0.8.1.
3098 * (T208871) The hard-coded Google search form on the database error page was
3099 removed.
3100 * (T216968) Return pageid as int in both list=iwbacklinks and
3101 list=langbacklinks.
3102 * (T218608) Fix an issue that prevents Extension:OAuth working when
3103 $wgBlockDisablesLogin is true.
3104 * (T219728) Added support for new Japanese era name "Reiwa".
3105 * (T25227) SECURITY: action=logout now requires to be posted and have a csrf
3106 token.
3107 * SpecialPage::checkLoginSecurityLevel() will now preserve POST data when
3108 reauthenticating.
3109 * FormSpecialPage::execute() will now call checkLoginSecurityLevel() if
3110 getLoginSecurityLevel() returns non-false.
3111 * (T197279) SECURITY: Fix reauth in Special:ChangeEmail.
3112 * (T208881) SECURITY: blacklist CSS var().
3113 * (T209794) SECURITY: rate-limit and prevent blocked users from changing email.
3114 * (T199540) SECURITY: API: Respect $wgBlockCIDRLimit in action=block.
3115 * (T212118) SECURITY: Fix cache mode for (un)patrolled recent changes query.
3116 * (T222036, T222038) SECURITY: Add permission check for user is permitted to
3117 view the log type.
3118 * (T221739) SECURITY: resources: Patch jQuery 1.11.3 for CVE-2019-11358.
3119
3120 == MediaWiki 1.27.5 ==
3121
3122 This is a security and maintenance release of the MediaWiki 1.27 branch.
3123
3124 === Changes since 1.27.4 ===
3125 * (T169545, CVE-2018-0503) SECURITY: $wgRateLimits entry for 'user' overrides
3126 'newbie'.
3127 * (T194605, CVE-2018-0505) SECURITY: BotPasswords can bypass CentralAuth's
3128 account lock.
3129 * Upgraded Moment.js from v2.8.4 to v2.19.3.
3130 * (T160298) Fixed Special:ActiveUsers due to bad backport.
3131 * (T87572) Make FormatMetadata::flattenArrayReal() work for an associative
3132 array.
3133 * Updated list of SPDX licenses for extensions.
3134 * (T189567) the CLI installer (maintenance/install.php) learned to detect and
3135 include extensions. Pass --with-extensions to enable that feature.
3136 * (T192584) Stop incorrectly passing USE INDEX to RecentChange::newFromConds().
3137 * Add default edit rate limit of 90 edits/minute for all users.
3138 * (T196125) php-memcached 3.0 (provided with PHP 7.0) is now supported.
3139 * (T196672) The mtime of extension.json files is now able to be zero.
3140 * (T118683) Fix exception from &$user deref on HHVM in the TitleMoveComplete
3141 hook.
3142 * (T180403) Validate $length in padleft/padright parser functions.
3143 * (T143790) Make $wgEmailConfirmToEdit only affect edit actions.
3144 * Special:BotPasswords now requires reauthentication.
3145 * (T191608, T187638) Add 'logid' parameter to Special:Log.
3146 * (T193829) Indicate when a Bot Password needs reset.
3147 * (T151415) Log email changes.
3148 * (T118420) Unbreak Oracle installer.
3149
3150 == MediaWiki 1.27.4 ==
3151 This is a security and maintenance release of the MediaWiki 1.27 branch.
3152
3153 === Changes since 1.27.3 ===
3154 * (T100085) Better handling of jobs execution in post-connection shutdown.
3155 * (T141604) Support conditionally registered namespaces.
3156 * (T167798) Fix highlighting for phrase queries and phrase search.
3157 * (T151136) Provide credits information to callbacks.
3158 * (T160462) Allow namespaces defined in extension.json to be overwritten
3159 locally.
3160 * (T168856) Allow SVGs created by Dia to be uploaded.
3161 * (T144705) (T148662) Password reset link is no longer shown when no reset
3162 options are available.
3163 * (T143788) (T174262) Various backports for PHP 7.0 and 7.1 support.
3164 * (T66795) $wgUserEmailUseReplyTo is now true by default to work around
3165 restrictive DMARC policies.
3166 * DB_REPLICA constant added from REL1_28+ to ease backports to extensions and
3167 core.
3168 * (T175439) Unbreak Postgres Updater when setting defaults for a column.
3169 * (T160298) Remove use of implicitGroupBy() in ActiveUsersPager.
3170 * (T142304) Allow putting the app ID in the password for bot passwords.
3171 * Updated dev dependancy phpunit/phpunit from v4.8.24 to v4.8.36.
3172 * (T178451) SECURITY: Potential XSS when $wgShowExceptionDetails = false and
3173 browser sends non-standard url escaping.
3174 * (T165846) SECURITY: BotPassword login attempts weren't throttled.
3175 * (T128209) SECURITY: Reflected File Download from api.php.
3176 * (T134100) SECURITY: Do not reveal if user exists during login failure.
3177 * (T176247) SECURITY: Ensure Message::rawParams can't lead to XSS.
3178 * (T125163) SECURITY: Make anchor for headlines escape > and <.
3179 * (T180237) SECURITY: Protect vendor folder with .htaccess.
3180 * (T180231) SECURITY: Remove PHPUnit file with known RCE if exists in
3181 update.php.
3182 * (T124404) SECURITY: XSS in langconverter when regex hits pcre.backtrack_limit.
3183 * (T119158) SECURITY: Handle -{}- syntax in attributes safely.
3184
3185 == MediaWiki 1.27.3 ==
3186 Due to a packaging error, the wrong version of the SyntaxHighlight extension was
3187 included in the tarball version of MediaWiki 1.27.2. The version included had a
3188 serious security issue in it (T158689). There was also some minor code fixes in
3189 MediaWiki itself since 1.27.2, but none of them were security relevant.
3190
3191 === Changes since 1.27.2 ===
3192 * (T145664) Fix broken wincache merge() implementation
3193 * (T163434) Add wikimedia/testing-access-wrapper for forwards compatibility
3194 * (T153505) Fix php warnings on php 7.1 due to use of &$this
3195
3196 == MediaWiki 1.27.2 ==
3197 This is a security and maintenance release of the MediaWiki 1.27 branch.
3198
3199 ApiCreateAccount was removed in 1.27.0. It was incorrectly still marked as
3200 deprecated (rather than already removed) in the RELEASE-NOTES at the point
3201 1.27.0 was released.
3202
3203 === Changes since 1.27.1 ===
3204
3205 * (T68404) CSS3 attr() function with url type argument is no longer allowed
3206 in inline styles.
3207 * $wgRunJobsAsync is now false by default (T142751). This change only affects
3208 wikis with $wgJobRunRate > 0.
3209 * (T152717) Better escaping for PHP mail() command
3210 * Submitting the lgtoken and lgpassword parameters in the query string to
3211 action=login is now deprecated and outputs a warning. They should be submitted
3212 in the POST body instead.
3213 * Submitting sensitive authentication request parameters to action=clientlogin,
3214 action=createaccount, action=linkaccount, and action=changeauthenticationdata
3215 in the query string is now deprecated and outputs a warning. They should be
3216 submitted in the POST body instead.
3217 * (T158766) Avoid SQL error on MSSQL when using selectRowCount()
3218 * (T145635) Fix too long index error when installing with MSSQL.
3219 * (T156184) $wgRawHtml will no longer apply to internationalization messages.
3220 * (T160519) CACHE_ANYTHING will not be CACHE_ACCEL if no accelerator is
3221 installed.
3222 * (T109140) (T122209) SECURITY: Special:UserLogin and Special:Search allow
3223 redirect to interwiki links.
3224 * (T144845) SECURITY: XSS in SearchHighlighter::highlightText() when
3225 $wgAdvancedSearchHighlighting is true.
3226 * (T125177) SECURITY: API parameters may now be marked as "sensitive" to keep
3227 their values out of the logs.
3228 * (T150044) SECURITY: "Mark all pages visited" on the watchlist now requires a
3229 CSRF token.
3230 * (T156184) SECURITY: Escape content model/format url parameter in message.
3231 * (T151735) SECURITY: SVG filter evasion using default attribute values in DTD
3232 declaration.
3233 * (T161453) SECURITY: LocalisationCache will no longer use the temporary
3234 directory in it's fallback chain when trying to work out where to write the
3235 cache.
3236 * (T48143) SECURITY: Spam blacklist ineffective on encoded URLs inside file
3237 inclusion syntax's link parameter.
3238 * (T108138) SECURITY: Sysops can undelete pages, although the page is protected
3239 against it.
3240
3241 == MediaWiki 1.27.1 ==
3242
3243 This is a maintenance release of the MediaWiki 1.27 branch.
3244
3245 === Changes since 1.27.0 ===
3246 * BREAKING CHANGE: $wgHTTPProxy is now *required* for all external requests
3247 made by MediaWiki via a proxy. Relying on the http_proxy environment
3248 variable is no longer supported.
3249 * (T139565) SECURITY: API: Generate head items in the context of the given title
3250 * (T137264) SECURITY: XSS in unclosed internal links
3251 * (T133147) SECURITY: Escape '<' and ']]>' in inline <style> blocks
3252 * (T133147) SECURITY: Require login to preview user CSS pages
3253 * (T132926) SECURITY: Do not allow undeleting a revision deleted file if it is
3254 the top file
3255 * (T129738) SECURITY: Make $wgBlockDisablesLogin also restrict logged in
3256 permissions
3257 * (T129738) SECURITY: Make blocks log users out if $wgBlockDisablesLogin is true
3258 * (T115333) SECURITY: Check read permission when loading page content in
3259 ApiParse
3260 * (T57548) Remove support for $wgWellFormedXml = false, all output is now well
3261 formed
3262 * (T139670) Move 'UserGetRights' call before application of
3263 Session::getAllowedUserRights()
3264
3265 == MediaWiki 1.27.0 ==
3266
3267 === PHP version requirement in 1.27 ===
3268 As of 1.27, MediaWiki now requires PHP 5.5.9 or higher (see Compatibility
3269 section). Additionally, the following PHP extensions are required:
3270 * ctype
3271 * iconv
3272 * json
3273 * mbstring (new requirement in 1.27)
3274 * xml
3275 The following PHP extensions are strongly recommended:
3276 * openssl
3277
3278 === Configuration changes in 1.27 ===
3279 * $wgAllowMicrodataAttributes and $wgAllowRdfaAttributes were removed,
3280 now always enabled. If you use RDFa on your wiki, you now have to explicitly
3281 set $wgHtml5Version to 'HTML+RDFa 1.0' or 'XHTML+RDFa 1.0'.
3282 * $wgUseLinkNamespaceDBFields was removed.
3283 * Deprecated $wgResourceLoaderMinifierStatementsOnOwnLine and
3284 $wgResourceLoaderMinifierMaxLineLength, because there was little value in
3285 making the behavior configurable. The default values (`false` for the former,
3286 1000 for the latter) are now hard-coded.
3287 * $wgDebugDumpSqlLength was removed (deprecated in 1.24).
3288 * $wgDebugDBTransactions was removed (deprecated in 1.20).
3289 * $wgUseXVO has been removed, as it provides functionality only used by
3290 custom Wikimedia patches against Squid 2.x that probably noone uses in
3291 production anymore. There is now $wgUseKeyHeader that provides similar
3292 functionality but instead of the MediaWiki-specific X-Vary-Options header,
3293 uses the draft Key header standard.
3294 * $wgScriptExtension (and support for '.php5' entry points) was removed. See the
3295 deprecation notice in the release notes for version 1.25 for advice on how to
3296 preserve support for '.php5' entry points via URL rewriting.
3297 * Password handling via the User object has been deprecated and partially
3298 removed, pending the future introduction of AuthManager. In particular:
3299 ** expirePassword(), getPasswordExpireDate(), resetPasswordExpiration(), and
3300 getPasswordExpired() have been removed. They were unused outside of core.
3301 ** The mPassword, mNewpassword, mNewpassTime, and mPasswordExpires fields are
3302 now private and will be removed in the future.
3303 ** The getPassword() and getTemporaryPassword() methods now throw
3304 BadMethodCallException and will be removed in the future.
3305 ** The ability to pass 'password' and 'newpassword' to createNew() has been
3306 removed. The only users of it seem to have been using it to set invalid
3307 passwords, and so shouldn't be greatly affected.
3308 ** setPassword(), setInternalPassword(), and setNewpassword() have been
3309 deprecated, pending the introduction of AuthManager.
3310 ** User::randomPassword() is deprecated in favor of a new method
3311 PasswordFactory::generateRandomPasswordString()
3312 ** User::getPasswordFactory() is deprecated, callers should just create a
3313 PasswordFactory themselves.
3314 ** A new constructor, User::newSystemUser(), has been added to simplify the
3315 creation of passwordless "system" users for logged actions.
3316 * $wgMaxSquidPurgeTitles was removed.
3317 * $wgAjaxWatch was removed. This is now enabled by default.
3318 * $wgUseInstantCommons now hotlinks Commons images by default instead of
3319 downloading originals and thumbnailing them locally. This allows wikis to save
3320 on CPU and bandwidth while reducing time to first byte for pages, even without
3321 a thumbnail handler. See $wgForeignFileRepos documentation for tweaks.
3322 * (T27397) WebP is enabled by default as an uploadable filetype.
3323 * (T48998) $wgArticlePath must now be either a full url, or start with a "/".
3324 * $wgRateLimitLog was removed; use $wgDebugLogGroups['ratelimit'] instead.
3325 * Deprecated API formats dbg, txt, and yaml have been removed.
3326 * CLDRPluralRule* classes have been replaced with
3327 wikimedia/cldr-plural-rule-parser.
3328 * Removed $wgProfilePerHost, $wgUDPProfilerHost, $wgUDPProfilerPort,
3329 $wgUDPProfilerFormatString, $wgStatsMethod, $wgAggregateStatsID,
3330 $wgStatsFormatString, and $wgProfileCallTree (deprecated since 1.20).
3331 * For proper operation of LocalIdLookup with shared user tables, ensure that
3332 $wgSharedDB and $wgSharedTables are properly set even on the "central" wiki
3333 that all others are sharing from and that $wgLocalDatabases is set to the
3334 full list of sharing wikis on all those wikis.
3335 * Massive overhaul to session handling:
3336 ** $wgSessionsInObjectCache is no longer supported and must be true, due to
3337 MediaWiki\Session\SessionManager. $wgSessionHandler is similarly no longer
3338 used.
3339 ** ObjectCacheSessionHandler is removed, replaced with
3340 MediaWiki\Session\PhpSessionHandler.
3341 ** PHP session handling in general ($_SESSION, session_id(), and so on) is
3342 deprecated. Use MediaWiki\Session\SessionManager instead. A new config
3343 variable, $wgPHPSessionHandling, is available to cause use of $_SESSION to
3344 issue a deprecation warning or to cause most PHP session handling to throw
3345 exceptions.
3346 ** Deprecated UserSetCookies hook. Session-handling extensions should generally
3347 be creating a custom subclass of CookieSessionProvider. Other extensions
3348 messing with cookies can no longer count on user data being saved in cookies
3349 versus other methods.
3350 ** Deprecated UserLoadFromSession hook, extensions should create a
3351 MediaWiki\Session\SessionProvider.
3352 ** The User cannot be loaded from session until after Setup.php completes.
3353 Attempts to do so will be ignored and the User will remain unloaded.
3354 ** CSRF tokens may be fetched from the MediaWiki\Session\Session, which uses
3355 the MediaWiki\Session\Token class.
3356 * MediaWiki will now auto-create users as necessary, removing the need for
3357 extensions to do so. An 'autocreateaccount' right is added to allow
3358 auto-creation when 'createaccount' is not granted to all users.
3359 * Deprecated AuthPluginAutoCreate hook in favor of LocalUserCreated.
3360 * Most cookie-handling methods in User are deprecated.
3361 * $wgAllowAsyncCopyUploads and $CopyUploadAsyncTimeout were removed. This was an
3362 experimental feature that has never worked.
3363 * Login and createaccount tokens now vary by timestamp.
3364 * LoginForm::getLoginToken() and LoginForm::getCreateaccountToken()
3365 return a MediaWiki\Session\Token, and tokens must be checked using that
3366 class's methods.
3367 * $wgEnotifUseJobQ was removed and the job queue is always used.
3368 * The functionality of the ApiSandbox extension has been merged into core. The
3369 extension should no longer be used.
3370 * $wgPreloadJavaScriptMwUtil was removed (deprecated in 1.26).
3371 Extensions, skins, gadgets and scripts that use the mediawiki.util module must
3372 express a dependency on it.
3373 * $wgIncludeLegacyJavaScript, deprecated in MediaWiki 1.26, now defaults false.
3374 Extensions, skins, gadgets and scripts that need the mediawiki.legacy.wikibits
3375 module should express a dependency on it.
3376 * Removed configuration option $wgCopyrightIcon (deprecated since 1.18). Use
3377 $wgFooterIcons['copyright']['copyright'] instead.
3378 * If the openssl and mcrypt PHP extensions are both unavailable, secure
3379 session storage (used for login) will raise an exception. This exception may
3380 be bypassed by setting $wgSessionInsecureSecrets = true.
3381 * Massive overhaul to authentication:
3382 ** AuthPlugin and AuthPluginUser are deprecated.
3383 ** LoginForm and associated templates are deprecated. Extensions which called
3384 static LoginForm methods should be converted into authentication providers.
3385 ** The following hooks are deprecated:
3386 *** AbortAutoAccount (create a MediaWiki\Auth\PreAuthenticationProvider instead)
3387 *** AbortLogin (create a MediaWiki\Auth\PreAuthenticationProvider instead)
3388 *** AbortNewAccount (create a MediaWiki\Auth\PreAuthenticationProvider instead)
3389 *** AddNewAccount (use LocalUserCreated instead)
3390 *** AuthPluginSetup (create a MediaWiki\Auth\PrimaryAuthenticationProvider
3391 instead)
3392 *** ChangePasswordForm (use AuthChangeFormFields instead, or security levels)
3393 *** LoginUserMigrated (create a MediaWiki\Auth\PreAuthenticationProvider
3394 instead)
3395 *** UserCreateForm (create a MediaWiki\Auth\AuthenticationProvider of some type
3396 instead)
3397 *** UserLoginForm (create a MediaWiki\Auth\AuthenticationProvider of some type
3398 instead)
3399 ** The following hooks are removed:
3400 *** AbortChangePassword
3401 *** LoginPasswordResetMessage
3402 *** PrefsPasswordAudit
3403 ** The UserLoginComplete hook will no longer be called for all logins, only for
3404 those via the web UI. Use UserLoggedIn if you need to do something on all
3405 logins.
3406 ** $wgRequirePasswordforEmailChange is removed.
3407
3408 === New features in 1.27 ===
3409 * $wgDataCenterUpdateStickTTL was also added. This decides how long a user
3410 sticks to the primary DC (via cookies) after they make changes to the site.
3411 * Added a new hook, 'UserMailerTransformContent', to transform the contents
3412 of an email. This is similar to the EmailUser hook but applies to all mail
3413 sent via UserMailer.
3414 * Added a new hook, 'UserMailerTransformMessage', to transform the contents
3415 of an emai after MIME encoding.
3416 * Added a new hook, 'UserMailerSplitTo', to control which users have to be
3417 emailed separately (ie. there is a single address in the To: field) so
3418 user-specific changes to the email can be applied safely.
3419 * $wgCdnMaxageLagged was added, which limits the CDN cache TTL
3420 when any load balancer uses a DB that is lagged beyond the 'max lag'
3421 setting in the relevant section of $wgLBFactoryConf.
3422 * User::newSystemUser() may be used to simplify the creation of passwordless
3423 "system" users for logged actions from scripts and extensions.
3424 * Extensions can now return detailed error information via the API when
3425 preventing user actions using 'getUserPermissionsErrors' and similar hooks
3426 by using ApiMessage instances instead of strings for the $result value.
3427 * $wgAPIMaxLagThreshold was added to limit bot changes when databases lag
3428 becomes too high.
3429 * Skins and extensions can now use FlexBox mixins (.flex-display(@display: flex)
3430 and .flex(@grow: 1, @shrink: 1, @width: auto, @order: 1)) in Less to create
3431 cross-browser-compatible FlexBox rules. Users will still need to add fallback
3432 float rules or the like for compatibility with IE9- separately.
3433 * Added MWTimestamp::getTimezoneString() which returns the localized timezone
3434 string, if available. To localize this string, see the comments of
3435 $wgLocaltimezone in includes/DefaultSettings.php.
3436 * Added CentralIdLookup, a service that allows extensions needing a concept of
3437 "central" users to get that without having to know about specific central
3438 authentication extensions.
3439 * $wgMaxUserDBWriteDuration added to limit huge user-generated transactions.
3440 Regular web request transactions that takes longer than this are aborted.
3441 * Added a new hook, 'TitleMoveCompleting', which runs before a page move is
3442 committed.
3443 * $wgCdnReboundPurgeDelay was added to provide secondary delayed purges of URLs
3444 from CDN to mitigate DB replication lag and WAN cache purge lag.
3445 * (T49162) Installer will default to setting CACHE_ACCEL as the main cache type
3446 if it is available.
3447 * It is now possible to patrol file uploads (both for new files and new versions
3448 of existing files). Special:NewFiles has gained an option to filter by patrol
3449 status. This functionality can be disabled using $wgUseFilePatrol.
3450 * MediaWiki\Session infrastructure allows for easier use of session mechanisms
3451 other than the usual cookies.
3452 ** SessionMetadata and SessionCheckInfo hooks allow for setting and checking
3453 custom session metadata.
3454 * Added MWGrants and associated configuration settings $wgGrantPermissions and
3455 $wgGrantPermissionGroups to hold configuration for authentication features
3456 such as OAuth that want to allow restricting the user rights a user may make
3457 use of.
3458 ** If you're already using the OAuth extension, these new variables are
3459 identical to (and will replace) $wgMWOAuthGrantPermissions and
3460 $wgMWOAuthGrantPermissionGroups.
3461 * Added MWRestrictions as a class to check restrictions on a WebRequest, e.g.
3462 to assert that the request comes from a particular IP range.
3463 * Added bot passwords, a rights-restricted login mechanism for API-using bots.
3464 * Whitelisted the following HTML attributes for all elements in wikitext:
3465 aria-describedby, aria-flowto, aria-label, aria-labelledby, aria-owns.
3466 * Removed "presentation" restriction on the HTML role attribute in wikitext.
3467 All values are now allowed for the role attribute.
3468 * $wgContentHandlers now also supports callbacks to create an instance of the
3469 appropriate ContentHandler subclass.
3470 * Added $wgAuthenticationTokenVersion, which if non-null prevents the
3471 user_token database field from being exposed in cookies. Setting this would
3472 be a good idea, but will log out all current sessions.
3473 * $wgEventRelayerConfig was added, for managing PubSub event relay
3474 configuration, specifically for reliable CDN url purges.
3475 * Requests have unique IDs, equal to the UNIQUE_ID environment variable (when
3476 MediaWiki is behind Apache+mod_unique_id or something similar) or a randomly-
3477 generated 24-character string. This request ID is used to annotate log records
3478 and error messages. It is available client-side via
3479 mw.config.get( 'wgRequestId' ).
3480 The request ID supplants exception IDs. Accordingly,
3481 MWExceptionHandler::getLogId() is deprecated.
3482 * (T33313) Add a preference for watching uploads by default, also applies
3483 to API-based upload tools.
3484 * $wgJpegPixelFormat was added to override chroma subsampling for JPEG image
3485 thumbnails created via ImageMagick. Defaults to 'yuv420', providing bandwidth
3486 savings versus the previous behavior on many files.
3487 * MediaWiki\Auth infrastructure (called "AuthManager") allows for more flexible
3488 configuration of multiple authentication pieces that was possible with
3489 AuthPlugin. For example, it's now easy to plug in second-factor
3490 authentication, or add additional checks to the login process, or to support
3491 multiple login methods at once, or to support non-password-based login
3492 methods.
3493 ** Providers are configured via the global setting $wgAuthManagerConfig.
3494 ** A global, $wgDisableAuthManager, is temporarily available to disable
3495 AuthManager until extensions are ready to support it.
3496 ** New hook, AuthChangeFormFields, to adjust the form fields on
3497 AuthManager-related special pages.
3498 ** New hook, AuthManagerLoginAuthenticateAudit, for additional logging of
3499 AuthManager-related authentication requests.
3500 ** New hook, ChangeAuthenticationDataAudit, for additional logging of
3501 AuthManager-related authentication data changes.
3502 ** New hook, SecuritySensitiveOperationStatus, to work with the new mechanism
3503 for requiring a recent login before taking security-sensitive operations
3504 like changing a password.
3505 ** Two new globals, $wgChangeCredentialsBlacklist and
3506 $wgRemoveCredentialsBlacklist can be used to prevent the web UI and the API
3507 changing certain authentication data.
3508 * The file upload dialog (available if you install WikiEditor or VisualEditor)
3509 can now be configured using $wgUploadDialog.
3510
3511 === External library changes in 1.27 ===
3512
3513 ==== Upgraded external libraries ====
3514 * Updated oojs/oojs-ui from v0.12.12 to v0.13.3.
3515 * Updated composer/semver from v1.0.0 to v1.2.0.
3516 * Updated liuggio/statsd-php-client to 1.0.18.
3517 * Updated QUnit from v1.18.0 to v1.22.0.
3518
3519 ==== New external libraries ====
3520 * Added wikimedia/base-convert v1.0.1.
3521 * Added wikimedia/cldr-plural-rule-parser v1.0.0.
3522 * Added wikimedia/relpath v1.0.3.
3523 * Added wikimedia/running-stat v1.1.0.
3524 * Added wikimedia/php-session-serializer v1.0.3.
3525
3526 ==== Removed and replaced external libraries ====
3527
3528 === Bug fixes in 1.27 ===
3529 * Special:Upload will now display correct maximum allowed file size when running
3530 under HHVM (T116347).
3531 * (T54077) The APIEditBeforeSave hook will once again give only the content of
3532 the section being edited, rather than the whole revision. This reverts the
3533 change made in MediaWiki 1.22.
3534
3535 === Action API changes in 1.27 ===
3536 * Added list=allrevisions.
3537 * generator=recentchanges now has the option to generate revids.
3538 * ApiPageSet::setRedirectMergePolicy() was added. This allows generator
3539 modules to define how generator data for a redirect source gets merged
3540 into the redirect destination.
3541 * prop=imageinfo&iiprop=uploadwarning will no longer include the possibility of
3542 "was-deleted" warning.
3543 * Added difftotextpst to query=revisions which preforms a pre-save transform on
3544 the text before diffing it.
3545 * Deprecated formats dbg, txt, and yaml have been removed.
3546 * (T47988) The protect log event details now use new-style formatting.
3547 * The following response properties from action=login are deprecated, and may
3548 be removed in the future: lgtoken, cookieprefix, sessionid. Clients should
3549 handle cookies to properly manage session state.
3550 * action=login transparently allows login using bot passwords. Clients should
3551 merely need to change the username and password used after setting up a bot
3552 password.
3553 * action=upload no longer understands statuskey, asyncdownload or leavemessage.
3554 * Several changes when $wgDisableAuthManager is false:
3555 ** action=login is deprecated for uses other than bot passwords.
3556 ** list=users can now indicate if a missing username is creatable.
3557 ** action=createaccount is changed in a non-backwards-compatible manner.
3558 ** Added action=query&meta=authmanagerinfo.
3559 ** Added action=clientlogin to be used to log into the main account instead of
3560 action=login.
3561 ** Added action=linkaccount.
3562 ** Added action=unlinkaccount.
3563 ** Added action=changeauthenticationdata.
3564 ** Added action=removeauthenticationdata.
3565 ** Added action=resetpassword.
3566
3567 === Action API internal changes in 1.27 ===
3568 * ApiQueryORM removed.
3569 * The following classes have been removed:
3570 ** ApiFormatDbg
3571 ** ApiFormatTxt
3572 ** ApiFormatYaml
3573 * ApiBase::addTokenProperties() was removed (deprecated since 1.24).
3574 * ApiBase::getFinalPossibleErrors() was removed (deprecated since 1.24).
3575 * ApiBase::getFinalResultProperties() was removed (deprecated since 1.24).
3576 * ApiBase::getRequireAtLeastOneParameterErrorMessages() was removed (deprecated
3577 since 1.24).
3578 * ApiBase::getPossibleErrors() was removed (deprecated since 1.24).
3579 * ApiBase::getRequireMaxOneParameterErrorMessages() was removed (deprecated
3580 since 1.24).
3581 * ApiBase::getRequireOnlyOneParameterErrorMessages() was removed (deprecated
3582 since 1.24).
3583 * ApiBase::getResultProperties() was removed (deprecated since 1.24).
3584 * ApiBase::getTitleOrPageIdErrorMessage() was removed (deprecated since 1.24).
3585 * ApiBase::parseErrors() was removed (deprecated since 1.24).
3586 * ApiQueryBase::titleToKey(), ApiQueryBase::keyToTitle() and
3587 ApiQueryBase::keyPartToTitle() all removed (deprecated since 1.24).
3588 * ApiQueryBase::checkRowCount() was removed (deprecated since 1.24).
3589 * ApiQueryBase::getDirectionDescription() was removed (deprecated since 1.25).
3590 * ApiQuery::getGenerators() was removed (deprecated since 1.21).
3591 * ApiQuery::getModules() was removed (deprecated since 1.21).
3592 * ApiQuery::getModuleType() was removed (deprecated since 1.21).
3593 * ApiQuery::setGeneratorContinue() was removed (deprecated since 1.24).
3594 * ApiMain::getModules() was removed (deprecated since 1.21).
3595 * ApiBase::getVersion() was removed (deprecated since 1.21).
3596 * ApiMain::getShowVersions() was removed (deprecated in 1.21).
3597 * ApiMain::addModule() was removed (deprecated in 1.21).
3598 * ApiMain::addFormat() was removed (deprecated in 1.21).
3599 * ApiMain::getFormats() was removed (deprecated in 1.21).
3600 * ApiPageSet::finishPageSetGeneration() was removed (deprecated in 1.21).
3601 * ApiCreateAccount was removed.
3602
3603 === Languages updated in 1.27 ===
3604
3605 MediaWiki supports over 350 languages. Many localisations are updated
3606 regularly. Below only new and removed languages are listed, as well as
3607 changes to languages because of Phabricator reports.
3608
3609 * (T113688) Change default numerals from Gurmukhi to Arabic for Punjabi locale.
3610 * (T116020) Aliases of magic words in MessagesXx.php are sorted by usage.
3611
3612 === Other changes in 1.27 ===
3613 * Added dependency injection (DI) infrastructure, see docs/injection.txt for
3614 details.
3615 It is planned to incrementally move MediaWiki code towards using DI, using the
3616 service locator (SL) pattern as a stepping stone.
3617 * ProfilerOutputUdp was removed. Note that there is a ProfilerOutputStats class.
3618 * WikiPage::doDeleteArticleReal() and WikiPage::doDeleteArticle() now
3619 ignore the 2nd and 3rd arguments (formerly $id and $commit).
3620 * Removed "loaderScripts" option from ResourceLoaderFileModule class.
3621 * Removed ORM-like wrapper added in 1.20.
3622 * LinkCache::getGoodLinks and LinkCache::getBadLinks were removed
3623 (deprecated in 1.26).
3624 * WikiPage::doQuickEdit() was removed (deprecated since 1.21).
3625 * Removed SiteObject and SiteArray classes (deprecated in 1.21).
3626 * MessageBlobStore::getInstance() was removed (deprecated since 1.25).
3627 * (T84937) Free external links ("autolinked" urls) will now be terminated
3628 by &nbsp; and HTML entity encodings of &nbsp, <, and >.
3629 * (T36948) The default file revert message's timestamp is now in
3630 $wgLocaltimezone, instead of UTC.
3631 * The default name of the 'suppress' group page has been changed from
3632 'Project:Oversight' to 'Project:Suppress'.
3633 * DatabaseBase::resultObject() is now protected (use outside Database classes
3634 not necessary since 1.11).
3635 * Calling ResourceLoaderFileModule::readStyleFiles() without a
3636 ResourceLoaderContext instance is deprecated.
3637 * ResourceLoader::getLessCompiler() now takes an optional parameter of
3638 additional LESS variables to set for the compiler.
3639 * wfBaseConvert() marked as deprecated, use Wikimedia\base_convert() directly
3640 instead.
3641 * Obsolete maintenance scripts clearCacheStats.php and showCacheStats.php
3642 were removed. The underlying data is sent to StatsD (see $wgStatsdServer).
3643 * Removed msg_resource_links database table and associated code.
3644 * Removed msg_resource database table and associated code.
3645 * Skin::getNamespaceNotice() was removed.
3646 * wfIsConfiguredProxy() was removed (deprecated since 1.24).
3647 * wfDebugTimer() was removed (deprecated since 1.25).
3648 * wfIsTrustedProxy() was removed (deprecated since 1.24).
3649 * wfGetIP() was removed (deprecated since 1.19).
3650 * MWHookException was removed.
3651 * OutputPage::appendSubtitle() was removed (deprecated since 1.19).
3652 * OutputPage::loginToUse() was removed (deprecated since 1.19).
3653 * Article::loadContent() was removed (deprecated since 1.19).
3654 * User::editToken() was removed (deprecated since 1.19).
3655 * Removed --force-normal option of dumpBackup.php, as it no longer served
3656 any useful purpose since 1.22.
3657 * The functions processOption() and processArgs() on the BackupDumper and
3658 TextPassDumper classes have been removed.
3659 * The maintenance/backupTextPass.inc file was deleted. You should include
3660 maintenance/dumpTextPass.php instead.
3661 * WikiPage::getUsedTemplates() was removed (deprecated since 1.19).
3662 * wfEmptyMsg() was removed (deprecated since 1.18).
3663 * OutputPage::permissionRequired() was removed (deprecated since 1.18).
3664 * OutputPage::blockedPage() was removed (deprecated since 1.18).
3665 * User::getSkin() was removed (deprecated since 1.18).
3666 * OutputPage::includeJQuery() was removed (deprecated since 1.17).
3667 * WikiPage::updateRestrictions() was removed (deprecated since 1.19).
3668 * WikiPage::testPreSaveTransform() was removed (deprecated since 1.19).
3669 * LogPage::logName() was removed (deprecated since 1.19).
3670 * LogPage::logHeader() was removed (deprecated since 1.19).
3671 * wfCheckLimits() was removed (deprecated since 1.24).
3672 * Linker::makeKnownLinkObj() was removed (deprecated since 1.16).
3673 * Linker::makeLinkObj() was removed (deprecated since 1.16).
3674 * wfMsgForContentNoTrans() was removed (deprecated since 1.18).
3675 * ChangesList::usePatrol was removed (deprecated since 1.22).
3676 * wfMsgNoTrans() was removed (deprecated since 1.18).
3677 * Linker::makeImageLink2 was removed (deprecated since 1.20).
3678 * Title::userIsWatching() was removed (deprecated since 1.20).
3679 * Removed WaitForSlave maintenance script; use SELECT MASTER_POS_WAIT()
3680 database function directly instead.
3681 * wfMsg() was removed (deprecated since 1.18).
3682 * wfMsgForContent() was removed (deprecated since 1.18).
3683 * wfMsgReal() was removed (deprecated since 1.18).
3684 * wfMsgGetKey() was removed (deprecated since 1.18).
3685 * wfMsgHtml() was removed (deprecated since 1.18).
3686 * wfMsgWikiHtml() was removed (deprecated since 1.18).
3687 * wfMsgExt() was removed (deprecated since 1.18).
3688 * Language::armourMath() was removed (deprecated since 1.22).
3689 * LanguageConverter::armourMath() was removed (deprecated since 1.22).
3690 * FakeConverter::armourMath() was removed (deprecated since 1.22).
3691 * The unused jquery.validate ResourceLoader module was removed.
3692 * FileRepo::getRootUrl() was removed (deprecated since 1.20).
3693 * User::generateToken() was removed (deprecated since 1.20).
3694 * WikiPage::getRawText() was removed (deprecated since 1.21).
3695 * ParserOutput::hasCustomDataUpdates() was removed (deprecated since 1.25).
3696 * ParserOutput::addSecondaryDataUpdate() was removed (deprecated since 1.25).
3697 * ParserOutput::getSecondaryDataUpdates() was removed (deprecated since 1.25).
3698 * Gallery images with multiple caption pipes no longer concatenate them all
3699 together but instead pick the final one, similar to image syntax.
3700 * XML-like parser tags (such as <gallery>), when unclosed, will be left unparsed
3701 rather than consume everything until the end of the page.
3702 * New maintenance script resetUserEmail.php allows sysadmins to reset user
3703 emails in case a user forgot password/account was stolen.
3704 * wfCheckEntropy() was removed (deprecated in 1.27).
3705 * Browser support for Internet Explorer 8 lowered from Grade A to Grade C.
3706 * ContentHandler::supportsCategories method added. Default is true.
3707 CategoryMembershipChangeJob updates are skipped for content that
3708 does not support categories.
3709 * wikidiff difference engine is no longer supported, anyone still using it are
3710 encouraged to upgrade to wikidiff2 which is actively maintained and has better
3711 package availability.
3712 * Database logic was removed from WatchedItem and a WatchedItemStore was
3713 created:
3714 ** WatchedItem::IGNORE_USER_RIGHTS and WatchedItem::CHECK_USER_RIGHTS were
3715 deprecated. User::IGNORE_USER_RIGHTS and User::CHECK_USER_RIGHTS were
3716 introduced.
3717 ** WatchedItem::fromUserTitle was deprecated in favour of the constructor.
3718 ** WatchedItem::resetNotificationTimestamp was deprecated.
3719 ** WatchedItem::batchAddWatch was deprecated.
3720 ** WatchedItem::addWatch was deprecated.
3721 ** WatchedItem::removeWatch was deprecated.
3722 ** WatchedItem::isWatched was deprecated.
3723 ** WatchedItem::duplicateEntries was deprecated.
3724 ** EmailNotification::updateWatchlistTimestamp was deprecated.
3725 ** User::getWatchedItem was removed.
3726 * Unit tests don't work with external PHPUnit anymore, Composer is now the only
3727 supported way. Run `composer install` to install it and other dev dependencies
3728 to run unit tests.
3729 * wl_id field added to the watchlist table.
3730 * Revision::getRawText() was removed (deprecated since 1.21).
3731 * WikiPage::replaceSection() was removed (deprecated since 1.21).
3732 * Article::replaceSection() was removed (deprecated since 1.21).
3733 * Language::getLangObj() was removed (deprecated since 1.24).
3734 * Language::getLanguageName() was removed (deprecated since 1.20).
3735 * Language::getLanguageNames() was removed (deprecated since 1.20).
3736 * Language::getTranslatedLanguageNames() was removed (deprecated since 1.20).
3737 * Language::specialPage() was removed (deprecated since 1.24).
3738 * MediaWikiTestCase::assertException() was removed (deprecated since 1.22).
3739 * OutputPage::getHeadItems() was removed (deprecated since 1.24).
3740 * OutputPage::getScript() was removed (deprecated since 1.24).
3741 * OutputPage::out() was removed (deprecated since 1.22).
3742 * OutputPage::setAllowedModules() was removed (deprecated since 1.24).
3743 * UserrightsPage::makeGroupNameListForLog() was removed (deprecated since 1.21).
3744 * MediaWikiSite::newFromGlobalId() was removed (deprecated since 1.21).
3745 * Title::newFromRedirect() was removed (deprecated since 1.21).
3746 * Skin::commonPrintStylesheet() was removed (deprecated since 1.22).
3747 * Skin::getCommonStylePath() was removed (deprecated since 1.24).
3748 * Skin::newFromKey() was removed (deprecated since 1.24).
3749 * Skin::getUsableSkins() was removed (deprecated since 1.23).
3750 * LoadBalancer::pickRandom() was removed (deprecated in 1.21).
3751 * Article::getUndoText() and WikiPage::getUndoText were removed (deprecated
3752 since 1.21).
3753 * DifferenceEngine::setText() was removed (deprecated in 1.21).
3754 * Title::newFromRedirectArray() was removed (deprecated in 1.21).
3755 * UserMailer::send() no longer accepts $replyto as the 5th argument and
3756 $contentType as the 6th. These must be passed in the options array now.
3757 * Title::newFromRedirectRecurse() was removed (deprecated in 1.21).
3758 * Skin::accesskey was removed (deprecated since 1.21).
3759 * Skin::blockLink was removed (deprecated since 1.21).
3760 * Skin::buildRollbackLink was removed (deprecated since 1.21).
3761 * Skin::emailLink was removed (deprecated since 1.21).
3762 * Skin::formatComment was removed (deprecated since 1.21).
3763 * Skin::formatHiddenCategories was removed (deprecated since 1.21).
3764 * Skin::formatLinksInComment was removed (deprecated since 1.21).
3765 * Skin::formatRevisionSize was removed (deprecated since 1.21).
3766 * Skin::formatSize was removed (deprecated since 1.21).
3767 * Skin::formatTemplates was removed (deprecated since 1.21).
3768 * Skin::generateTOC was removed (deprecated since 1.21).
3769 * Skin::getInternalLinkAttributes was removed (deprecated since 1.21).
3770 * Skin::getInternalLinkAttributesObj was removed (deprecated since 1.21).
3771 * Skin::getInterwikiLinkAttributes was removed (deprecated since 1.21).
3772 * Skin::getInvalidTitleDescription was removed (deprecated since 1.21).
3773 * Skin::getLinkColour was removed (deprecated since 1.21).
3774 * Skin::getRevDeleteLink was removed (deprecated since 1.21).
3775 * Skin::getRollbackEditCount was removed (deprecated since 1.21).
3776 * Skin::makeBrokenImageLinkObj was removed (deprecated since 1.21).
3777 * Skin::makeCommentLink was removed (deprecated since 1.21).
3778 * Skin::makeExternalImage was removed (deprecated since 1.21).
3779 * Skin::makeExternalLink was removed (deprecated since 1.21).
3780 * Skin::makeHeadline was removed (deprecated since 1.21).
3781 * Skin::makeImageLink was removed (deprecated since 1.21).
3782 * Skin::makeMediaLinkFile was removed (deprecated since 1.21).
3783 * Skin::makeMediaLinkObj was removed (deprecated since 1.21).
3784 * Skin::makeSelfLinkObj was removed (deprecated since 1.21).
3785 * Skin::makeThumbLink2 was removed (deprecated since 1.21).
3786 * Skin::makeThumbLinkObj was removed (deprecated since 1.21).
3787 * Skin::normaliseSpecialPage was removed (deprecated since 1.21).
3788 * Skin::normalizeSubpageLink was removed (deprecated since 1.21).
3789 * Skin::processResponsiveImages was removed (deprecated since 1.21).
3790 * Skin::revComment was removed (deprecated since 1.21).
3791 * Skin::revDeleteLink was removed (deprecated since 1.21).
3792 * Skin::revDeleteLinkDisabled was removed (deprecated since 1.21).
3793 * Skin::revUserLink was removed (deprecated since 1.21).
3794 * Skin::revUserTools was removed (deprecated since 1.21).
3795 * Skin::specialLink was removed (deprecated since 1.21).
3796 * Skin::splitTrail was removed (deprecated since 1.21).
3797 * Skin::titleAttrib was removed (deprecated since 1.21).
3798 * Skin::tocIndent was removed (deprecated since 1.21).
3799 * Skin::tocLine was removed (deprecated since 1.21).
3800 * Skin::tocLineEnd was removed (deprecated since 1.21).
3801 * Skin::tocList was removed (deprecated since 1.21).
3802 * Skin::tocUnindent was removed (deprecated since 1.21).
3803 * Skin::tooltip was removed (deprecated since 1.21).
3804 * Skin::tooltipAndAccesskeyAttribs was removed (deprecated since 1.21).
3805 * Skin::userTalkLink was removed (deprecated since 1.21).
3806 * Skin::userToolLinksRedContribs was removed (deprecated since 1.21).
3807 * wikidiff3 is now the default and only PHP diff engine. It provides improved
3808 diff performance on complex changes. $wgExternalDiffEngine = 'wikidiff3'
3809 therefore makes no difference now. Users are still recommended to use
3810 wikidiff2 if possible, though.
3811 * User::addNewUserLogEntry() was deprecated.
3812 * User::addNewUserLogEntryAutoCreate() was deprecated.
3813 * User::isPasswordReminderThrottled() was deprecated.
3814 * Bot-oriented parameters to Special:UserLogin (wpCookieCheck,
3815 wpSkipCookieCheck) were removed.
3816 * Installer can now be customized without patching MediaWiki code, see
3817 mw-config/overrides/README for details.
3818
3819 === Compatibility ===
3820
3821 MediaWiki 1.27 requires PHP 5.5.9 or later. There is experimental support for
3822 HHVM 3.6.5 or later.
3823
3824 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
3825 support for them is somewhat less mature. There is experimental support for
3826 Oracle and Microsoft SQL Server.
3827
3828 The supported versions are:
3829
3830 * MySQL 5.0.3 or later
3831 * PostgreSQL 8.3 or later
3832 * SQLite 3.3.7 or later
3833 * Oracle 9.0.1 or later
3834 * Microsoft SQL Server 2005 (9.00.1399)
3835
3836 === Upgrading ===
3837
3838 1.27 has several database changes since 1.26, and will not work without schema
3839 updates. Note that due to changes to some very large tables like the revision
3840 table, the schema update may take quite long (minutes on a medium sized site,
3841 many hours on a large site).
3842
3843 If upgrading from before 1.11, and you are using a wiki as a commons
3844 repository, make sure that it is updated as well. Otherwise, errors may arise
3845 due to database schema changes.
3846
3847 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
3848 new database fields are filled with data.
3849
3850 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
3851 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
3852 with MediaWiki 1.21.
3853
3854 Don't forget to always back up your database before upgrading!
3855
3856 See the file UPGRADE for more detailed upgrade instructions.
3857
3858 For notes on 1.26.x and older releases, see HISTORY.
3859
3860
3861 = MediaWiki 1.26 =
3862
3863 == MediaWiki 1.26.4 ==
3864
3865 This is a maintenance release of the MediaWiki 1.26 branch.
3866
3867 === Changes since 1.26.3 ===
3868 * BREAKING CHANGE: $wgHTTPProxy is now *required* for all external requests
3869 made by MediaWiki via a proxy. Relying on the http_proxy environment
3870 variable is no longer supported.
3871 * (T124163) Fixed fatal error in DifferenceEngine under HHVM.
3872 * (T139565) SECURITY: API: Generate head items in the context of the given title
3873 * (T137264) SECURITY: XSS in unclosed internal links
3874 * (T133147) SECURITY: Escape '<' and ']]>' in inline <style> blocks
3875 * (T133147) SECURITY: Require login to preview user CSS pages
3876 * (T132926) SECURITY: Do not allow undeleting a revision deleted file if it is
3877 the top file
3878 * (T129738) SECURITY: Make $wgBlockDisablesLogin also restrict logged in
3879 permissions
3880 * (T129738) SECURITY: Make blocks log users out if $wgBlockDisablesLogin is true
3881 * (T115333) SECURITY: Check read permission when loading page content in
3882 ApiParse
3883 * Remove support for $wgWellFormedXml = false, all output is now well formed
3884
3885 == MediaWiki 1.26.3 ==
3886
3887 This is a maintenance release of the MediaWiki 1.26 branch.
3888
3889 === Changes since 1.26.2 ===
3890 * (T116266) Fixed undefined property notices in DairikiDiff under HHVM.
3891 * (T123166) Fix fatal error when importing pages to titles which cannot be
3892 created, such as invalid titles or titles the user is not allowed to edit.
3893 * (T122056) Old tokens are remaining valid within a new session
3894 * (T127114) Login throttle can be tricked using non-canonicalized usernames
3895 * (T123653) Cross-domain policy regexp is too narrow
3896 * (T123071) Incorrectly identifying http link in a's href attributes, due to
3897 m modifier in regex
3898 * (T129506) MediaWiki:Gadget-popups.js isn't renderable
3899 * (T125283) Users occasionally logged in as different users after
3900 SessionManager deployment
3901 * (T103239) Patrol allows click catching and patrolling of any page
3902 * (T122807) [tracking] Check php crypto primatives
3903 * (T98313) Graphs can leak tokens, leading to CSRF
3904 * (T130947) Diff generation should use PoolCounter
3905 * (T133507) Careless use of $wgExternalLinkTarget is insecure
3906 * (T132874) API action=move is not rate limited
3907 * (T110143) strip markers can be used to get around html attribute escaping in
3908 (many?) parser tags
3909 * (T116030) Increase pbkdf2 parameter strengths
3910 * (T127420) Pbkdf2Password does not check if hash_pbkdf2() succeeded
3911 * (T126685) Globally throttle password attempts
3912
3913 == MediaWiki 1.26.2 ==
3914
3915 This is a maintenance release of the MediaWiki 1.26 branch.
3916
3917 === Changes since 1.26.1 ===
3918 * (T121892) Fix fatal error on some Special pages, introduced in 1.26.1.
3919
3920 == MediaWiki 1.26.1 ==
3921
3922 This is a maintenance release of the MediaWiki 1.26 branch.
3923
3924 === Changes since 1.26.0 ===
3925 * (T117899) SECURITY: $wgArticlePath can no longer be set to relative paths
3926 that do not begin with a slash. This enabled trivial XSS attacks.
3927 Configuration values such as "http://my.wiki.com/wiki/$1" are fine, as are
3928 "/wiki/$1". A value such as "$1" or "wiki/$1" is not and will now throw an
3929 error.
3930 * (T119309) SECURITY: Use hash_compare() for edit token comparison
3931 * (T118032) SECURITY: Don't allow cURL to interpret POST parameters starting
3932 with '@' as file uploads
3933 * (T115522) SECURITY: Passwords generated by User::randomPassword() can no
3934 longer be shorter than $wgMinimalPasswordLength
3935 * (T97897) SECURITY: Improve IP parsing and trimming. Previous behavior could
3936 result in improper blocks being issued
3937 * (T109724) SECURITY: Special:MyPage, Special:MyTalk, Special:MyContributions
3938 and related pages no longer use HTTP redirects and are now redirected by
3939 MediaWiki
3940 * Fixed ConfigException in ExpandTemplates due to AlwaysUseTidy.
3941 * Fixed stray literal \n in Special:Search.
3942 * Fix issue that breaks HHVM Repo Authorative mode.
3943 * (T120267) Work around APCu memory corruption bug
3944
3945 == MediaWiki 1.26.0 ==
3946
3947 === Configuration changes in 1.26 ===
3948 * $wgPasswordResetRoutes['email'] = true by default.
3949 * $wgEnableParserCache was deprecated, set $wgParserCacheType to CACHE_NONE
3950 instead if you want to disable the parser cache.
3951 * New-style continuation is now the default for API action=continue. Clients may
3952 use the 'rawcontinue' parameter to receive raw query-continue data, but the
3953 new style is encouraged as it's harder to implement incorrectly.
3954 * Deprecated API formats dump and wddx have been completely removed.
3955 * (T7645) The "Signature" button on the edit toolbar is now hidden by default
3956 in non-talk namespaces. A new configuration variable,
3957 $wgExtraSignatureNamespaces, controls in which subject (non-talk) namespaces
3958 the "Signature" button on the edit toolbar will be displayed.
3959 * $wgResourceLoaderUseESI was deprecated and removed. This was an experimental
3960 feature that was never enabled by default.
3961 * $wgResourceLoaderExperimentalAsyncLoading was deprecated and removed.
3962 This experimental feature was never enabled by default and is obsolete as of
3963 MediaWiki 1.26, in where ResourceLoader became fully asynchronous.
3964 * $wgMasterWaitTimeout was removed (deprecated in 1.24).
3965 * Fields in ParserOptions are now private. Use the accessors instead.
3966 * Custom LESS functions (defined via $wgResourceLoaderLESSFunctions or
3967 in extension.json) have been removed, after being deprecated in 1.24.
3968 * $wgAlwaysUseTidy has been removed.
3969 * ResetSessionID hook has been removed. Nothing seems to use it.
3970 * Certain AuthPlugin methods are deprecated in favor of new hooks:
3971 ** AuthPlugin::initUser() is replaced by LocalUserCreated.
3972 ** AuthPlugin::updateUser() is replaced by UserLoggedIn.
3973 ** AuthPlugin::updateExternalDB() is replaced by the existing UserSaveSettings.
3974 ** AuthPlugin::updateExternalDBGroups() is replaced by UserGroupsChanged.
3975 ** AuthPluginUser::isHidden() is replaced by UserIsHidden.
3976 ** AuthPluginUser::isLocked() is replaced by UserIsLocked.
3977 * The UserRights hook is deprecated in favor of the new UserGroupsChanged hook.
3978 * AuthPlugin::initUser() and AuthPlugin::updateUser() should no longer replace
3979 the passed User object.
3980 * $wgBlockAllowsUTEdit is now set to true by default. This allows
3981 blocked users to edit their talk pages unless explicitly disabled
3982 when they are being blocked.
3983
3984 === New features in 1.26 ===
3985 * (T51506) Now action=info gives estimates of actual watchers for a page.
3986 See $wgRCMaxAge, $wgWatchersMaxAge and $wgUnwatchedPageSecret
3987 to learn how to configure if needed.
3988 * Change tags can now be hidden in the interface by disabling the associated
3989 "tag-<id>" interface message.
3990 * ':' (colon) is now invalid in usernames for new accounts. Existing accounts
3991 are not affected.
3992 * Added a new hook, 'LogException', to log exceptions in nonstandard ways.
3993 * Revive the 'SpecialSearchResultsAppend' hook which occurs after the list of
3994 search results are rendered. The initial use case is to append a "give us
3995 feedback" link beneath the search results.
3996 * Added a new hook, 'RejectParserCacheValue', which allows extensions to
3997 reject an otherwise-successful parser cache lookup. The intent is to allow
3998 extensions to manage the eviction of archaic HTML output from the cache.
3999 * (T68699) The expiration of the UserID and Token login cookies
4000 ($wgExtendedLoginCookieExpiration) can be configured independently of the
4001 expiration of all other cookies ($wgCookieExpiration).
4002 * (T50519) Support for generating JPEG/PNG thumbnails from WebP images added
4003 if ImageMagick is used as image scaler ($wgUseImageMagick = true). Uploading
4004 of WebP images still disabled by default. Add $wgFileExtensions[] =
4005 'webp'; to LocalSettings.php to enable uploading of WebP images.
4006 * Added new hooks 'EnhancedChangesListModifyLineData' &
4007 'EnhancedChangesListModifyBlockLineData', to modify the data used to build
4008 lines in enhanced recentchanges and watchlist.
4009 * Caches that need purging ability now use the WANObjectCache interface.
4010 This corresponds to a new $wgMainWANCache setting, which defaults to using
4011 the $wgMainCacheType settings.
4012 * Callers needing fast light-weight data stores use $wgMainStash to select
4013 the store type from $wgObjectCaches. The default is the local database.
4014 * Interface message overrides in the MediaWiki namespace will now be cached in
4015 memcached and APC (if available), rather than memcached and local files.
4016 * Added a new hook, 'RandomPageQuery', to allow modification of the query used
4017 by Special:Random to select random pages.
4018 * $wgTransactionalTimeLimit was added, which controls the request time limit
4019 for potentially slow POST requests that need to be as atomic as possible.
4020 * ResourceLoader now loads all scripts asynchronously. The top-queue and
4021 startup modules are no longer synchronously loaded.
4022 * 'mediawiki.ui.button' styles are no longer unconditionally loaded on every
4023 page. During the deprecation period, the styles will only be loaded on pages
4024 which contain 'mw-ui-button' in their HTML. Starting in 1.28, the styles will
4025 only be loaded if explicitly required.
4026 * If search returns zero results and current search engine has a "did you mean"
4027 suggestion, results for suggestion will be shown. Can be disabled by setting
4028 $wgSearchRunSuggestedQuery to false.
4029 * Added several JavaScript libraries for uploading files to MediaWiki
4030 from the client-side. See documentation for mw.Upload and its
4031 subclasses for more information.
4032 * Added OOUI dialogs and layout for file upload interfaces. See
4033 documentation for mw.Upload.Dialog, mw.Upload.BookletLayout and its
4034 subclasses for more information.
4035
4036 === extension.json changes in 1.26 ===
4037 * (T99344) The extension.json schema is now versioned. All extensions
4038 and skins should set a "manifest_version" property corresponding to
4039 the schema version they were written for. The only supported version
4040 currently is "1".
4041 * (T102523) The error message if a non-array attribute is set was improved.
4042 * (T107646) Configuration settings can now specify how they should be merged,
4043 which is necessary for arrays using integer keys.
4044 * (T110389) Adding namespaces through extension.json now actually works
4045 * $wgNamespaceProtection can now be set in extension.json.
4046 * $wgCapitalLinkOverrides can now be set in extension.json.
4047 * (T97186) Extensions using a custom prefix for their configuration settings
4048 can now set a "_prefix" key to override the default of "wg".
4049 * (T99084) Extensions can now specify what MediaWiki core versions they
4050 depend upon.
4051 * (T105236) The extension.json schema now validates custom classes in
4052 the "ResourceModules" property properly.
4053
4054 === External library changes in 1.26 ===
4055 ==== Upgraded external libraries ====
4056 * Updated es5-shim from v4.0.0 to v4.1.5.
4057 * Updated json2 from revision 2014-02-04 to 2015-05-03.
4058 * Updated Sinon.JS from 1.10.3 to 1.15.4.
4059 * Updated jQuery Client from v1.0.0 to v2.0.0.
4060 * Updated QUnit from v1.17.1 to v1.18.0.
4061 * Updated liuggio/statsd-php-client from v1.0.12 to v1.0.16.
4062 * Updated oojs/oojs-ui from v0.11.3 to v0.12.12.
4063 * Updated wikimedia/cdb from v1.0.1 to v1.3.0.
4064 * Updated wikimedia/utfnormal from v1.0.2 to v1.0.3.
4065 * Updated wikimedia/composer-merge-plugin from v1.0.0 to v1.3.0.
4066 * Updated zordius/lightncandy from v0.18 to v0.21.
4067
4068 ==== New external libraries ====
4069 * Added composer/semver v1.0.0.
4070 * Added mediawiki/at-ease v1.1.0.
4071 * Added wikimedia/assert v0.2.2.
4072 * Added wikimedia/ip-set v1.0.1.
4073 * Added wikimedia/wrappedstring v2.0.0.
4074
4075 ==== Removed and replaced external libraries ====
4076 * Replaced leafo/lessphp v0.5.0 with oyejorge/less.php v1.7.0.9.
4077
4078 === Bug fixes in 1.26 ===
4079 * (T53283) load.php sometimes sends 304 response without full headers
4080 * (T65198) Talk page tabs now have a &quo