Merge "phpunit: Avoid use of deprecated getMock for PHPUnit 5 compat"
[lhc/web/wiklou.git] / HISTORY
1 Change notes from older releases. For current info see RELEASE-NOTES-1.29.
2
3 == MediaWiki 1.28 ==
4
5 === Changes since 1.28.0-rc1 ===
6 * (T148957) Replace wgShowExceptionDetails with wgShowDBErrorBacktrace on db
7 errors.
8 * (T148956) Only apply wgDBschema to postgres/mssql.
9 * (T145991) Introduce separate log action for deleting pages on move.
10 * (T141474) (T110464) Bypass login page if no user input is required.
11
12 === Changes since 1.28.0-rc0 ===
13 * (T142210) The changes to move the parser "NewPP limit report" from a HTML
14 comment to a machine-readable JavaScript config option 'wgPageParseReport'
15 have been undone. They caused the human-readable limit report to be shown
16 incompletely or not at all. ParserOutput::setLimitReportData() and
17 getLimitReportData() behave as they did in MediaWiki 1.27 again.
18 * (T149510) Value of {{DISPLAYTITLE:}} parser function will not be used for
19 the text of subheadings on a category page when creating it. This wasn't
20 working correctly.
21 * (T106793) MediaWiki will no longer try to perform a HTTP redirect to the
22 canonical pretty URL when a non-pretty URL is used. It resulted in redirect
23 loops in some clients and in some server configurations. This undoes a change
24 made in MediaWiki 1.26.
25 * (T149759) manifest_version: 2 was removed.
26
27 === Configuration changes in 1.28 ===
28 * $wgSend404Code now affects status code of action=history if the page is not there.
29 * BREAKING CHANGE: $wgHTTPProxy is now *required* for all external requests
30 made by MediaWiki via a proxy. Relying on the http_proxy environment
31 variable is no longer supported.
32 * The load.php entry point now enforces the existing policy of not allowing
33 access to session data, which includes the session user and the session
34 user's language. If such access is attempted, an exception will be thrown.
35 * The number of internal PBKDF2 iterations used to derive the session secret
36 is configurable via $wgSessionPbkdf2Iterations.
37 * Upload dialog's file upload log comment can now be configured separately for
38 local and foreign uploads.
39 * $wgForeignUploadTargets now defaults to `[ 'local' ]`, where `'local'`
40 signifies local uploads. A value of `[]` (empty array) now means that
41 no upload targets are allowed, effectively disabling the upload dialog.
42 * The deprecated $wgEditEncoding variable has been removed; it was only used
43 for Esperanto language character conversion. You are now recommended to use
44 input methods provided by the UniversalLanguageSelector extension.
45 * When $wgPingback is true, MediaWiki will periodically ping
46 https://www.mediawiki.org/beacon with basic information about the local
47 MediaWiki installation. This data includes, for example, the type of system,
48 PHP version, and chosen database backend. This behavior is off by default.
49 * When $wgEditSubmitButtonLabelPublish is true, MediaWiki will label the button
50 to store-to-database-and-show-to-others as "Publish page"/"Publish changes";
51 if false, the default, they will be "Save page"/"Save changes".
52 * The 'editcontentmodel' permission is now granted to all logged-in users ('user').
53 instead of just administrators ('sysop'). Documentation for this feature is
54 available at <https://www.mediawiki.org/wiki/Help:ChangeContentModel>.
55 * $wgRevisionCacheExpiry is now set to one week by default instead of being disabled.
56 * Magic links are now disabled by default, and can be re-enabled by modifying the value
57 of $wgEnableMagicLinks. Their usage is discouraged, but if they are manually enabled,
58 a tracking category will be added to help identify usage and make it easier to migrate
59 away from. If you depend upon magic link functionality, it is requested that you comment
60 on <https://www.mediawiki.org/wiki/Requests_for_comment/Future_of_magic_links> and
61 explain your use case(s).
62 * New config variable $wgCSPFalsePositiveUrls to control what URLs to ignore
63 in upcoming Content-Security-Policy feature's reporting.
64
65 === New features in 1.28 ===
66 * User::isBot() method for checking if an account is a bot role account.
67 * Added a new 'slideshow' mode for galleries.
68 * Added a new hook, 'UserIsBot', to aid in determining if a user is a bot.
69 * Added a new hook, 'ApiMakeParserOptions', to allow extensions to better
70 interact with API parsing.
71 * Added a new hook, 'UploadVerifyUpload', which can be used to reject a file
72 upload. Unlike 'UploadVerifyFile' it provides information about upload comment
73 and the file description page, but does not run for uploads to stash.
74 * (T141604) Extensions can now provide a better error message when their
75 maintenance scripts are run without the extension being installed.
76 * (T8948) Numeric sorting in categories is now supported by setting $wgCategoryCollation
77 to 'uca-default-u-kn' or 'uca-<langcode>-u-kn'. If you can't use UCA collations,
78 a 'numeric' collation is also available. If migrating from another
79 collation, you will need to run the updateCollation.php maintenance script.
80 * Two new codes have been added to #time parser function: "xit" for days in current
81 month, and "xiz" for days passed in the year, both in Iranian calendar.
82 * mw.Api has a new option, useUS, to use U+001F (Unit Separator) when
83 appropriate for sending multi-valued parameters. This defaults to true when
84 the mw.Api instance seems to be for the local wiki.
85 * After a client performs an action which alters a database that has replica databases,
86 MediaWiki will wait for the replica databases to synchronize with the master database
87 while it renders the HTML output. However, if the output is a redirect to another wiki
88 on the wiki farm with a different domain, MediaWiki will instead alter the redirect
89 URL to include a ?cpPosTime parameter that triggers the database synchronization when
90 the URL is followed by the client. The same-domain case uses a new cpPosTime cookie.
91 * Added new hooks, 'ApiQueryBaseBeforeQuery', 'ApiQueryBaseAfterQuery', and
92 'ApiQueryBaseProcessRow', to make it easier for extensions to add 'prop' and
93 'show' parameters to existing API query modules.
94
95 === External library changes in 1.28 ===
96
97 ==== Upgraded external libraries ====
98 * Updated es5-shim from v4.1.5 to v4.5.8
99 * Updated composer/semver from v1.4.1 to v1.4.2
100 * Updated wikimedia/php-session-serializer from v1.0.3 to v1.0.4
101
102 ==== New external libraries ====
103 * Added wikimedia/scoped-callback v1.0.0
104 * Added wikimedia/wait-condition-loop v1.0.1
105
106 === Bug fixes in 1.28 ===
107 * (T146496) action=history pages should return 404 HTTP error code if the page does not exist
108 * (T137264) SECURITY: XSS in unclosed internal links
109 * (T133147) SECURITY: Escape '<' and ']]>' in inline <style> blocks
110 * (T133147) SECURITY: Require login to preview user CSS pages
111 * (T132926) SECURITY: Do not allow undeleting a revision deleted file if it is
112 the top file
113 * (T129738) SECURITY: Make $wgBlockDisablesLogin also restrict logged in
114 permissions
115 * (T129738) SECURITY: Make blocks log users out if $wgBlockDisablesLogin is true
116 * (T139670) Move 'UserGetRights' call before application of
117 Session::getAllowedUserRights()
118
119 === Action API changes in 1.28 ===
120 * Added 'maxarticlesize' property to action=query&meta=siteinfo which contains
121 the value of $wgMaxArticleSize.
122 * Property 'modulemessages' from action=parse&prop=modules was removed
123 (deprecated since 1.26).
124 * The following response properties from action=login, deprecated in 1.27, are
125 now removed: lgtoken, cookieprefix, sessionid. Clients should handle cookies
126 to properly manage session state.
127 * Submitting the lgtoken and lgpassword parameters in the query string to
128 action=login is now deprecated and outputs a warning. They should be submitted
129 in the POST body instead.
130 * Submitting sensitive authentication request parameters to action=clientlogin,
131 action=createaccount, action=linkaccount, and action=changeauthenticationdata
132 in the query string is now deprecated and outputs a warning. They should be
133 submitted in the POST body instead.
134 * (T141960) Multi-valued parameters may now be separated using U+001F (Unit Separator)
135 instead of the pipe character. This will be useful if some of the multiple
136 values need to contain pipes, e.g. for action=options.
137 * The API will now warn if input is not NFC-normalized Unicode or if it
138 contains invalid characters.
139 * The 'normalized' list output by action=query and other modules that use
140 ApiPageSet may contain entries where the 'from' value is percent-encoded as
141 the raw value cannot be represented in a valid API response. These are
142 indicated by a 'fromencoded' boolean alongside the existing 'from' parameter.
143 * (T28680) action=paraminfo can now return info about all submodules of a
144 module without listing them all explicitly.
145 * (T146770) It is now possible to assert that the current user is a specific
146 named user, using the 'assertuser' parameter.
147 * (T141963) Added a 'known' property when missing-but-known titles (e.g. from
148 the 'TitleIsAlwaysKnown' hook) are output in various modules.
149
150 === Action API internal changes in 1.28 ===
151 * Added a new hook, 'ApiMakeParserOptions', to allow extensions to better
152 interact with ApiParse and ApiExpandTemplates.
153 * (T139565) SECURITY: API: Generate head items in the context of the given title
154 * (T115333) SECURITY: Check read permission when loading page content in ApiParse
155 * ApiBase::getResultData() was removed (deprecated since 1.25)
156 * ApiBase::makeHelpArrayToString() was removed (deprecated since 1.25)
157 * ApiBase::makeHelpMsgParameters() was removed (deprecated since 1.25)
158 * ApiBase::makeHelpMsg() was removed (deprecated since 1.25)
159 * ApiFormatBase::formatHTML() was removed (deprecated since 1.25)
160 * ApiFormatBase::getNeedsRawData() was removed (deprecated since 1.25)
161 * ApiFormatBase::getWantsHelp() was removed (deprecated since 1.25)
162 * ApiFormatBase::setBufferResult() was removed (deprecated since 1.25)
163 * ApiFormatBase::setHelp() was removed (deprecated since 1.25)
164 * ApiFormatBase::setUnescapeAmps() was removed (deprecated since 1.25)
165 * ApiMain::makeHelpMsgHeader() was removed (deprecated since 1.25)
166 * ApiMain::reallyMakeHelpMsg() was removed (deprecated since 1.25)
167 * ApiMain::setHelp() was removed (deprecated since 1.25)
168 * ApiResult::beginContinuation() was removed (deprecated since 1.25)
169 * ApiResult::cleanUpUTF8() was removed (deprecated since 1.25)
170 * ApiResult::convertStatusToArray() was removed (deprecated since 1.25)
171 * ApiResult::disableSizeCheck() was removed (deprecated since 1.24)
172 * ApiResult::enableSizeCheck() was removed (deprecated since 1.24)
173 * ApiResult::endContinuation() was removed (deprecated since 1.25)
174 * ApiResult::getData() was removed (deprecated since 1.25)
175 * ApiResult::getIsRawMode() was removed (deprecated since 1.25)
176 * ApiResult::setContent() was removed (deprecated since 1.25)
177 * ApiResult::setContinueParam() was removed (deprecated since 1.25)
178 * ApiResult::setElement() was removed (deprecated since 1.25)
179 * ApiResult::setGeneratorContinueParam() was removed (deprecated since 1.25)
180 * ApiResult::setIndexedTagName_internal() was removed (deprecated since 1.25)
181 * ApiResult::setIndexedTagName_recursive() was removed (deprecated since 1.25)
182 * ApiResult::setMainForContinuation() was removed (deprecated since 1.25)
183 * ApiResult::setParsedLimit() was removed (deprecated since 1.25)
184 * ApiResult::setRawMode() was removed (deprecated since 1.25)
185 * ApiResult::size() was removed (deprecated since 1.25)
186 * Added new hooks, 'ApiQueryBaseBeforeQuery', 'ApiQueryBaseAfterQuery', and
187 'ApiQueryBaseProcessRow', to make it easier for extensions to add 'prop' and
188 'show' parameters to existing API query modules. A query module can enable
189 these hooks by passing an array for $hookData to ApiQueryBase::select() and
190 by calling ApiQueryBase->processRow() before adding a row's data to the
191 result.
192
193 === Languages updated in 1.28 ===
194
195 MediaWiki supports over 375 languages. Many localisations are updated
196 regularly. Below only new and removed languages are listed, as well as
197 changes to languages because of Phabricator reports.
198
199 * (T137411) ban (Balinese), thanks to translators Adi Mayndra, Andru,
200 BASAbali, M. Adiputra, Naval Scene, Nemo bis, NoiX180, and 아라.
201 * (T135867) shn (Shan), thanks to translators Khun Sar, Piangpha,
202 Saiddzone Saimawnkham, Saosukham, and Sengwan.
203 * Czech (cs) and Slovak (sk) set as reciprocal fallbacks.
204 * (T146744) Livvi-Karelian (olo) namespace messages created thanks to translator Ilja.mos.
205
206 === Other changes in 1.28 ===
207 * (T128697) Improved handling of large diffs.
208 * [BREAKING CHANGE] $wgExtendedLoginCookies has been removed. You can
209 use or update a custom session provider if needed.
210 * Deprecated APIEditBeforeSave hook in favor of EditFilterMergedContent.
211 * The 'UploadVerification' hook is deprecated. Use 'UploadVerifyFile' instead.
212 * SiteConfiguration::isLocalVHost() was removed (deprecated since 1.25).
213 * The 'UserLoginComplete' hook has a new parameter to differentiate between actual
214 login and visiting the login page while already logged in.
215 * ResourceLoader::makeLoaderURL() was removed (deprecated since 1.24).
216 * $.fn.liveAndTestAtStart was removed (deprecated since 1.24).
217 * mw.util.tooltipAccessKeyPrefix was removed (deprecated since 1.24).
218 * mw.util.tooltipAccessKeyRegexp was removed (deprecated since 1.24).
219 * Linker::link() and Linker::linkKnown() were deprecated; please instead use
220 MediaWiki\Linker\LinkRenderer. In addition, the LinkBegin and LinkEnd hooks
221 were replaced by HtmlPageLinkRendererBegin and HtmlPageLinkRendererEnd
222 respectively. See docs/hooks.txt for the specific changes needed for those hooks.
223 * Linker::formatSize() was deprecated. Use Language::formatSize() directly.
224 * Aliases for Linker methods, deprecated since 1.21, were removed from Skin:
225 * Skin::commentBlock() (use Linker::commentBlock() instead)
226 * Skin::generateRollback() (use Linker::generateRollback() instead)
227 * Skin::link() (use MediaWiki\Linker\LinkRenderer instead)
228 * Skin::linkKnown() (use MediaWiki\Linker\LinkRenderer instead)
229 * Skin::userLink() (use Linker::userLink() instead)
230 * Skin::userToolLinks() (use Linker::userToolLinks() instead)
231 * Disabled "bug 2702" HTML tidying of parsed UI messages on wikis where Tidy is
232 disabled.
233 * DifferenceEngine::generateDiffBody() was removed (deprecated since 1.21).
234 * UploadBase::stashFileGetKey() and UploadBase::stashSession() were deprecated.
235 Use ...->stashFile()->getFileKey() instead.
236 * "Public domain" was removed as a wiki license option from the installer, in
237 favour of CC-0.
238 * AuthenticationRequest::$required is now changed from REQUIRED to PRIMARY_REQUIRED
239 on requests needed by primary providers even if all primaries need them.
240 Primary providers are discouraged from returning multiple REQUIRED requests.
241 * OOjs UI PHP widgets constructed with the `'infusable' => true` config option
242 will no longer be automatically infused. You should call `OO.ui.infuse()`
243 on them yourself from your JavaScript code.
244 * parserTests.php has moved to tests/parser/parserTests.php
245 * The command line options specific to parser tests have been removed from
246 phpunit.php: --regex and --keep-uploads. Instead of --regex, use --filter.
247 Instead of --keep-uploads, use the same option to parserTests.php, but you
248 must specify a directory with --upload-dir.
249 * The 'jquery.arrowSteps' ResourceLoader module is now deprecated.
250 * IP::isConfiguredProxy() and IP::isTrustedProxy() were removed. Callers should
251 migrate to using the same functions on a ProxyLookup instance, obtainable from
252 MediaWikiServices.
253 * The ArticleAfterFetchContent, ArticleInsertComplete, ArticleSave, ArticleSaveComplete,
254 ArticleViewCustom, EditFilterMerged, EditPageGetDiffText, EditPageGetPreviewText and
255 ShowRawCssJs hooks will now emit deprecation warnings if used.
256 * (T68404) CSS3 attr() function with url type is no longer allowed
257 in inline styles.
258 * Database::getSearchEngine() is deprecated, use SearchEngineFactory::getSearchEngineClass
259 instead.
260
261 == Compatibility ==
262
263 MediaWiki 1.28 requires PHP 5.5.9 or later. There is experimental support for
264 HHVM 3.6.5 or later.
265
266 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
267 support for them is somewhat less mature. There is experimental support for
268 Oracle and Microsoft SQL Server.
269
270 The supported versions are:
271
272 * MySQL 5.0.3 or later
273 * PostgreSQL 8.3 or later
274 * SQLite 3.3.7 or later
275 * Oracle 9.0.1 or later
276 * Microsoft SQL Server 2005 (9.00.1399)
277
278 == Upgrading ==
279
280 1.28 has several database changes since 1.27, and will not work without schema
281 updates. Note that due to changes to some very large tables like the revision
282 table, the schema update may take quite long (minutes on a medium sized site,
283 many hours on a large site).
284
285 If upgrading from before 1.11, and you are using a wiki as a commons
286 repository, make sure that it is updated as well. Otherwise, errors may arise
287 due to database schema changes.
288
289 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
290 new database fields are filled with data.
291
292 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
293 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
294 with MediaWiki 1.21.
295
296 Don't forget to always back up your database before upgrading!
297
298 See the file UPGRADE for more detailed upgrade instructions.
299
300 For notes on 1.27.x and older releases, see HISTORY.
301
302 == Online documentation ==
303
304 Documentation for both end-users and site administrators is available on
305 MediaWiki.org, and is covered under the GNU Free Documentation License (except
306 for pages that explicitly state that their contents are in the public domain):
307
308 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
309
310 == Mailing list ==
311
312 A mailing list is available for MediaWiki user support and discussion:
313
314 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
315
316 A low-traffic announcements-only list is also available:
317
318 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
319
320 It's highly recommended that you sign up for one of these lists if you're
321 going to run a public MediaWiki, so you can be notified of security fixes.
322
323 == IRC help ==
324
325 There's usually someone online in #mediawiki on irc.freenode.net.
326
327 = MediaWiki 1.27 =
328
329 == MediaWiki 1.27.1 ==
330
331 This is a maintenance release of the MediaWiki 1.27 branch.
332
333 === Changes since 1.27.0 ===
334 * BREAKING CHANGE: $wgHTTPProxy is now *required* for all external requests
335 made by MediaWiki via a proxy. Relying on the http_proxy environment
336 variable is no longer supported.
337 * (T139565) SECURITY: API: Generate head items in the context of the given title
338 * (T137264) SECURITY: XSS in unclosed internal links
339 * (T133147) SECURITY: Escape '<' and ']]>' in inline <style> blocks
340 * (T133147) SECURITY: Require login to preview user CSS pages
341 * (T132926) SECURITY: Do not allow undeleting a revision deleted file if it is
342 the top file
343 * (T129738) SECURITY: Make $wgBlockDisablesLogin also restrict logged in
344 permissions
345 * (T129738) SECURITY: Make blocks log users out if $wgBlockDisablesLogin is true
346 * (T115333) SECURITY: Check read permission when loading page content in ApiParse
347 * (T57548) Remove support for $wgWellFormedXml = false, all output is now well formed
348 * (T139670) Move 'UserGetRights' call before application of Session::getAllowedUserRights()
349
350 == MediaWiki 1.27.0 ==
351
352 === PHP version requirement in 1.27 ===
353 As of 1.27, MediaWiki now requires PHP 5.5.9 or higher (see Compatibility
354 section). Additionally, the following PHP extensions are required:
355 * ctype
356 * iconv
357 * json
358 * mbstring (new requirement in 1.27)
359 * xml
360 The following PHP extensions are strongly recommended:
361 * openssl
362
363 === Configuration changes in 1.27 ===
364 * $wgAllowMicrodataAttributes and $wgAllowRdfaAttributes were removed,
365 now always enabled. If you use RDFa on your wiki, you now have to explicitly
366 set $wgHtml5Version to 'HTML+RDFa 1.0' or 'XHTML+RDFa 1.0'.
367 * $wgUseLinkNamespaceDBFields was removed.
368 * Deprecated $wgResourceLoaderMinifierStatementsOnOwnLine and
369 $wgResourceLoaderMinifierMaxLineLength, because there was little value in
370 making the behavior configurable. The default values (`false` for the former,
371 1000 for the latter) are now hard-coded.
372 * $wgDebugDumpSqlLength was removed (deprecated in 1.24).
373 * $wgDebugDBTransactions was removed (deprecated in 1.20).
374 * $wgUseXVO has been removed, as it provides functionality only used by
375 custom Wikimedia patches against Squid 2.x that probably noone uses in
376 production anymore. There is now $wgUseKeyHeader that provides similar
377 functionality but instead of the MediaWiki-specific X-Vary-Options header,
378 uses the draft Key header standard.
379 * $wgScriptExtension (and support for '.php5' entry points) was removed. See the
380 deprecation notice in the release notes for version 1.25 for advice on how to
381 preserve support for '.php5' entry points via URL rewriting.
382 * Password handling via the User object has been deprecated and partially
383 removed, pending the future introduction of AuthManager. In particular:
384 ** expirePassword(), getPasswordExpireDate(), resetPasswordExpiration(), and
385 getPasswordExpired() have been removed. They were unused outside of core.
386 ** The mPassword, mNewpassword, mNewpassTime, and mPasswordExpires fields are
387 now private and will be removed in the future.
388 ** The getPassword() and getTemporaryPassword() methods now throw
389 BadMethodCallException and will be removed in the future.
390 ** The ability to pass 'password' and 'newpassword' to createNew() has been
391 removed. The only users of it seem to have been using it to set invalid
392 passwords, and so shouldn't be greatly affected.
393 ** setPassword(), setInternalPassword(), and setNewpassword() have been
394 deprecated, pending the introduction of AuthManager.
395 ** User::randomPassword() is deprecated in favor of a new method
396 PasswordFactory::generateRandomPasswordString()
397 ** User::getPasswordFactory() is deprecated, callers should just create a
398 PasswordFactory themselves.
399 ** A new constructor, User::newSystemUser(), has been added to simplify the
400 creation of passwordless "system" users for logged actions.
401 * $wgMaxSquidPurgeTitles was removed.
402 * $wgAjaxWatch was removed. This is now enabled by default.
403 * $wgUseInstantCommons now hotlinks Commons images by default instead of
404 downloading originals and thumbnailing them locally. This allows wikis to save
405 on CPU and bandwidth while reducing time to first byte for pages, even without
406 a thumbnail handler. See $wgForeignFileRepos documentation for tweaks.
407 * (T27397) WebP is enabled by default as an uploadable filetype.
408 * (T48998) $wgArticlePath must now be either a full url, or start with a "/".
409 * $wgRateLimitLog was removed; use $wgDebugLogGroups['ratelimit'] instead.
410 * Deprecated API formats dbg, txt, and yaml have been removed.
411 * CLDRPluralRule* classes have been replaced with
412 wikimedia/cldr-plural-rule-parser.
413 * Removed $wgProfilePerHost, $wgUDPProfilerHost, $wgUDPProfilerPort,
414 $wgUDPProfilerFormatString, $wgStatsMethod, $wgAggregateStatsID,
415 $wgStatsFormatString, and $wgProfileCallTree (deprecated since 1.20).
416 * For proper operation of LocalIdLookup with shared user tables, ensure that
417 $wgSharedDB and $wgSharedTables are properly set even on the "central" wiki
418 that all others are sharing from and that $wgLocalDatabases is set to the
419 full list of sharing wikis on all those wikis.
420 * Massive overhaul to session handling:
421 ** $wgSessionsInObjectCache is no longer supported and must be true, due to
422 MediaWiki\Session\SessionManager. $wgSessionHandler is similarly no longer
423 used.
424 ** ObjectCacheSessionHandler is removed, replaced with
425 MediaWiki\Session\PhpSessionHandler.
426 ** PHP session handling in general ($_SESSION, session_id(), and so on) is
427 deprecated. Use MediaWiki\Session\SessionManager instead. A new config
428 variable, $wgPHPSessionHandling, is available to cause use of $_SESSION to
429 issue a deprecation warning or to cause most PHP session handling to throw
430 exceptions.
431 ** Deprecated UserSetCookies hook. Session-handling extensions should generally
432 be creating a custom subclass of CookieSessionProvider. Other extensions
433 messing with cookies can no longer count on user data being saved in cookies
434 versus other methods.
435 ** Deprecated UserLoadFromSession hook, extensions should create a
436 MediaWiki\Session\SessionProvider.
437 ** The User cannot be loaded from session until after Setup.php completes.
438 Attempts to do so will be ignored and the User will remain unloaded.
439 ** CSRF tokens may be fetched from the MediaWiki\Session\Session, which uses
440 the MediaWiki\Session\Token class.
441 * MediaWiki will now auto-create users as necessary, removing the need for
442 extensions to do so. An 'autocreateaccount' right is added to allow
443 auto-creation when 'createaccount' is not granted to all users.
444 * Deprecated AuthPluginAutoCreate hook in favor of LocalUserCreated.
445 * Most cookie-handling methods in User are deprecated.
446 * $wgAllowAsyncCopyUploads and $CopyUploadAsyncTimeout were removed. This was an
447 experimental feature that has never worked.
448 * Login and createaccount tokens now vary by timestamp.
449 * LoginForm::getLoginToken() and LoginForm::getCreateaccountToken()
450 return a MediaWiki\Session\Token, and tokens must be checked using that
451 class's methods.
452 * $wgEnotifUseJobQ was removed and the job queue is always used.
453 * The functionality of the ApiSandbox extension has been merged into core. The
454 extension should no longer be used.
455 * $wgPreloadJavaScriptMwUtil was removed (deprecated in 1.26).
456 Extensions, skins, gadgets and scripts that use the mediawiki.util module must
457 express a dependency on it.
458 * $wgIncludeLegacyJavaScript, deprecated in MediaWiki 1.26, now defaults false.
459 Extensions, skins, gadgets and scripts that need the mediawiki.legacy.wikibits
460 module should express a dependency on it.
461 * Removed configuration option $wgCopyrightIcon (deprecated since 1.18). Use
462 $wgFooterIcons['copyright']['copyright'] instead.
463 * If the openssl and mcrypt PHP extensions are both unavailable, secure
464 session storage (used for login) will raise an exception. This exception may
465 be bypassed by setting $wgSessionInsecureSecrets = true.
466 * Massive overhaul to authentication:
467 ** AuthPlugin and AuthPluginUser are deprecated.
468 ** LoginForm and associated templates are deprecated. Extensions which called
469 static LoginForm methods should be converted into authentication providers.
470 ** The following hooks are deprecated:
471 *** AbortAutoAccount (create a MediaWiki\Auth\PreAuthenticationProvider instead)
472 *** AbortLogin (create a MediaWiki\Auth\PreAuthenticationProvider instead)
473 *** AbortNewAccount (create a MediaWiki\Auth\PreAuthenticationProvider instead)
474 *** AddNewAccount (use LocalUserCreated instead)
475 *** AuthPluginSetup (create a MediaWiki\Auth\PrimaryAuthenticationProvider instead)
476 *** ChangePasswordForm (use AuthChangeFormFields instead, or security levels)
477 *** LoginUserMigrated (create a MediaWiki\Auth\PreAuthenticationProvider instead)
478 *** UserCreateForm (create a MediaWiki\Auth\AuthenticationProvider of some type instead)
479 *** UserLoginForm (create a MediaWiki\Auth\AuthenticationProvider of some type instead)
480 ** The following hooks are removed:
481 *** AbortChangePassword
482 *** LoginPasswordResetMessage
483 *** PrefsPasswordAudit
484 ** The UserLoginComplete hook will no longer be called for all logins, only for
485 those via the web UI. Use UserLoggedIn if you need to do something on all
486 logins.
487 ** $wgRequirePasswordforEmailChange is removed.
488
489 === New features in 1.27 ===
490 * $wgDataCenterUpdateStickTTL was also added. This decides how long a user
491 sticks to the primary DC (via cookies) after they make changes to the site.
492 * Added a new hook, 'UserMailerTransformContent', to transform the contents
493 of an email. This is similar to the EmailUser hook but applies to all mail
494 sent via UserMailer.
495 * Added a new hook, 'UserMailerTransformMessage', to transform the contents
496 of an emai after MIME encoding.
497 * Added a new hook, 'UserMailerSplitTo', to control which users have to be
498 emailed separately (ie. there is a single address in the To: field) so
499 user-specific changes to the email can be applied safely.
500 * $wgCdnMaxageLagged was added, which limits the CDN cache TTL
501 when any load balancer uses a DB that is lagged beyond the 'max lag'
502 setting in the relevant section of $wgLBFactoryConf.
503 * User::newSystemUser() may be used to simplify the creation of passwordless
504 "system" users for logged actions from scripts and extensions.
505 * Extensions can now return detailed error information via the API when
506 preventing user actions using 'getUserPermissionsErrors' and similar hooks
507 by using ApiMessage instances instead of strings for the $result value.
508 * $wgAPIMaxLagThreshold was added to limit bot changes when databases lag
509 becomes too high.
510 * Skins and extensions can now use FlexBox mixins (.flex-display(@display: flex)
511 and .flex(@grow: 1, @shrink: 1, @width: auto, @order: 1)) in Less to create
512 cross-browser-compatible FlexBox rules. Users will still need to add fallback
513 float rules or the like for compatibility with IE9- separately.
514 * Added MWTimestamp::getTimezoneString() which returns the localized timezone
515 string, if available. To localize this string, see the comments of
516 $wgLocaltimezone in includes/DefaultSettings.php.
517 * Added CentralIdLookup, a service that allows extensions needing a concept of
518 "central" users to get that without having to know about specific central
519 authentication extensions.
520 * $wgMaxUserDBWriteDuration added to limit huge user-generated transactions.
521 Regular web request transactions that takes longer than this are aborted.
522 * Added a new hook, 'TitleMoveCompleting', which runs before a page move is
523 committed.
524 * $wgCdnReboundPurgeDelay was added to provide secondary delayed purges of URLs
525 from CDN to mitigate DB replication lag and WAN cache purge lag.
526 * (T49162) Installer will default to setting CACHE_ACCEL as the main cache type
527 if it is available.
528 * It is now possible to patrol file uploads (both for new files and new versions
529 of existing files). Special:NewFiles has gained an option to filter by patrol
530 status. This functionality can be disabled using $wgUseFilePatrol.
531 * MediaWiki\Session infrastructure allows for easier use of session mechanisms
532 other than the usual cookies.
533 ** SessionMetadata and SessionCheckInfo hooks allow for setting and checking
534 custom session metadata.
535 * Added MWGrants and associated configuration settings $wgGrantPermissions and
536 $wgGrantPermissionGroups to hold configuration for authentication features
537 such as OAuth that want to allow restricting the user rights a user may make
538 use of.
539 ** If you're already using the OAuth extension, these new variables are
540 identical to (and will replace) $wgMWOAuthGrantPermissions and
541 $wgMWOAuthGrantPermissionGroups.
542 * Added MWRestrictions as a class to check restrictions on a WebRequest, e.g.
543 to assert that the request comes from a particular IP range.
544 * Added bot passwords, a rights-restricted login mechanism for API-using bots.
545 * Whitelisted the following HTML attributes for all elements in wikitext:
546 aria-describedby, aria-flowto, aria-label, aria-labelledby, aria-owns.
547 * Removed "presentation" restriction on the HTML role attribute in wikitext.
548 All values are now allowed for the role attribute.
549 * $wgContentHandlers now also supports callbacks to create an instance of the
550 appropriate ContentHandler subclass.
551 * Added $wgAuthenticationTokenVersion, which if non-null prevents the
552 user_token database field from being exposed in cookies. Setting this would
553 be a good idea, but will log out all current sessions.
554 * $wgEventRelayerConfig was added, for managing PubSub event relay configuration,
555 specifically for reliable CDN url purges.
556 * Requests have unique IDs, equal to the UNIQUE_ID environment variable (when
557 MediaWiki is behind Apache+mod_unique_id or something similar) or a randomly-
558 generated 24-character string. This request ID is used to annotate log records
559 and error messages. It is available client-side via mw.config.get( 'wgRequestId' ).
560 The request ID supplants exception IDs. Accordingly, MWExceptionHandler::getLogId()
561 is deprecated.
562 * (T33313) Add a preference for watching uploads by default, also applies
563 to API-based upload tools.
564 * $wgJpegPixelFormat was added to override chroma subsampling for JPEG image
565 thumbnails created via ImageMagick. Defaults to 'yuv420', providing bandwidth
566 savings versus the previous behavior on many files.
567 * MediaWiki\Auth infrastructure (called "AuthManager") allows for more flexible
568 configuration of multiple authentication pieces that was possible with
569 AuthPlugin. For example, it's now easy to plug in second-factor
570 authentication, or add additional checks to the login process, or to support
571 multiple login methods at once, or to support non-password-based login methods.
572 ** Providers are configured via the global setting $wgAuthManagerConfig.
573 ** A global, $wgDisableAuthManager, is temporarily available to disable
574 AuthManager until extensions are ready to support it.
575 ** New hook, AuthChangeFormFields, to adjust the form fields on
576 AuthManager-related special pages.
577 ** New hook, AuthManagerLoginAuthenticateAudit, for additional logging of
578 AuthManager-related authentication requests.
579 ** New hook, ChangeAuthenticationDataAudit, for additional logging of
580 AuthManager-related authentication data changes.
581 ** New hook, SecuritySensitiveOperationStatus, to work with the new mechanism
582 for requiring a recent login before taking security-sensitive operations
583 like changing a password.
584 ** Two new globals, $wgChangeCredentialsBlacklist and $wgRemoveCredentialsBlacklist
585 can be used to prevent the web UI and the API changing certain authentication data.
586 * The file upload dialog (available if you install WikiEditor or VisualEditor)
587 can now be configured using $wgUploadDialog.
588
589 === External library changes in 1.27 ===
590
591 ==== Upgraded external libraries ====
592 * Updated oojs/oojs-ui from v0.12.12 to v0.13.3.
593 * Updated composer/semver from v1.0.0 to v1.2.0.
594 * Updated liuggio/statsd-php-client to 1.0.18.
595 * Updated QUnit from v1.18.0 to v1.22.0.
596
597 ==== New external libraries ====
598 * Added wikimedia/base-convert v1.0.1.
599 * Added wikimedia/cldr-plural-rule-parser v1.0.0.
600 * Added wikimedia/relpath v1.0.3.
601 * Added wikimedia/running-stat v1.1.0.
602 * Added wikimedia/php-session-serializer v1.0.3.
603
604 ==== Removed and replaced external libraries ====
605
606 === Bug fixes in 1.27 ===
607 * Special:Upload will now display correct maximum allowed file size when running
608 under HHVM (T116347).
609 * (T54077) The APIEditBeforeSave hook will once again give only the content of
610 the section being edited, rather than the whole revision. This reverts the
611 change made in MediaWiki 1.22.
612
613 === Action API changes in 1.27 ===
614 * Added list=allrevisions.
615 * generator=recentchanges now has the option to generate revids.
616 * ApiPageSet::setRedirectMergePolicy() was added. This allows generator
617 modules to define how generator data for a redirect source gets merged
618 into the redirect destination.
619 * prop=imageinfo&iiprop=uploadwarning will no longer include the possibility of
620 "was-deleted" warning.
621 * Added difftotextpst to query=revisions which preforms a pre-save transform on
622 the text before diffing it.
623 * Deprecated formats dbg, txt, and yaml have been removed.
624 * (T47988) The protect log event details now use new-style formatting.
625 * The following response properties from action=login are deprecated, and may
626 be removed in the future: lgtoken, cookieprefix, sessionid. Clients should
627 handle cookies to properly manage session state.
628 * action=login transparently allows login using bot passwords. Clients should
629 merely need to change the username and password used after setting up a bot
630 password.
631 * action=upload no longer understands statuskey, asyncdownload or leavemessage.
632 * Several changes when $wgDisableAuthManager is false:
633 ** action=login is deprecated for uses other than bot passwords.
634 ** list=users can now indicate if a missing username is creatable.
635 ** action=createaccount is changed in a non-backwards-compatible manner.
636 ** Added action=query&meta=authmanagerinfo.
637 ** Added action=clientlogin to be used to log into the main account instead of
638 action=login.
639 ** Added action=linkaccount.
640 ** Added action=unlinkaccount.
641 ** Added action=changeauthenticationdata.
642 ** Added action=removeauthenticationdata.
643 ** Added action=resetpassword.
644
645 === Action API internal changes in 1.27 ===
646 * ApiQueryORM removed.
647 * The following classes have been removed:
648 ** ApiFormatDbg
649 ** ApiFormatTxt
650 ** ApiFormatYaml
651 * ApiBase::addTokenProperties() was removed (deprecated since 1.24).
652 * ApiBase::getFinalPossibleErrors() was removed (deprecated since 1.24).
653 * ApiBase::getFinalResultProperties() was removed (deprecated since 1.24).
654 * ApiBase::getRequireAtLeastOneParameterErrorMessages() was removed (deprecated since 1.24).
655 * ApiBase::getPossibleErrors() was removed (deprecated since 1.24).
656 * ApiBase::getRequireMaxOneParameterErrorMessages() was removed (deprecated since 1.24).
657 * ApiBase::getRequireOnlyOneParameterErrorMessages() was removed (deprecated since 1.24).
658 * ApiBase::getResultProperties() was removed (deprecated since 1.24).
659 * ApiBase::getTitleOrPageIdErrorMessage() was removed (deprecated since 1.24).
660 * ApiBase::parseErrors() was removed (deprecated since 1.24).
661 * ApiQueryBase::titleToKey(), ApiQueryBase::keyToTitle() and
662 ApiQueryBase::keyPartToTitle() all removed (deprecated since 1.24).
663 * ApiQueryBase::checkRowCount() was removed (deprecated since 1.24).
664 * ApiQueryBase::getDirectionDescription() was removed (deprecated since 1.25).
665 * ApiQuery::getGenerators() was removed (deprecated since 1.21).
666 * ApiQuery::getModules() was removed (deprecated since 1.21).
667 * ApiQuery::getModuleType() was removed (deprecated since 1.21).
668 * ApiQuery::setGeneratorContinue() was removed (deprecated since 1.24).
669 * ApiMain::getModules() was removed (deprecated since 1.21).
670 * ApiBase::getVersion() was removed (deprecated since 1.21).
671 * ApiMain::getShowVersions() was removed (deprecated in 1.21).
672 * ApiMain::addModule() was removed (deprecated in 1.21).
673 * ApiMain::addFormat() was removed (deprecated in 1.21).
674 * ApiMain::getFormats() was removed (deprecated in 1.21).
675 * ApiPageSet::finishPageSetGeneration() was removed (deprecated in 1.21).
676 * ApiCreateAccount was removed.
677
678 === Languages updated in 1.27 ===
679
680 MediaWiki supports over 350 languages. Many localisations are updated
681 regularly. Below only new and removed languages are listed, as well as
682 changes to languages because of Phabricator reports.
683
684 * (T113688) Change default numerals from Gurmukhi to Arabic for Punjabi locale.
685 * (T116020) Aliases of magic words in MessagesXx.php are sorted by usage.
686
687 === Other changes in 1.27 ===
688 * Added dependency injection (DI) infrastructure, see docs/injection.txt for details.
689 It is planned to incrementally move MediaWiki code towards using DI, using the
690 service locator (SL) pattern as a stepping stone.
691 * ProfilerOutputUdp was removed. Note that there is a ProfilerOutputStats class.
692 * WikiPage::doDeleteArticleReal() and WikiPage::doDeleteArticle() now
693 ignore the 2nd and 3rd arguments (formerly $id and $commit).
694 * Removed "loaderScripts" option from ResourceLoaderFileModule class.
695 * Removed ORM-like wrapper added in 1.20.
696 * LinkCache::getGoodLinks and LinkCache::getBadLinks were removed
697 (deprecated in 1.26).
698 * WikiPage::doQuickEdit() was removed (deprecated since 1.21).
699 * Removed SiteObject and SiteArray classes (deprecated in 1.21).
700 * MessageBlobStore::getInstance() was removed (deprecated since 1.25).
701 * (T84937) Free external links ("autolinked" urls) will now be terminated
702 by &nbsp; and HTML entity encodings of &nbsp, <, and >.
703 * (T36948) The default file revert message's timestamp is now in
704 $wgLocaltimezone, instead of UTC.
705 * The default name of the 'suppress' group page has been changed from
706 'Project:Oversight' to 'Project:Suppress'.
707 * DatabaseBase::resultObject() is now protected (use outside Database classes
708 not necessary since 1.11).
709 * Calling ResourceLoaderFileModule::readStyleFiles() without a
710 ResourceLoaderContext instance is deprecated.
711 * ResourceLoader::getLessCompiler() now takes an optional parameter of
712 additional LESS variables to set for the compiler.
713 * wfBaseConvert() marked as deprecated, use Wikimedia\base_convert() directly
714 instead.
715 * Obsolete maintenance scripts clearCacheStats.php and showCacheStats.php
716 were removed. The underlying data is sent to StatsD (see $wgStatsdServer).
717 * Removed msg_resource_links database table and associated code.
718 * Removed msg_resource database table and associated code.
719 * Skin::getNamespaceNotice() was removed.
720 * wfIsConfiguredProxy() was removed (deprecated since 1.24).
721 * wfDebugTimer() was removed (deprecated since 1.25).
722 * wfIsTrustedProxy() was removed (deprecated since 1.24).
723 * wfGetIP() was removed (deprecated since 1.19).
724 * MWHookException was removed.
725 * OutputPage::appendSubtitle() was removed (deprecated since 1.19).
726 * OutputPage::loginToUse() was removed (deprecated since 1.19).
727 * Article::loadContent() was removed (deprecated since 1.19).
728 * User::editToken() was removed (deprecated since 1.19).
729 * Removed --force-normal option of dumpBackup.php, as it no longer served
730 any useful purpose since 1.22.
731 * The functions processOption() and processArgs() on the BackupDumper and
732 TextPassDumper classes have been removed.
733 * The maintenance/backupTextPass.inc file was deleted. You should include
734 maintenance/dumpTextPass.php instead.
735 * WikiPage::getUsedTemplates() was removed (deprecated since 1.19).
736 * wfEmptyMsg() was removed (deprecated since 1.18).
737 * OutputPage::permissionRequired() was removed (deprecated since 1.18).
738 * OutputPage::blockedPage() was removed (deprecated since 1.18).
739 * User::getSkin() was removed (deprecated since 1.18).
740 * OutputPage::includeJQuery() was removed (deprecated since 1.17).
741 * WikiPage::updateRestrictions() was removed (deprecated since 1.19).
742 * WikiPage::testPreSaveTransform() was removed (deprecated since 1.19).
743 * LogPage::logName() was removed (deprecated since 1.19).
744 * LogPage::logHeader() was removed (deprecated since 1.19).
745 * wfCheckLimits() was removed (deprecated since 1.24).
746 * Linker::makeKnownLinkObj() was removed (deprecated since 1.16).
747 * Linker::makeLinkObj() was removed (deprecated since 1.16).
748 * wfMsgForContentNoTrans() was removed (deprecated since 1.18).
749 * ChangesList::usePatrol was removed (deprecated since 1.22).
750 * wfMsgNoTrans() was removed (deprecated since 1.18).
751 * Linker::makeImageLink2 was removed (deprecated since 1.20).
752 * Title::userIsWatching() was removed (deprecated since 1.20).
753 * Removed WaitForSlave maintenance script; use SELECT MASTER_POS_WAIT()
754 database function directly instead.
755 * wfMsg() was removed (deprecated since 1.18).
756 * wfMsgForContent() was removed (deprecated since 1.18).
757 * wfMsgReal() was removed (deprecated since 1.18).
758 * wfMsgGetKey() was removed (deprecated since 1.18).
759 * wfMsgHtml() was removed (deprecated since 1.18).
760 * wfMsgWikiHtml() was removed (deprecated since 1.18).
761 * wfMsgExt() was removed (deprecated since 1.18).
762 * Language::armourMath() was removed (deprecated since 1.22).
763 * LanguageConverter::armourMath() was removed (deprecated since 1.22).
764 * FakeConverter::armourMath() was removed (deprecated since 1.22).
765 * The unused jquery.validate ResourceLoader module was removed.
766 * FileRepo::getRootUrl() was removed (deprecated since 1.20).
767 * User::generateToken() was removed (deprecated since 1.20).
768 * WikiPage::getRawText() was removed (deprecated since 1.21).
769 * ParserOutput::hasCustomDataUpdates() was removed (deprecated since 1.25).
770 * ParserOutput::addSecondaryDataUpdate() was removed (deprecated since 1.25).
771 * ParserOutput::getSecondaryDataUpdates() was removed (deprecated since 1.25).
772 * Gallery images with multiple caption pipes no longer concatenate them all
773 together but instead pick the final one, similar to image syntax.
774 * XML-like parser tags (such as <gallery>), when unclosed, will be left unparsed
775 rather than consume everything until the end of the page.
776 * New maintenance script resetUserEmail.php allows sysadmins to reset user emails in case
777 a user forgot password/account was stolen.
778 * wfCheckEntropy() was removed (deprecated in 1.27).
779 * Browser support for Internet Explorer 8 lowered from Grade A to Grade C.
780 * ContentHandler::supportsCategories method added. Default is true.
781 CategoryMembershipChangeJob updates are skipped for content that
782 does not support categories.
783 * wikidiff difference engine is no longer supported, anyone still using it are encouraged
784 to upgrade to wikidiff2 which is actively maintained and has better package availability.
785 * Database logic was removed from WatchedItem and a WatchedItemStore was created:
786 ** WatchedItem::IGNORE_USER_RIGHTS and WatchedItem::CHECK_USER_RIGHTS were deprecated.
787 User::IGNORE_USER_RIGHTS and User::CHECK_USER_RIGHTS were introduced.
788 ** WatchedItem::fromUserTitle was deprecated in favour of the constructor.
789 ** WatchedItem::resetNotificationTimestamp was deprecated.
790 ** WatchedItem::batchAddWatch was deprecated.
791 ** WatchedItem::addWatch was deprecated.
792 ** WatchedItem::removeWatch was deprecated.
793 ** WatchedItem::isWatched was deprecated.
794 ** WatchedItem::duplicateEntries was deprecated.
795 ** EmailNotification::updateWatchlistTimestamp was deprecated.
796 ** User::getWatchedItem was removed.
797 * Unit tests don't work with external PHPUnit anymore, Composer is now the only supported
798 way. Run `composer install` to install it and other dev dependencies to run unit tests.
799 * wl_id field added to the watchlist table.
800 * Revision::getRawText() was removed (deprecated since 1.21).
801 * WikiPage::replaceSection() was removed (deprecated since 1.21).
802 * Article::replaceSection() was removed (deprecated since 1.21).
803 * Language::getLangObj() was removed (deprecated since 1.24).
804 * Language::getLanguageName() was removed (deprecated since 1.20).
805 * Language::getLanguageNames() was removed (deprecated since 1.20).
806 * Language::getTranslatedLanguageNames() was removed (deprecated since 1.20).
807 * Language::specialPage() was removed (deprecated since 1.24).
808 * MediaWikiTestCase::assertException() was removed (deprecated since 1.22).
809 * OutputPage::getHeadItems() was removed (deprecated since 1.24).
810 * OutputPage::getScript() was removed (deprecated since 1.24).
811 * OutputPage::out() was removed (deprecated since 1.22).
812 * OutputPage::setAllowedModules() was removed (deprecated since 1.24).
813 * UserrightsPage::makeGroupNameListForLog() was removed (deprecated since 1.21).
814 * MediaWikiSite::newFromGlobalId() was removed (deprecated since 1.21).
815 * Title::newFromRedirect() was removed (deprecated since 1.21).
816 * Skin::commonPrintStylesheet() was removed (deprecated since 1.22).
817 * Skin::getCommonStylePath() was removed (deprecated since 1.24).
818 * Skin::newFromKey() was removed (deprecated since 1.24).
819 * Skin::getUsableSkins() was removed (deprecated since 1.23).
820 * LoadBalancer::pickRandom() was removed (deprecated in 1.21).
821 * Article::getUndoText() and WikiPage::getUndoText were removed (deprecated since
822 1.21).
823 * DifferenceEngine::setText() was removed (deprecated in 1.21).
824 * Title::newFromRedirectArray() was removed (deprecated in 1.21).
825 * UserMailer::send() no longer accepts $replyto as the 5th argument and $contentType
826 as the 6th. These must be passed in the options array now.
827 * Title::newFromRedirectRecurse() was removed (deprecated in 1.21).
828 * Skin::accesskey was removed (deprecated since 1.21).
829 * Skin::blockLink was removed (deprecated since 1.21).
830 * Skin::buildRollbackLink was removed (deprecated since 1.21).
831 * Skin::emailLink was removed (deprecated since 1.21).
832 * Skin::formatComment was removed (deprecated since 1.21).
833 * Skin::formatHiddenCategories was removed (deprecated since 1.21).
834 * Skin::formatLinksInComment was removed (deprecated since 1.21).
835 * Skin::formatRevisionSize was removed (deprecated since 1.21).
836 * Skin::formatSize was removed (deprecated since 1.21).
837 * Skin::formatTemplates was removed (deprecated since 1.21).
838 * Skin::generateTOC was removed (deprecated since 1.21).
839 * Skin::getInternalLinkAttributes was removed (deprecated since 1.21).
840 * Skin::getInternalLinkAttributesObj was removed (deprecated since 1.21).
841 * Skin::getInterwikiLinkAttributes was removed (deprecated since 1.21).
842 * Skin::getInvalidTitleDescription was removed (deprecated since 1.21).
843 * Skin::getLinkColour was removed (deprecated since 1.21).
844 * Skin::getRevDeleteLink was removed (deprecated since 1.21).
845 * Skin::getRollbackEditCount was removed (deprecated since 1.21).
846 * Skin::makeBrokenImageLinkObj was removed (deprecated since 1.21).
847 * Skin::makeCommentLink was removed (deprecated since 1.21).
848 * Skin::makeExternalImage was removed (deprecated since 1.21).
849 * Skin::makeExternalLink was removed (deprecated since 1.21).
850 * Skin::makeHeadline was removed (deprecated since 1.21).
851 * Skin::makeImageLink was removed (deprecated since 1.21).
852 * Skin::makeMediaLinkFile was removed (deprecated since 1.21).
853 * Skin::makeMediaLinkObj was removed (deprecated since 1.21).
854 * Skin::makeSelfLinkObj was removed (deprecated since 1.21).
855 * Skin::makeThumbLink2 was removed (deprecated since 1.21).
856 * Skin::makeThumbLinkObj was removed (deprecated since 1.21).
857 * Skin::normaliseSpecialPage was removed (deprecated since 1.21).
858 * Skin::normalizeSubpageLink was removed (deprecated since 1.21).
859 * Skin::processResponsiveImages was removed (deprecated since 1.21).
860 * Skin::revComment was removed (deprecated since 1.21).
861 * Skin::revDeleteLink was removed (deprecated since 1.21).
862 * Skin::revDeleteLinkDisabled was removed (deprecated since 1.21).
863 * Skin::revUserLink was removed (deprecated since 1.21).
864 * Skin::revUserTools was removed (deprecated since 1.21).
865 * Skin::specialLink was removed (deprecated since 1.21).
866 * Skin::splitTrail was removed (deprecated since 1.21).
867 * Skin::titleAttrib was removed (deprecated since 1.21).
868 * Skin::tocIndent was removed (deprecated since 1.21).
869 * Skin::tocLine was removed (deprecated since 1.21).
870 * Skin::tocLineEnd was removed (deprecated since 1.21).
871 * Skin::tocList was removed (deprecated since 1.21).
872 * Skin::tocUnindent was removed (deprecated since 1.21).
873 * Skin::tooltip was removed (deprecated since 1.21).
874 * Skin::tooltipAndAccesskeyAttribs was removed (deprecated since 1.21).
875 * Skin::userTalkLink was removed (deprecated since 1.21).
876 * Skin::userToolLinksRedContribs was removed (deprecated since 1.21).
877 * wikidiff3 is now the default and only PHP diff engine. It provides improved diff
878 performance on complex changes. $wgExternalDiffEngine = 'wikidiff3' therefore
879 makes no difference now. Users are still recommended to use wikidiff2 if possible,
880 though.
881 * User::addNewUserLogEntry() was deprecated.
882 * User::addNewUserLogEntryAutoCreate() was deprecated.
883 * User::isPasswordReminderThrottled() was deprecated.
884 * Bot-oriented parameters to Special:UserLogin (wpCookieCheck, wpSkipCookieCheck)
885 were removed.
886 * Installer can now be customized without patching MediaWiki code, see
887 mw-config/overrides/README for details.
888
889 === Compatibility ===
890
891 MediaWiki 1.27 requires PHP 5.5.9 or later. There is experimental support for
892 HHVM 3.6.5 or later.
893
894 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
895 support for them is somewhat less mature. There is experimental support for
896 Oracle and Microsoft SQL Server.
897
898 The supported versions are:
899
900 * MySQL 5.0.3 or later
901 * PostgreSQL 8.3 or later
902 * SQLite 3.3.7 or later
903 * Oracle 9.0.1 or later
904 * Microsoft SQL Server 2005 (9.00.1399)
905
906 === Upgrading ===
907
908 1.27 has several database changes since 1.26, and will not work without schema
909 updates. Note that due to changes to some very large tables like the revision
910 table, the schema update may take quite long (minutes on a medium sized site,
911 many hours on a large site).
912
913 If upgrading from before 1.11, and you are using a wiki as a commons
914 repository, make sure that it is updated as well. Otherwise, errors may arise
915 due to database schema changes.
916
917 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
918 new database fields are filled with data.
919
920 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
921 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
922 with MediaWiki 1.21.
923
924 Don't forget to always back up your database before upgrading!
925
926 See the file UPGRADE for more detailed upgrade instructions.
927
928 For notes on 1.26.x and older releases, see HISTORY.
929
930
931 = MediaWiki 1.26 =
932
933 == MediaWiki 1.26.4 ==
934
935 This is a maintenance release of the MediaWiki 1.26 branch.
936
937 === Changes since 1.26.3 ===
938 * BREAKING CHANGE: $wgHTTPProxy is now *required* for all external requests
939 made by MediaWiki via a proxy. Relying on the http_proxy environment
940 variable is no longer supported.
941 * (T124163) Fixed fatal error in DifferenceEngine under HHVM.
942 * (T139565) SECURITY: API: Generate head items in the context of the given title
943 * (T137264) SECURITY: XSS in unclosed internal links
944 * (T133147) SECURITY: Escape '<' and ']]>' in inline <style> blocks
945 * (T133147) SECURITY: Require login to preview user CSS pages
946 * (T132926) SECURITY: Do not allow undeleting a revision deleted file if it is
947 the top file
948 * (T129738) SECURITY: Make $wgBlockDisablesLogin also restrict logged in
949 permissions
950 * (T129738) SECURITY: Make blocks log users out if $wgBlockDisablesLogin is true
951 * (T115333) SECURITY: Check read permission when loading page content in ApiParse
952 * Remove support for $wgWellFormedXml = false, all output is now well formed
953
954 == MediaWiki 1.26.3 ==
955
956 This is a maintenance release of the MediaWiki 1.26 branch.
957
958 === Changes since 1.26.2 ===
959 * (T116266) Fixed undefined property notices in DairikiDiff under HHVM.
960 * (T123166) Fix fatal error when importing pages to titles which cannot be
961 created, such as invalid titles or titles the user is not allowed to edit.
962 * (T122056) Old tokens are remaining valid within a new session
963 * (T127114) Login throttle can be tricked using non-canonicalized usernames
964 * (T123653) Cross-domain policy regexp is too narrow
965 * (T123071) Incorrectly identifying http link in a's href attributes, due to
966 m modifier in regex
967 * (T129506) MediaWiki:Gadget-popups.js isn't renderable
968 * (T125283) Users occasionally logged in as different users after
969 SessionManager deployment
970 * (T103239) Patrol allows click catching and patrolling of any page
971 * (T122807) [tracking] Check php crypto primatives
972 * (T98313) Graphs can leak tokens, leading to CSRF
973 * (T130947) Diff generation should use PoolCounter
974 * (T133507) Careless use of $wgExternalLinkTarget is insecure
975 * (T132874) API action=move is not rate limited
976 * (T110143) strip markers can be used to get around html attribute escaping in
977 (many?) parser tags
978 * (T116030) Increase pbkdf2 parameter strengths
979 * (T127420) Pbkdf2Password does not check if hash_pbkdf2() succeeded
980 * (T126685) Globally throttle password attempts
981
982 == MediaWiki 1.26.2 ==
983
984 This is a maintenance release of the MediaWiki 1.26 branch.
985
986 === Changes since 1.26.1 ===
987 * (T121892) Fix fatal error on some Special pages, introduced in 1.26.1.
988
989 == MediaWiki 1.26.1 ==
990
991 This is a maintenance release of the MediaWiki 1.26 branch.
992
993 === Changes since 1.26.0 ===
994 * (T117899) SECURITY: $wgArticlePath can no longer be set to relative paths
995 that do not begin with a slash. This enabled trivial XSS attacks.
996 Configuration values such as "http://my.wiki.com/wiki/$1" are fine, as are
997 "/wiki/$1". A value such as "$1" or "wiki/$1" is not and will now throw an
998 error.
999 * (T119309) SECURITY: Use hash_compare() for edit token comparison
1000 * (T118032) SECURITY: Don't allow cURL to interpret POST parameters starting
1001 with '@' as file uploads
1002 * (T115522) SECURITY: Passwords generated by User::randomPassword() can no
1003 longer be shorter than $wgMinimalPasswordLength
1004 * (T97897) SECURITY: Improve IP parsing and trimming. Previous behavior could
1005 result in improper blocks being issued
1006 * (T109724) SECURITY: Special:MyPage, Special:MyTalk, Special:MyContributions
1007 and related pages no longer use HTTP redirects and are now redirected by
1008 MediaWiki
1009 * Fixed ConfigException in ExpandTemplates due to AlwaysUseTidy.
1010 * Fixed stray literal \n in Special:Search.
1011 * Fix issue that breaks HHVM Repo Authorative mode.
1012 * (T120267) Work around APCu memory corruption bug
1013
1014 == MediaWiki 1.26.0 ==
1015
1016 === Configuration changes in 1.26 ===
1017 * $wgPasswordResetRoutes['email'] = true by default.
1018 * $wgEnableParserCache was deprecated, set $wgParserCacheType to CACHE_NONE
1019 instead if you want to disable the parser cache.
1020 * New-style continuation is now the default for API action=continue. Clients may
1021 use the 'rawcontinue' parameter to receive raw query-continue data, but the
1022 new style is encouraged as it's harder to implement incorrectly.
1023 * Deprecated API formats dump and wddx have been completely removed.
1024 * (T7645) The "Signature" button on the edit toolbar is now hidden by default
1025 in non-talk namespaces. A new configuration variable,
1026 $wgExtraSignatureNamespaces, controls in which subject (non-talk) namespaces
1027 the "Signature" button on the edit toolbar will be displayed.
1028 * $wgResourceLoaderUseESI was deprecated and removed. This was an experimental
1029 feature that was never enabled by default.
1030 * $wgResourceLoaderExperimentalAsyncLoading was deprecated and removed.
1031 This experimental feature was never enabled by default and is obsolete as of
1032 MediaWiki 1.26, in where ResourceLoader became fully asynchronous.
1033 * $wgMasterWaitTimeout was removed (deprecated in 1.24).
1034 * Fields in ParserOptions are now private. Use the accessors instead.
1035 * Custom LESS functions (defined via $wgResourceLoaderLESSFunctions or
1036 in extension.json) have been removed, after being deprecated in 1.24.
1037 * $wgAlwaysUseTidy has been removed.
1038 * ResetSessionID hook has been removed. Nothing seems to use it.
1039 * Certain AuthPlugin methods are deprecated in favor of new hooks:
1040 ** AuthPlugin::initUser() is replaced by LocalUserCreated.
1041 ** AuthPlugin::updateUser() is replaced by UserLoggedIn.
1042 ** AuthPlugin::updateExternalDB() is replaced by the existing UserSaveSettings.
1043 ** AuthPlugin::updateExternalDBGroups() is replaced by UserGroupsChanged.
1044 ** AuthPluginUser::isHidden() is replaced by UserIsHidden.
1045 ** AuthPluginUser::isLocked() is replaced by UserIsLocked.
1046 * The UserRights hook is deprecated in favor of the new UserGroupsChanged hook.
1047 * AuthPlugin::initUser() and AuthPlugin::updateUser() should no longer replace
1048 the passed User object.
1049 * $wgBlockAllowsUTEdit is now set to true by default. This allows
1050 blocked users to edit their talk pages unless explicitly disabled
1051 when they are being blocked.
1052
1053 === New features in 1.26 ===
1054 * (T51506) Now action=info gives estimates of actual watchers for a page.
1055 See $wgRCMaxAge, $wgWatchersMaxAge and $wgUnwatchedPageSecret
1056 to learn how to configure if needed.
1057 * Change tags can now be hidden in the interface by disabling the associated
1058 "tag-<id>" interface message.
1059 * ':' (colon) is now invalid in usernames for new accounts. Existing accounts
1060 are not affected.
1061 * Added a new hook, 'LogException', to log exceptions in nonstandard ways.
1062 * Revive the 'SpecialSearchResultsAppend' hook which occurs after the list of
1063 search results are rendered. The initial use case is to append a "give us
1064 feedback" link beneath the search results.
1065 * Added a new hook, 'RejectParserCacheValue', which allows extensions to
1066 reject an otherwise-successful parser cache lookup. The intent is to allow
1067 extensions to manage the eviction of archaic HTML output from the cache.
1068 * (T68699) The expiration of the UserID and Token login cookies
1069 ($wgExtendedLoginCookieExpiration) can be configured independently of the
1070 expiration of all other cookies ($wgCookieExpiration).
1071 * (T50519) Support for generating JPEG/PNG thumbnails from WebP images added
1072 if ImageMagick is used as image scaler ($wgUseImageMagick = true). Uploading
1073 of WebP images still disabled by default. Add $wgFileExtensions[] =
1074 'webp'; to LocalSettings.php to enable uploading of WebP images.
1075 * Added new hooks 'EnhancedChangesListModifyLineData' &
1076 'EnhancedChangesListModifyBlockLineData', to modify the data used to build
1077 lines in enhanced recentchanges and watchlist.
1078 * Caches that need purging ability now use the WANObjectCache interface.
1079 This corresponds to a new $wgMainWANCache setting, which defaults to using
1080 the $wgMainCacheType settings.
1081 * Callers needing fast light-weight data stores use $wgMainStash to select
1082 the store type from $wgObjectCaches. The default is the local database.
1083 * Interface message overrides in the MediaWiki namespace will now be cached in
1084 memcached and APC (if available), rather than memcached and local files.
1085 * Added a new hook, 'RandomPageQuery', to allow modification of the query used
1086 by Special:Random to select random pages.
1087 * $wgTransactionalTimeLimit was added, which controls the request time limit
1088 for potentially slow POST requests that need to be as atomic as possible.
1089 * ResourceLoader now loads all scripts asynchronously. The top-queue and
1090 startup modules are no longer synchronously loaded.
1091 * 'mediawiki.ui.button' styles are no longer unconditionally loaded on every
1092 page. During the deprecation period, the styles will only be loaded on pages
1093 which contain 'mw-ui-button' in their HTML. Starting in 1.28, the styles will
1094 only be loaded if explicitly required.
1095 * If search returns zero results and current search engine has a "did you mean"
1096 suggestion, results for suggestion will be shown. Can be disabled by setting
1097 $wgSearchRunSuggestedQuery to false.
1098 * Added several JavaScript libraries for uploading files to MediaWiki
1099 from the client-side. See documentation for mw.Upload and its
1100 subclasses for more information.
1101 * Added OOUI dialogs and layout for file upload interfaces. See
1102 documentation for mw.Upload.Dialog, mw.Upload.BookletLayout and its
1103 subclasses for more information.
1104
1105 === extension.json changes in 1.26 ===
1106 * (T99344) The extension.json schema is now versioned. All extensions
1107 and skins should set a "manifest_version" property corresponding to
1108 the schema version they were written for. The only supported version
1109 currently is "1".
1110 * (T102523) The error message if a non-array attribute is set was improved.
1111 * (T107646) Configuration settings can now specify how they should be merged,
1112 which is necessary for arrays using integer keys.
1113 * (T110389) Adding namespaces through extension.json now actually works
1114 * $wgNamespaceProtection can now be set in extension.json.
1115 * $wgCapitalLinkOverrides can now be set in extension.json.
1116 * (T97186) Extensions using a custom prefix for their configuration settings
1117 can now set a "_prefix" key to override the default of "wg".
1118 * (T99084) Extensions can now specify what MediaWiki core versions they
1119 depend upon.
1120 * (T105236) The extension.json schema now validates custom classes in
1121 the "ResourceModules" property properly.
1122
1123 === External library changes in 1.26 ===
1124 ==== Upgraded external libraries ====
1125 * Updated es5-shim from v4.0.0 to v4.1.5.
1126 * Updated json2 from revision 2014-02-04 to 2015-05-03.
1127 * Updated Sinon.JS from 1.10.3 to 1.15.4.
1128 * Updated jQuery Client from v1.0.0 to v2.0.0.
1129 * Updated QUnit from v1.17.1 to v1.18.0.
1130 * Updated liuggio/statsd-php-client from v1.0.12 to v1.0.16.
1131 * Updated oojs/oojs-ui from v0.11.3 to v0.12.12.
1132 * Updated wikimedia/cdb from v1.0.1 to v1.3.0.
1133 * Updated wikimedia/utfnormal from v1.0.2 to v1.0.3.
1134 * Updated wikimedia/composer-merge-plugin from v1.0.0 to v1.3.0.
1135 * Updated zordius/lightncandy from v0.18 to v0.21.
1136
1137 ==== New external libraries ====
1138 * Added composer/semver v1.0.0.
1139 * Added mediawiki/at-ease v1.1.0.
1140 * Added wikimedia/assert v0.2.2.
1141 * Added wikimedia/ip-set v1.0.1.
1142 * Added wikimedia/wrappedstring v2.0.0.
1143
1144 ==== Removed and replaced external libraries ====
1145 * Replaced leafo/lessphp v0.5.0 with oyejorge/less.php v1.7.0.9.
1146
1147 === Bug fixes in 1.26 ===
1148 * (T53283) load.php sometimes sends 304 response without full headers
1149 * (T65198) Talk page tabs now have a "rel=discussion" attribute
1150 * (T98841) {{msgnw:}} now preserves comments even when subst: is not used.
1151 * (T104142) $wgEmergencyContact and $wgPasswordSender now use their default
1152 value if set to an empty string.
1153
1154 === Action API changes in 1.26 ===
1155 * New-style continuation is now the default for action=continue. Clients may
1156 use the 'rawcontinue' parameter to receive raw query-continue data, but the
1157 new style is encouraged as it's harder to implement incorrectly.
1158 * Deprecated API formats dump and wddx have been completely removed.
1159 * API action=query&list=tags: The displayname can now be boolean false if the
1160 tag is meant to be hidden from user interfaces.
1161 * action=import no longer allows both the namespace= and rootpage= parameters
1162 to be set. If they are both set, the value of rootpage= will be ignored.
1163 * prop=revision output in enum mode is now sorted by timestamp rather than
1164 revision ID. This usually won't make any difference.
1165 * (T102645) Namespace list from meta=siteinfo&siprop=namespaces is now an array
1166 with formatversion=2.
1167 * Various other output from meta=siteinfo will now always be arrays instead of
1168 sometimes being numerically-indexed objects with formatversion=2.
1169 * When errors about users being blocked are returned, they now include
1170 information about the relevant block.
1171 * (T99926) list=random has higher limits, in line with other API modules.
1172 * list=random's rnredirect parameter is deprecated in favor of a new
1173 rnfilterredir parameter that also allows for listing both redirects and
1174 non-redirects.
1175 * list=random now supports continuation.
1176 * API responses to GET requests may now include ETag and Last-Modified headers,
1177 and will honor corresponding If-None-Match and If-Modified-Since on such
1178 requests.
1179
1180 === Action API internal changes in 1.26 ===
1181 * New metadata item ApiResult::META_KVP_MERGE to allow for merging the KVP key
1182 into the value when the value is an assoc.
1183 * API action modules may now provide values for the RFC 7232 ETag and
1184 Last-Modified headers. The API will check these against If-None-Match and
1185 If-Modified-Since request headers on GET requests and avoid executing the
1186 module when appropriate.
1187
1188 === Languages updated in 1.26 ===
1189
1190 MediaWiki supports over 350 languages. Many localisations are updated
1191 regularly. Below only new and removed languages are listed, as well as
1192 changes to languages because of Phabricator reports.
1193
1194 * Languages added:
1195 ** ase (American sign language), thanks to translator Icemandeaf
1196 ** dty (डोटेली/Doteli), thanks to translators जनक राज भट्ट, बिप्लब आनन्द,
1197 मेश सिंह बोहरा, and राम प्रसाद जोशी
1198 ** luz (لئری دوٙمینی / Southern Luri)
1199 ** olo (Livvinкarjala / Livvi-Karelian), thanks to translators Denö, Hiloin Natoi,
1200 Ilja.mos, and Mashoi7
1201
1202 === Other changes in 1.26 ===
1203 * ChangeTags::tagDescription() will return false if the interface message
1204 for the tag is disabled.
1205 * Added PageHistoryPager::doBatchLookups hook.
1206 * Added $wikiId parameter to FormatAutocomments hook.
1207 * Added ParserCacheSaveComplete to ParserCache
1208 * supportsDirectEditing and supportsDirectApiEditing methods added to
1209 ContentHandler, to provide a way for ApiEditPage and EditPage to check
1210 if direct editing of content is allowed. These methods return false,
1211 by default for the ContentHandler base class and true for TextContentHandler
1212 and it's derivative classes (everything in core). For Content types that
1213 do not support direct editing, an alternative mechanism should be provided
1214 for editing, such as action overrides or specific api modules.
1215 * mediaWiki.confirmCloseWindow now returns an object of functions, instead of
1216 one function. The callback can't be called directly any more. The callback
1217 function is replaced with confirmCloseWindow.release().
1218 * BREAKING CHANGE: Added an optional ResouceLoaderContext parameter to
1219 ResourceLoaderModule::getDependencies(). Extension classes that override that
1220 method should be updated. If they aren't updated, PHP Strict standards
1221 warnings will appear when E_STRICT error reporting is enabled. Note: in the
1222 near future, this parameter will probably become non-optional.
1223 * Removed maintenance script deleteImageMemcached.php.
1224 * MWFunction::newObj() was removed (deprecated in 1.25).
1225 ObjectFactory::getObjectFromSpec() should be used instead.
1226 * The parser will no longer randomize the string it uses to mark the place of
1227 items that were stripped during parsing. It will use a fixed string instead.
1228 This causes the parser to re-use the regular expressions it uses to search
1229 and replace markers rather than generate novel expressions on each parse.
1230 Re-using regular expressions will improve performance on HHVM and the
1231 forthcoming PHP 7. The interfaces changes accompanying this change are:
1232 - Parser::getRandomString() and Parser::uniqPrefix() have been deprecated.
1233 - The $uniq_prefix argument for Parser::extractTagsAndParams() and the
1234 $prefix argument for StripState::_construct() are deprecated and their
1235 value is ignored.
1236 * wfSuppressWarnings() and wfRestoreWarnings() were split into a separate library,
1237 mediawiki/at-ease, and are now deprecated. Callers should use
1238 MediaWiki\suppressWarnings() and MediaWiki\restoreWarnings() directly.
1239 * The Block class constructor now takes an associative array of parameters
1240 instead of many optional positional arguments. Calling the constructor the old
1241 way will issue a deprecation warning.
1242 * The jquery.mwExtension module was deprecated.
1243 * $wgSpecialPageGroups was removed (deprecated in 1.21).
1244 * SpecialPageFactory::setGroup was removed (deprecated in 1.21).
1245 * SpecialPageFactory::getGroup was removed (deprecated in 1.21).
1246 * DatabaseBase::ignoreErrors() is now protected.
1247 * BREAKING CHANGE: mediawiki.legacy.ajax has been removed, following
1248 a lengthy deprecation period.
1249 * The ScopedPHPTimeout class was removed.
1250 * Removed maintenance script fixSlaveDesync.php.
1251 * Watchlist tokens, SpecialResetTokens, and User::getTokenFromOption()
1252 are deprecated. Applications using those can work via the OAuth
1253 extension instead. New tokens types should not be added.
1254 * DatabaseBase::errorCount() was removed (unused).
1255 * $wgDeferredUpdateList was removed.
1256 * DeferredUpdates::addHTMLCacheUpdate() was removed.
1257
1258 = MediaWiki 1.25 =
1259
1260 == MediaWiki 1.25.6 ==
1261
1262 This is a maintenance release of the MediaWiki 1.25 branch.
1263
1264 === Changes since 1.25.5 ===
1265 * (T123166) Fix fatal error when importing pages to titles which cannot be
1266 created, such as invalid titles or titles the user is not allowed to edit.
1267 * (T122056) Old tokens are remaining valid within a new session
1268 * (T127114) Login throttle can be tricked using non-canonicalized usernames
1269 * (T123653) Cross-domain policy regexp is too narrow
1270 * (T123071) Incorrectly identifying http link in a's href attributes, due to
1271 m modifier in regex
1272 * (T129506) MediaWiki:Gadget-popups.js isn't renderable
1273 * (T125283) Users occasionally logged in as different users after
1274 SessionManager deployment
1275 * (T103239) Patrol allows click catching and patrolling of any page
1276 * (T122807) [tracking] Check php crypto primatives
1277 * (T98313) Graphs can leak tokens, leading to CSRF
1278 * (T130947) Diff generation should use PoolCounter
1279 * (T133507) Careless use of $wgExternalLinkTarget is insecure
1280 * (T132874) API action=move is not rate limited
1281 * (T110143) strip markers can be used to get around html attribute escaping in
1282 (many?) parser tags
1283 * (T116030) Increase pbkdf2 parameter strengths
1284 * (T127420) Pbkdf2Password does not check if hash_pbkdf2() succeeded
1285 * (T126685) Globally throttle password attempts
1286
1287 == MediaWiki 1.25.5 ==
1288
1289 This is a maintenance release of the MediaWiki 1.25 branch.
1290
1291 === Changes since 1.25.4 ===
1292 * (T121892) Fix fatal error on some Special pages, introduced in 1.25.4.
1293
1294 == MediaWiki 1.25.4 ==
1295
1296 This is a security and maintenance release of the MediaWiki 1.25 branch.
1297
1298 === Changes since 1.25.3 ===
1299 * (T117899) SECURITY: $wgArticlePath can no longer be set to relative paths
1300 that do not begin with a slash. This enabled trivial XSS attacks.
1301 Configuration values such as "http://my.wiki.com/wiki/$1" are fine, as are
1302 "/wiki/$1". A value such as "$1" or "wiki/$1" is not and will now throw an
1303 error.
1304 * (T119309) SECURITY: Use hash_compare() for edit token comparison
1305 * (T118032) SECURITY: Don't allow cURL to interpret POST parameters starting
1306 with '@' as file uploads
1307 * (T115522) SECURITY: Passwords generated by User::randomPassword() can no
1308 longer be shorter than $wgMinimalPasswordLength
1309 * (T97897) SECURITY: Improve IP parsing and trimming. Previous behavior could
1310 result in improper blocks being issued
1311 * (T109724) SECURITY: Special:MyPage, Special:MyTalk, Special:MyContributions
1312 and related pages no longer use HTTP redirects and are now redirected by
1313 MediaWiki
1314 * (T103237) $wgUseGzip had no effect when using file cache.
1315 * (T114606) mw.notify was not correctly fixed to the page if
1316 initialized while not at the top of the page.
1317 * Fix issue that breaks HHVM Repo Authorative mode.
1318
1319 == MediaWiki 1.25.3 ==
1320
1321 This is a security and maintenance release of the MediaWiki 1.25 branch.
1322
1323 === Changes since 1.25.2 ===
1324
1325 * (T98975) Fix having multiple callbacks for a single hook.
1326 * (T107632) maintenance/refreshLinks.php did not always remove all links
1327 pointing to nonexistent pages.
1328 * (T104142) $wgEmergencyContact and $wgPasswordSender now use their default
1329 value if set to an empty string.
1330 * (T62174) Provide fallbacks for use of mb_convert_encoding() in
1331 HtmlFormatter. It was causing an error when accessing the api help page
1332 if the mbstring PHP extension was not installed.
1333 * (T105896) Confirmation emails would sometimes contain invalid codes.
1334 * (T105597) Fixed edit stash inclusion queries.
1335 * (T91850) SECURITY: Add throttle check in ApiUpload and SpecialUpload
1336 * (T91203, T91205) SECURITY: API: Improve validation in chunked uploading
1337 * (T95589) SECURITY: RevDel: Check all revisions for suppression, not just the
1338 first
1339 * (T108616) SECURITY: Avoid exposure of local path in PNG thumbnails
1340
1341 == MediaWiki 1.25.2 ==
1342
1343 This is a security and maintenance release of the MediaWiki 1.25 branch.
1344
1345 === Changes since 1.25.1 ===
1346
1347 * (T94116) SECURITY: Compare API watchlist token in constant time
1348 * (T97391) SECURITY: Escape error message strings in thumb.php
1349 * (T106893) SECURITY: Don't leak autoblocked IP addresses on
1350 Special:DeletedContributions
1351 * (T102562) Fix InstantCommons parameters to handle the new HTTPS-only
1352 policy of Wikimedia Commons.
1353 * (T100767) Setting a configuration setting for skin or extension to
1354 false in LocalSettings.php was not working.
1355 * (T100635) API action=opensearch json output no longer breaks when
1356 $wgDebugToolbar is enabled.
1357 * (T102522) Using an extension.json or skin.json file which has
1358 a "manifest_version" property for 1.26 compatability will no longer
1359 trigger warnings.
1360 * (T86156) Running updateSearchIndex.php will not throw an error as
1361 page_restrictions has been added to the locked table list.
1362 * Special:Version would throw notices if using SVN due to an incorrectly
1363 named variable. Add an additional check that an index is defined.
1364
1365 == MediaWiki 1.25.1 ==
1366
1367 This is a bug fix release of the MediaWiki 1.25 branch.
1368
1369 === Changes since 1.25 ===
1370 * (T100351) Fix syntax errors in extension.json of ConfirmEdit extension
1371
1372 == MediaWiki 1.25.0 ==
1373
1374 === Configuration changes in 1.25 ===
1375 * $wgPageShowWatchingUsers was removed.
1376 * $wgLocalVirtualHosts has been added to replace $wgConf->localVHosts.
1377 * $wgAntiLockFlags was removed.
1378 * $wgJavaScriptTestConfig was removed.
1379 * Edit tokens returned from User::getEditToken may change on every call. Token
1380 validity must be checked by passing the user-supplied token to
1381 User::matchEditToken rather than by testing for equality with a
1382 newly-generated token.
1383 * (T74951) The UserGetLanguageObject hook may be passed any IContextSource
1384 for its $context parameter. Formerly it was documented as receiving a
1385 RequestContext specifically.
1386 * Profiling was restructured and $wgProfiler now requires an 'output' parameter.
1387 See StartProfiler.sample for details.
1388 * $wgMangleFlashPolicy was added to make MediaWiki's mangling of anything that
1389 might be a flash policy directive configurable.
1390 * ApiOpenSearch now supports XML output. The OpenSearchXml extension should no
1391 longer be used. If extracts and page images are desired, the TextExtracts and
1392 PageImages extensions are required.
1393 * $wgOpenSearchTemplate is deprecated in favor of $wgOpenSearchTemplates.
1394 * Edits are now prepared via AJAX as users type edit summaries. This behavior
1395 can be disabled via $wgAjaxEditStash.
1396 * (T46740) The temporary option $wgIncludejQueryMigrate was removed, along
1397 with the jQuery Migrate library, as indicated when this option was provided in
1398 MediaWiki 1.24.
1399 * ProfilerStandard and ProfilerSimpleTrace were removed. Make sure that any
1400 StartProfiler.php config is updated to reflect this. Xhprof is available
1401 for zend/hhvm. Also, for hhvm, one can consider using its xenon profiler.
1402 * Default value of $wgSVGConverters['rsvg'] now uses the 'rsvg-convert' binary
1403 rather than 'rsvg'.
1404 * Default value of $wgSVGConverters['ImageMagick'] now uses transparent
1405 background with white fallback color, rather than just white background.
1406 * MediaWikiBagOStuff class removed, make sure any object cache config
1407 uses SqlBagOStuff instead.
1408 * The 'daemonized' flag must be set to true in $wgJobTypeConf for any redis
1409 job queues. This means that mediawiki/services/jobrunner service has to
1410 be installed and running for any such queues to work.
1411 * $wgAutopromoteOnce no longer supports the 'view' event. For keeping some
1412 compatibility, any 'view' event triggers will still trigger on 'edit'.
1413 * $wgExtensionDirectory was added for when your extensions directory is somewhere
1414 other than $IP/extensions (as $wgStyleDirectory does with the skins directory).
1415
1416 === New features in 1.25 ===
1417 * (T64861) Updated plural rules to CLDR 26. Includes incompatible changes
1418 for plural forms in Russian, Prussian, Tagalog, Manx and several languages
1419 that fall back to Russian.
1420 * (T60139) ResourceLoaderFileModule now supports language fallback
1421 for 'languageScripts'.
1422 * Added a new hook, "ContentAlterParserOutput", to allow extensions to modify the
1423 parser output for a content object before links update.
1424 * (T37785) Enhanced recent changes and extended watchlist are now default.
1425 Documentation: https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Enhanced_recent_changes
1426 and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgDefaultUserOptions.
1427 * (T69341) SVG images will no longer be base64-encoded when being embedded
1428 in CSS. This results in slight size increase before gzip compression (due to
1429 percent-encoding), but up to 20% decrease after it.
1430 * Update jStorage to v0.4.12.
1431 * MediaWiki now natively supports page status indicators: icons (or short text
1432 snippets) usually displayed in the top-right corner of the page. They have
1433 been in use on Wikipedia for a long time, implemented using templates and CSS
1434 absolute positioning.
1435 - Basic wikitext syntax: <indicator name="foo">[[File:Foo.svg|20px]]</indicator>
1436 - Usage instructions: https://www.mediawiki.org/wiki/Help:Page_status_indicators
1437 - Adjusting custom skins to support indicators:
1438 https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Skinning#Page_status_indicators
1439 * Edit tokens may now be time-limited: passing a maximum age to
1440 User::matchEditToken will reject any older tokens.
1441 * The debug logging internals have been overhauled, and are now using the
1442 PSR-3 interfaces.
1443 * Update CSSJanus to v1.1.1.
1444 * Update lessphp to v0.5.0.
1445 * Added a hook, "ApiOpenSearchSuggest", to allow extensions to provide extracts
1446 and images for ApiOpenSearch output. The semantics are identical to the
1447 "OpenSearchXml" hook provided by the OpenSearchXml extension.
1448 * PrefixSearchBackend hook now has an $offset parameter. Combined with $limit,
1449 this allows for pagination of prefix results. Extensions using this hook
1450 should implement supporting behavior. Not doing so can result in undefined
1451 behavior from API clients trying to continue through prefix results.
1452 * Update jQuery from v1.11.1 to v1.11.3.
1453 * External libraries installed via composer will now be displayed
1454 on Special:Version in their own section. Extensions or skins that are
1455 installed via composer will not be shown in this section as it is assumed
1456 they will add the proper credits to the skins or extensions section. They
1457 can also be accessed through the API via the new siprop=libraries to
1458 ApiQuerySiteInfo.
1459 * Update QUnit from v1.14.0 to v1.16.0.
1460 * Update Moment.js from v2.8.3 to v2.8.4.
1461 * Special:Tags now allows for manipulating the list of user-modifiable change
1462 tags.
1463 * Added 'managetags' user right and 'ChangeTagCanCreate', 'ChangeTagCanDelete',
1464 and 'ChangeTagCanCreate' hooks to allow for managing user-modifiable change
1465 tags.
1466 * Added 'ChangeTagsListActive' hook, to separate the concepts of "defined" and
1467 "active" formerly conflated by the 'ListDefinedTags' hook.
1468 * Added TemplateParser class that provides a server-side interface to cachable
1469 dynamically-compiled Mustache templates (currently uses lightncandy library).
1470 * Clickable anchors for each section heading in the content are now generated
1471 and appear in the gutter on hovering over the heading.
1472 * Added 'CategoryViewer::doCategoryQuery' and 'CategoryViewer::generateLink' hooks
1473 to allow extensions to override how links to pages are rendered within NS_CATEGORY
1474 * (T19665) Special:WantedPages only lists page which having at least one red link
1475 pointing to it.
1476 * New hooks 'ApiMain::moduleManager' and 'ApiQuery::moduleManager', can be
1477 used for conditional registration of API modules.
1478 * New hook 'EnhancedChangesList::getLogText' to alter, remove or add to the
1479 links of a group of changes in EnhancedChangesList.
1480 * A full interface for StatsD metric reporting has been added to the context
1481 interface, reachable via IContextSource::getStats().
1482 * Move the jQuery Client library from being mastered in MediaWiki as v0.1.0 to a
1483 proper, published library, which is now tagged as v1.0.0.
1484 * A new message (defaulting to blank), 'editnotice-notext', can be shown to users
1485 when they are editing if no edit notices apply to the page being edited.
1486 * (T94536) You can now make the sitenotice appear to logged-in users only by
1487 editing MediaWiki:Anonnotice and replacing its content with "". Setting it to
1488 "-" (default) will continue disable it and fallback to MediaWiki:Sitenotice.
1489 * Modifying the tagging of a revision or log entry is now available via
1490 Special:EditTags, generally accessed via the revision-deletion-like interface
1491 on history pages and Special:Log is likely to be more useful.
1492 * Added 'applychangetags' and 'changetags' user rights.
1493 * (T35235) LogFormatter subclasses are now responsible for formatting the
1494 parameters for API log event output. Extensions should implement the new
1495 getParametersForApi() method in their log formatters.
1496
1497 ==== External libraries ====
1498 * MediaWiki now requires certain external libraries to be installed. In the past
1499 these were bundled inside the Git repository of MediaWiki core, but now they
1500 need to be installed separately. For users using the tarball, this will be taken
1501 care of and no action will be required. Users using Git will either need to use
1502 composer to fetch dependencies or use the mediawiki/vendor repository which includes
1503 all dependencies for MediaWiki core and ones used in Wikimedia deployment. Detailed
1504 instructions can be found at:
1505 https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries
1506 * The following libraries are now required:
1507 ** psr/log
1508 This library provides the interfaces set by the PSR-3 standard (http://www.php-fig.org/psr/psr-3/)
1509 which are used by MediaWiki internally via the
1510 MediaWiki\Logger\LoggerFactory class.
1511 See the structured logging RfC (https://www.mediawiki.org/wiki/Special:MyLanguage/Requests_for_comment/Structured_logging)
1512 for more background information.
1513 ** cssjanus/cssjanus
1514 This library was formerly bundled with MediaWiki core and has been removed.
1515 It automatically flips CSS for RTL support.
1516 ** leafo/lessphp
1517 This library was formerly bundled with MediaWiki core and has been removed.
1518 It compiles LESS files into CSS.
1519 ** wikimedia/cdb
1520 This library was formerly a part of MediaWiki core, and has been moved into a separate library.
1521 It provides CDB functions which are used in the Interwiki and Localization caches.
1522 More information about the library can be found at https://www.mediawiki.org/wiki/Special:MyLanguage/CDB.
1523 ** liuggio/statsd-php-client
1524 This library provides a StatsD client API for logging application metrics to a remote server.
1525
1526 === Bug fixes in 1.25 ===
1527 * (T73003) No additional code will be generated to try to load CSS-embedded
1528 SVG images in Internet Explorer 6 and 7, as they don't support them anyway.
1529 * (T69021) On Special:BookSources, corrected validation of ISBNs (both
1530 10- and 13-digit forms) containing "X".
1531 * Page moving was refactored into a MovePage class. As part of that:
1532 ** The AbortMove hook was removed.
1533 ** MovePageIsValidMove is for extensions to specify whether a page
1534 cannot be moved for technical reasons, and should not be overridden.
1535 ** MovePageCheckPermissions is for checking whether the given user is
1536 allowed to make the move.
1537 ** Title::moveNoAuth() was deprecated. Use the MovePage class instead.
1538 ** Title::moveTo() was deprecated. Use the MovePage class instead.
1539 ** Title::isValidMoveOperation() broken down into MovePage::isValidMove()
1540 and MovePage::checkPermissions().
1541 * (T18530) Multiple autocomments are now formatted in an edit summary.
1542 * (T70361) Autocomments containing "/*" are parsed correctly.
1543 * The Special:WhatLinksHere page linked from 'Number of redirects to this page'
1544 on action=info about a file page does not list file links anymore.
1545 * (T78637) Search bar is not autofocused unless it is empty so that proper scrolling using arrow keys is possible.
1546 * (T50853) Database::makeList() modified to handle 'NULL' separately when building IN clause
1547 * (T85192) Captcha position modified in Usercreate template. As a result:
1548 ** extrafields parameter added to Usercreate.php to insert additional data
1549 ** 'extend' method added to QuickTemplate to append additional values to any field of data array
1550 * (T86974) Several Title methods now load from the database when necessary
1551 (instead of returning incorrect results) even when the page ID is known.
1552 * (T74070) Duplicate search for archived files on file upload now omits the extension.
1553 This requires the fa_sha1 field being populated.
1554 * Removed rel="archives" from the "View history" link, as it did not pass
1555 HTML validation.
1556 * $wgUseTidy is now set when parserTests are run with the tidy option to match
1557 output on wiki.
1558 * (T37472) update.php will purge ResourceLoader cache unless --nopurge is passed to it.
1559 * (T72109) mediawiki.language should respect $wgTranslateNumerals in convertNumber().
1560
1561 === Action API changes in 1.25 ===
1562 * (T67403) XML tag highlighting is now only performed for formats
1563 "xmlfm" and "wddxfm".
1564 * action=paraminfo supports generalized submodules (modules=query+value),
1565 querymodules and formatmodules are deprecated
1566 * action=paraminfo no longer outputs descriptions and other help text by
1567 default. If needed, it may be requested using the new 'helpformat' parameter.
1568 * action=help has been completely rewritten, and outputs help in HTML
1569 rather than plain text.
1570 * Hitting api.php without specifying an action now displays only the help for
1571 the main module, with links to submodule help.
1572 * API help is no longer displayed on errors.
1573 * 'uselang' is now a recognized API parameter; "uselang=user" may be used to
1574 explicitly select the language from the current user's preferences, and
1575 "uselang=content" may be used to select the wiki's content language.
1576 * Default output format for the API is now jsonfm.
1577 * Simplified continuation will return a "batchcomplete" property in the result
1578 when a batch of pages is complete.
1579 * Pretty-printed HTML output now has nicer formatting and (if available)
1580 better syntax highlighting.
1581 * Deprecated list=deletedrevs in favor of newly-added prop=deletedrevisions and
1582 list=alldeletedrevisions.
1583 * prop=revisions will gracefully continue when given too many revids or titles,
1584 rather than just ignoring the extras.
1585 * prop=revisions will no longer die if rvcontentformat doesn't match a
1586 revision's content model; it will instead warn and omit the content.
1587 * If the user has the 'deletedhistory' right, action=query's revids parameter
1588 will now recognize deleted revids.
1589 * prop=revisions may be used as a generator, generating revids.
1590 * (T68776) format=json results will no longer be corrupted when
1591 $wgMangleFlashPolicy is in effect. format=php results will cleanly return an
1592 error instead of returning invalid serialized data.
1593 * Generators may now return data for the generated pages when used with
1594 action=query.
1595 * Query page data for generator=search and generator=prefixsearch will now
1596 include an "index" field, which may be used by the client for sorting the
1597 search results.
1598 * ApiOpenSearch now supports XML output.
1599 * ApiOpenSearch will now output descriptions and URLs as array indexes 2 and 3
1600 in JSON format.
1601 * (T76051) list=tags will now continue correctly.
1602 * (T76052) list=tags can now indicate whether a tag is defined.
1603 * (T75522) list=prefixsearch now supports continuation
1604 * (T78737) action=expandtemplates can now return page properties.
1605 * (T78690) list=allimages now accepts multiple pipe-separated values
1606 for the 'aimime' parameter.
1607 * prop=info with inprop=protections will now return applicable protection types
1608 with the 'restrictiontypes' key.
1609 * (T85417) When resolving redirects, ApiPageSet will now add the targets of
1610 interwiki redirects to the list of interwiki titles.
1611 * (T85417) When outputting the list of redirect titles, a 'tointerwiki'
1612 property (like the existing 'tofragment' property) will be set.
1613 * Added action=managetags to allow for managing the list of
1614 user-modifiable change tags. Actually modifying the tagging of a revision or
1615 log entry is not implemented yet.
1616 * list=tags has additional properties to indicate 'active' status and tag
1617 sources.
1618 * siprop=libraries was added to ApiQuerySiteInfo to list installed external libraries.
1619 * (T88010) Added action=checktoken, to test a CSRF token's validity.
1620 * (T88010) Added intestactions to prop=info, to allow querying of
1621 Title::userCan() via the API.
1622 * Default type param for query list=watchlist and list=recentchanges has
1623 been changed from all types (e.g. including 'external') to 'edit|new|log'.
1624 * Added formatversion to format=json. Still "experimental" as further changes
1625 to the output formatting might still be made.
1626 * (T73020) Log event details are now always under a 'params' subkey for
1627 list=logevents, and a 'logparams' subkey for list=watchlist and
1628 list=recentchanges.
1629 * Log event details are changing formatting:
1630 * block events now report flags as an array rather than as a comma-separated
1631 list.
1632 * patrol events now report the 'auto' flag as a boolean (absent/empty string
1633 for BC formats) rather than as an integer.
1634 * rights events now report the old and new group lists as arrays rather than
1635 as comma-separated lists.
1636 * merge events use new-style formatting.
1637 * delete/event and delete/revision events use new-style formatting.
1638 * The root node and various other nodes will now always be an object in formats
1639 such as json that distinguish between arrays and objects.
1640 * Except for action=opensearch where the spec requires an array.
1641
1642 === Action API internal changes in 1.25 ===
1643 * ApiHelp has been rewritten to support i18n and paginated HTML output.
1644 Most existing modules should continue working without changes, but should do
1645 the following:
1646 * Add an i18n message "apihelp-{$moduleName}-description" to replace getDescription().
1647 * Add i18n messages "apihelp-{$moduleName}-param-{$param}" for each parameter
1648 to replace getParamDescription(). If necessary, the settings array returned
1649 by getParams() can use the new ApiBase::PARAM_HELP_MSG key to override the
1650 message.
1651 * Implement getExamplesMessages() to replace getExamples().
1652 * Modules with submodules (like action=query) must have their submodules
1653 override ApiBase::getParent() to return the correct parent object.
1654 * The 'APIGetDescription' and 'APIGetParamDescription' hooks are deprecated,
1655 and will have no effect for modules using i18n messages. Use
1656 'APIGetDescriptionMessages' and 'APIGetParamDescriptionMessages' instead.
1657 * Api formatters will no longer be asked to display the help screen on errors.
1658 * ApiMain::getCredits() was removed. The credits are available in the
1659 'api-credits' i18n message.
1660 * ApiFormatBase has been changed to support i18n and syntax highlighting via
1661 extensions with the new 'ApiFormatHighlight' hook. Core syntax highlighting
1662 has been removed.
1663 * ApiFormatBase now always buffers. Output is done when
1664 ApiFormatBase::closePrinter is called.
1665 * Much of the logic in ApiQueryRevisions has been split into ApiQueryRevisionsBase.
1666 * The 'revids' parameter supplied by ApiPageSet will now count deleted
1667 revisions as "good" if the user has the 'deletedhistory' right. New methods
1668 ApiPageSet::getLiveRevisionIDs() and ApiPageSet::getDeletedRevisionIDs() are
1669 provided to access just the live or just the deleted revids.
1670 * Added ApiPageSet::setGeneratorData() and ApiPageSet::populateGeneratorData()
1671 to allow generators to include data in the action=query result.
1672 * New hooks 'ApiMain::moduleManager' and 'ApiQuery::moduleManager', can be
1673 used for conditional registration of API modules.
1674 * Added ApiBase::lacksSameOriginSecurity() to allow modules to easily check if
1675 the current request was sent with the 'callback' parameter (or any future
1676 method that breaks the same-origin policy).
1677 * Profiling methods in ApiBase are deprecated and no longer need to be called.
1678 * ApiResult was greatly overhauled. See inline documentation for details.
1679 * ApiResult will automatically convert objects to strings or arrays (depending
1680 on whether a __toString() method exists on the object), and will refuse to
1681 add unsupported value types.
1682 * An informal interface, ApiSerializable, exists to override the default
1683 object conversion.
1684 * ApiResult/ApiFormatBase "raw mode" is deprecated.
1685 * ApiFormatXml now assumes defaults and so on instead of throwing errors when
1686 metadata isn't set.
1687 * (T35235) LogFormatter subclasses are now responsible for formatting log event
1688 parameters for the API.
1689 * Many modules have changed result data formats. While this shouldn't affect
1690 clients not using the experimental formatversion=2, code using
1691 ApiResult::getResultData() without the transformations for backwards
1692 compatibility may need updating, as will code that wasn't following the old
1693 conventions for API boolean output.
1694 * The following methods have been deprecated and may be removed in a future
1695 release:
1696 * ApiBase::getDescription
1697 * ApiBase::getParamDescription
1698 * ApiBase::getExamples
1699 * ApiBase::makeHelpMsg
1700 * ApiBase::makeHelpArrayToString
1701 * ApiBase::makeHelpMsgParameters
1702 * ApiBase::getModuleProfileName
1703 * ApiBase::profileIn
1704 * ApiBase::profileOut
1705 * ApiBase::safeProfileOut
1706 * ApiBase::getProfileTime
1707 * ApiBase::profileDBIn
1708 * ApiBase::profileDBOut
1709 * ApiBase::getProfileDBTime
1710 * ApiBase::getResultData
1711 * ApiFormatBase::setUnescapeAmps
1712 * ApiFormatBase::getWantsHelp
1713 * ApiFormatBase::setHelp
1714 * ApiFormatBase::formatHTML
1715 * ApiFormatBase::setBufferResult
1716 * ApiFormatBase::getDescription
1717 * ApiFormatBase::getNeedsRawData
1718 * ApiMain::setHelp
1719 * ApiMain::reallyMakeHelpMsg
1720 * ApiMain::makeHelpMsgHeader
1721 * ApiResult::setRawMode
1722 * ApiResult::getIsRawMode
1723 * ApiResult::getData
1724 * ApiResult::setElement
1725 * ApiResult::setContent
1726 * ApiResult::setIndexedTagName_recursive
1727 * ApiResult::setIndexedTagName_internal
1728 * ApiResult::setParsedLimit
1729 * ApiResult::beginContinuation
1730 * ApiResult::setContinueParam
1731 * ApiResult::setGeneratorContinueParam
1732 * ApiResult::endContinuation
1733 * ApiResult::size
1734 * ApiResult::convertStatusToArray
1735 * ApiQueryImageInfo::getPropertyDescriptions
1736 * ApiQueryLogEvents::addLogParams
1737 * The following classes have been deprecated and may be removed in a future
1738 release:
1739 * ApiQueryDeletedrevs
1740
1741 === Languages updated in 1.25 ===
1742
1743 MediaWiki supports over 350 languages. Many localisations are updated
1744 regularly. Below only new and removed languages are listed, as well as
1745 changes to languages because of Bugzilla reports.
1746
1747 * Languages added:
1748 ** awa (अवधी / Awadhi), thanks to translator 1AnuraagPandey;
1749 ** bgn (بلوچی رخشانی / Western Balochi), thanks to translators
1750 Baloch Afghanistan, Ibrahim khashrowdi and Rachitrali;
1751 ** ses (Koyraboro Senni), thanks to translator Songhay.
1752 * (T66440) Kazakh (kk) wikis should no longer forcefully reset the user's
1753 interface language to kk where unexpected.
1754 * The Chinese conversion table was substantially updated to fix a lot of
1755 bugs and ensure better reading experience for different variants.
1756
1757 === Other changes in 1.25 ===
1758 * (T45591) Links to MediaWiki.org translatable help were added to indicators,
1759 mostly in special pages. Local custom target titles can be placed in the
1760 relevant '(namespace-X|action name|special page name)-helppage' system
1761 message. Extensions can use the addHelpLink() function to do the same.
1762 * The skin autodiscovery mechanism, deprecated in MediaWiki 1.23, has been
1763 removed. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for
1764 migration guide for creators and users of custom skins that relied on it.
1765 * Javascript variables 'wgFileCanRotate' and 'wgFileExtensions' now only
1766 available on Special:Upload.
1767 * (T58257) Set site logo from mediawiki.skinning.interface module instead of
1768 inline styles in the HTML.
1769 * Removed ApiQueryUsers::getAutoGroups(). (deprecated since 1.20)
1770 * Removed XmlDumpWriter::schemaVersion(). (deprecated since 1.20)
1771 * Removed LogEventsList::getDisplayTitle(). (deprecated since 1.20)
1772 * Removed Preferences::trySetUserEmail(). (deprecated since 1.20)
1773 * Removed mw.user.name() and mw.user.anonymous() methods. (deprecated since 1.20)
1774 * Removed 'ok' and 'err' parameters in the mediawiki.api modules. (deprecated
1775 since 1.20)
1776 * Removed 'async' parameter from the mw.Api#getCategories() method. (deprecated
1777 since 1.20)
1778 * Removed 'jquery.json' module. (deprecated since 1.24)
1779 Use the 'json' module and global JSON object instead.
1780 * Deprecated OutputPage::readOnlyPage() and OutputPage::rateLimited().
1781 Also, the former will now throw an MWException if called with one or more
1782 arguments.
1783 * Removed hitcounters and associated code.
1784 * The "temp" zone of the upload respository is now considered private. If it
1785 already exists (such as under the images/ directory), please make sure that
1786 the directory is not web readable (e.g. via a .htaccess file).
1787 * BREAKING CHANGE: In the XML dump format used by Special:Export and
1788 dumpBackup.php, the <model> and <format> tags now apprear before the <text>
1789 tag, instead of after the <text> and <sha1> tags.
1790 The new schema version is 0.10, the new schema URI is:
1791 https://www.mediawiki.org/xml/export-0.10.xsd
1792 * MWFunction::call() and MWFunction::callArray() were removed, having being
1793 deprecated in 1.22.
1794 * Deprecated the getInternalLinkAttributes, getInternalLinkAttributesObj,
1795 and getInternalLinkAttributes methods in Linker, and removed
1796 getExternalLinkAttributes method, which was deprecated in MediaWiki 1.18.
1797 * Removed Sites class, which was deprecated in 1.21 and replaced by SiteSQLStore.
1798 * Added wgRelevantArticleId to the client-side config, for use on special pages.
1799 * Deprecated the TitleIsCssOrJsPage hook. Superseded by the
1800 ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
1801 * Deprecated the TitleIsWikitextPage hook. Superseded by the
1802 ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
1803 * Changed parsing of variables in schema (.sql) files:
1804 ** The substituted values are no longer parsed. (Formerly, several passes
1805 were made for each variable, so depending on the order in which variables
1806 were defined, variables might have been found inside encoded values. This
1807 is no longer the case.)
1808 ** Variables are no longer string encoded when the /*$var*/ syntax is used.
1809 If string encoding is necessary, use the '{$var}' syntax instead.
1810 ** Variable names must only consist of one or more of the characters
1811 "A-Za-z0-9_".
1812 ** In source text of the form '{$A}'{$B}' or `{$A}`{$B}`, where variable A
1813 does not exist yet variable B does, the latter may not be replaced.
1814 However, this difference is unlikely to arise in practice.
1815 * (T67278) RFC, PMID, and ISBN "magic links" must be surrounded by non-word
1816 characters on both sides.
1817 * The FormatAutocomments hook will now receive $pre and $post as booleans,
1818 rather than as strings that must be prepended or appended to $comment.
1819 * (T30950, T31025) RFC, PMID, and ISBN "magic links" can no longer contain
1820 newlines; but they can contain &nbsp; and other non-newline whitespace.
1821 * The 'mediawiki.action.edit' ResourceLoader module no longer generates the edit
1822 toolbar, which has been moved to a separate 'mediawiki.toolbar' module. If you
1823 relied on this behavior, update your scripts' dependencies.
1824 * HTMLForm's 'vform' display style has been separated to a subclass. Therefore:
1825 * HTMLForm::isVForm() is now deprecated.
1826 * You can no longer do this:
1827 $form = new HTMLForm( … );
1828 $form->setDisplayFormat( 'vform' ); // throws exception
1829 Instead, do this:
1830 $form = HTMLForm::factory( 'vform', … );
1831 * Deprecated Revision methods getRawUser(), getRawUserText() and getRawComment().
1832 * BREAKING CHANGE: mediawiki.user.generateRandomSessionId:
1833 The alphabet of the prior string returned was A-Za-z0-9 and now it is 0-9A-F
1834 * (T87504) Avoid serving SVG background-images in CSS for Opera 12, which
1835 renders them incorrectly when combined with border-radius or background-size.
1836 * Removed maintenance script dumpSisterSites.php.
1837 * DatabaseBase class constructors must be called using the array argument style.
1838 Ideally, DatabaseBase:factory() should be used instead in most cases.
1839 * Deprecated ParserOutput::addSecondaryDataUpdate and ParserOutput::getSecondaryDataUpdates.
1840 This is a hard deprecation, with getSecondaryDataUpdates returning an empty array and
1841 addSecondaryDataUpdate throwing an exception. These functions will be removed in 1.26,
1842 since they interfere with caching of ParserOutput objects.
1843 * Introduced new hook 'SecondaryDataUpdates' that allows extensions to inject custom updates.
1844 * Introduced new hook 'OpportunisticLinksUpdate' that allows extensions to perform
1845 updates when a page is re-rendered.
1846 * EditPage::attemptSave has been modified not to call handleStatus itself and
1847 instead just returns the Status object. Extension calling it should be aware of
1848 this.
1849 * Removed class DBObject. (unused since 1.10)
1850 * wfDiff() is deprecated.
1851 * The -m (maximum replication lag) option of refreshLinks.php was removed.
1852 It had no effect since MediaWiki 1.18 and should be removed from any cron
1853 jobs or similar scripts you may have set up.
1854 * (T85864) The following messages no longer support raw html: redirectto,
1855 thisisdeleted, viewdeleted, editlink, retrievedfrom, version-poweredby-others,
1856 retrievedfrom, thisisdeleted, viewsourcelink, lastmodifiedat, laggedslavemode,
1857 protect-summary-cascade
1858 * All BloomCache related code has been removed. This was largely experimental.
1859 * $wgResourceModuleSkinStyles no longer supports per-module local or remote paths. They
1860 can only be set for the entire skin.
1861 * Removed global function swap(). (deprecated since 1.24)
1862 * Deprecated the ".php5" file extension entry points and the $wgScriptExtension
1863 configuration variable. Refer to the ".php" files instead. If you want
1864 ".php5" URLs to continue to work, set up redirects. In Apache, this can be
1865 done by enabling mod_rewrite and adding the following rules to your
1866 configuration:
1867
1868 RewriteEngine On
1869 RewriteBase /
1870 RewriteRule ^(.*)\.php5 $1.php [R=301,L]
1871
1872 * The global importScriptURI and importStylesheetURI functions, as well as the
1873 loadedScripts object, from wikibits.js (deprecated since 1.17) now emit
1874 warnings through mw.log.warn when accessed.
1875
1876 = MediaWiki 1.24 =
1877
1878 == MediaWiki 1.24.6 ==
1879
1880 This is a maintenance release of the MediaWiki 1.24 branch.
1881
1882 === Changes since 1.24.5 ===
1883 * (T121892) Fix fatal error on some Special pages, introduced in 1.24.5.
1884
1885 == MediaWiki 1.24.5 ==
1886
1887 This is a security and maintenance release of the MediaWiki 1.23 branch.
1888
1889 === Changes since 1.24.4 ===
1890 * (T117899) SECURITY: $wgArticlePath can no longer be set to relative paths
1891 that do not begin with a slash. This enabled trivial XSS attacks.
1892 Configuration values such as "http://my.wiki.com/wiki/$1" are fine, as are
1893 "/wiki/$1". A value such as "$1" or "wiki/$1" is not and will now throw an
1894 error.
1895 * (T119309) SECURITY: Use hash_compare() for edit token comparison
1896 * (T118032) SECURITY: Don't allow cURL to interpret POST parameters starting
1897 with '@' as file uploads
1898 * (T115522) SECURITY: Passwords generated by User::randomPassword() can no
1899 longer be shorter than $wgMinimalPasswordLength
1900 * (T97897) SECURITY: Improve IP parsing and trimming. Previous behavior could
1901 result in improper blocks being issued
1902 * (T109724) SECURITY: Special:MyPage, Special:MyTalk, Special:MyContributions
1903 and related pages no longer use HTTP redirects and are now redirected by
1904 MediaWiki
1905 * (T103237) $wgUseGzip had no effect when using file cache.
1906
1907 == MediaWiki 1.24.4 ==
1908
1909 This is a security and maintenance release of the MediaWiki 1.24 branch.
1910
1911 === Changes since 1.24.3 ===
1912
1913 * (T91653) Minimal PSR-3 debug logger to support backports from 1.25+.
1914 * (T68650) Fix indexing of moved pages with PostgreSQL. Requires running
1915 update.php to fix.
1916 * (T91850) SECURITY: Add throttle check in ApiUpload and SpecialUpload
1917 * (T91203, T91205) SECURITY: API: Improve validation in chunked uploading
1918 * (T95589) SECURITY: RevDel: Check all revisions for suppression, not just the
1919 first
1920 * (T108616) SECURITY: Avoid exposure of local path in PNG thumbnails
1921
1922 == MediaWiki 1.24.3 ==
1923
1924 This is a security and maintenance release of the MediaWiki 1.24 branch.
1925
1926 === Changes since 1.24.2 ===
1927
1928 * (T94116) SECURITY: Compare API watchlist token in constant time
1929 * (T97391) SECURITY: Escape error message strings in thumb.php
1930 * (T106893) SECURITY: Don't leak autoblocked IP addresses on
1931 Special:DeletedContributions
1932 * Update jQuery from v1.11.2 to v1.11.3.
1933 * (T102562) Fix InstantCommons parameters to handle the new HTTPS-only
1934 policy of Wikimedia Commons.
1935
1936 == MediaWiki 1.24.2 ==
1937
1938 This is a security and maintenance release of the MediaWiki 1.24 branch.
1939
1940 === Changes since 1.24.1 ===
1941
1942 * (T85848, T71210) SECURITY: Don't parse XMP blocks that contain XML entities,
1943 to prevent various DoS attacks.
1944 * (T85848) SECURITY: Don't allow directly calling Xml::isWellFormed, to reduce
1945 likelihood of DoS.
1946 * (T88310) SECURITY: Always expand xml entities when checking SVG's.
1947 * (T73394) SECURITY: Escape > in Html::expandAttributes to prevent XSS.
1948 * (T85855) SECURITY: Don't execute another user's CSS or JS on preview.
1949 * (T64685) SECURITY: Allow setting maximal password length to prevent DoS when
1950 using PBKDF2.
1951 * (T85349, T85850, T86711) SECURITY: Multiple issues fixed in SVG filtering to
1952 prevent XSS and protect viewer's privacy.
1953 * Fix case of SpecialAllPages/SpecialAllMessages in SpecialPageFactory to fix
1954 loading these special pages when $wgAutoloadAttemptLowercase is false.
1955 * (bug T70087) Fix Special:ActiveUsers page for installations using
1956 PostgreSQL.
1957 * (bug T76254) Fix deleting of pages with PostgreSQL. Requires a schema change
1958 and running update.php to fix.
1959
1960 == MediaWiki 1.24.1 ==
1961
1962 This is a security and maintenance release of the MediaWiki 1.24 branch.
1963
1964 === Changes since 1.24.0 ===
1965
1966 * (bug T76686) [SECURITY] thumb.php outputs wikitext message as raw HTML, which
1967 could lead to xss. Permission to edit MediaWiki namespace is required to
1968 exploit this.
1969 * (bug T77028) [SECURITY] Malicious site can bypass CORS restrictions in
1970 $wgCrossSiteAJAXdomains in API calls if it only included an allowed domain as
1971 part of its name.
1972 * (bug T74222) The original patch for T74222 was reverted as unnecessary.
1973 * Fixed a couple of entries in RELEASE-NOTES-1.24.
1974 * (bug T76168) OutputPage: Add accessors for some protected properties.
1975 * (bug T74834) Make 1.24 branch directly installable under PostgreSQL.
1976
1977 == MediaWiki 1.24.0 ==
1978
1979 === Configuration changes in 1.24 ===
1980 * MediaWiki will no longer run if register_globals is enabled. It has been
1981 deprecated for 5 years now, and was removed in PHP 5.4. For more information
1982 about why, see <https://www.mediawiki.org/wiki/register_globals>.
1983 * MediaWiki now requires PHP's iconv extension. openSUSE users may need to
1984 install the php5-iconv package. Users of other systems may need to add
1985 extension=iconv.so to php.ini or recompile PHP without --without-iconv.
1986 * MediaWiki will no longer function if magic quotes are enabled. It has
1987 been deprecated for 5 years now, and was removed in PHP 5.4.
1988 * The server's canonical hostname is available as $wgServerName, which is
1989 exposed in both mw.config and ApiQuerySiteInfo.
1990 * Introduced $wgPagePropsHaveSortkey as a backwards-compatibility switch,
1991 for using the old schema of the page_props table, in case the respective
1992 schema update was not applied.
1993 * $wgSearchEverythingOnlyLoggedIn was removed as the 'searcheverything'
1994 user option was removed. Use $wgNamespacesToBeSearchedDefault instead or
1995 if you used to have $wgDefaultUserOptions['searcheverything'] = 1.
1996 * $wgMasterWaitTimeout has been deprecated.
1997 * $wgDBClusterTimeout has been removed.
1998 * $wgProxyKey has been removed. It is no longer used by MediaWiki core.
1999 Ensure $wgSecretKey is set in LocalSettings.php.
2000 * $wgExtraInterlanguageLinkPrefixes is a new configuration variable that
2001 contains an array of interwiki prefixes that should be treated as language
2002 prefixes (i.e. turned into interlanguage links when $wgInterwikiMagic is set
2003 to true).
2004 * $wgParserTestRemote has been removed.
2005 * $wgCountTotalSearchHits has been removed. If you're concerned about efficiency
2006 of search, you should use something like CirrusSearch instead of built in
2007 search.
2008 * Users in the 'sysop' group have access to Special:MergeHistory by default.
2009 * $wgFileStore was removed after having been deprecated in 1.17. Alternative
2010 configurations are $wgDeletedDirectory and $wgHashedUploadDirectory.
2011 * The deprecated $wgUseCommaCount variable has been removed.
2012 * $wgEnableSorbs and $wgSorbsUrl have been removed.
2013 * The UserCryptPassword and UserComparePassword hooks are no longer called.
2014 Any extensions using them must be updated to use the Password Hashing API.
2015 * $wgCompiledFiles has been removed.
2016 * $wgSortSpecialPages was removed, the listing on Special:SpecialPages is
2017 now always sorted.
2018 * $wgSpecialPages may now use callback functions as an alternative to plain class names.
2019 This allows more control over constructor parameters.
2020 * $wgHTCPMulticastAddress, $wgHTCPMulticastRouting and $wgHTCPPort were removed.
2021 * $wgRC2UDPAddress, $wgRC2UDPInterwikiPrefix, $wgRC2UDPOmitBots, $wgRC2UDPPort
2022 and $wgRC2UDPPrefix have been removed.
2023 * The default password type for MediaWiki has been changed from MD5 to PBKDF2.
2024 Password hashes will automatically be updated as users log in. If necessary, the
2025 old MD5 hashing can be restored by changing $wgPasswordDefault to 'B'. In addition,
2026 there is a maintenance script wrapOldPassword.php that can wrap all passwords in
2027 PBKDF2 (or the hashing algorithm of your choice) if you don't want to wait for your
2028 users to log in.
2029 * $wgImportSources can now either be a regular array, or an associative map
2030 specifying subprojects on the interwiki map of the target wiki, or a mix of
2031 the two. Existing configurations will still work.
2032 * Users must be able to edit through a page's protection to be able to delete it.
2033 * The default thumb size ($wgDefaultUserOptions['thumbsize']) is now 300px, up from
2034 180px. If you have altered the number of entries in $wgThumbLimits for your wiki, you
2035 may need to adjust your default user settings to compensate for the index change.
2036 * $wgDeferredUpdateList is now deprecated, you should use DeferredUpdates::addUpdate()
2037 instead.
2038 * $wgCanonicalLanguageLinks has been removed. Per Google recommendations, we
2039 will not send a rel=canonical pointing to a variant-neutral page, however
2040 we will send rel=alternate.
2041 * $wgResourceLoaderLESSFunctions has been deprecated and will be removed in the future.
2042 * $wgGoToEdit has been removed. Use the SpecialSearchNogomatch hook for similar
2043 functionality.
2044
2045 === New features in 1.24 ===
2046 * Added new hook WatchlistEditorBeforeFormRender, allowing subscribers to
2047 manipulate the list of pages and/or preload lots of data at once.
2048 * Added new argument &$link in hook WatchlistEditorBuildRemoveLine, allowing the
2049 link to the title to be changed.
2050 * Added a new hook, "WhatLinksHereProps", to allow extensions to annotate
2051 WhatLinksHere entries.
2052 * Added a new hook, "ContentGetParserOutput", to customize parser output for
2053 a given content object.
2054 * Deprecated the hook "ShowRawCssJs", use "ContentGetParserOutput" instead.
2055 * HTMLForm's HTMLTextField now supports the 'url' type.
2056 * HTMLForm fields may now be dynamically hidden based on the values of other
2057 fields in the form.
2058 * HTMLForm now supports multiple copies of an input field or set of input
2059 fields, e.g. the form may request "one or more usernames" without having to
2060 have the user enter delimited list of names into a text field.
2061 * Added a new hook, "SidebarBeforeOutput", to allow to edit the structure of
2062 the sidebar just before its display.
2063 * (bug 49156) Added the mediawiki.cookie ResourceLoader module, which wraps
2064 jquery.cookie so that getting/setting a cookie is syntactically and
2065 functionally similar to using the WebRequest::getCookie() and
2066 WebResponse::setcookie() methods.
2067 * (bug 44740) jQuery upgraded from 1.8.3 to 1.11.1. A new configuration option,
2068 $wgIncludejQueryMigrate, also loads the jQuery Migrate hack to let extensions
2069 and gadgets use the long-deprecated functions that were removed in jQuery 1.9.
2070 This option is turned off by default, and will be removed in MediaWiki 1.25.
2071 * (bug 47076) jQuery UI upgraded from 1.8.24 to 1.9.2.
2072 * Changes to content typography (fonts, etc.). See
2073 https://www.mediawiki.org/wiki/Typography_refresh for further information.
2074 * WikitextContent will now render redirects with the expected "redirect"
2075 header, rather than as an ordered list. Code calling Article::viewRedirect
2076 can probably be changed to no longer special-case redirects.
2077 * Header font set to a serif font stack. See
2078 https://www.mediawiki.org/wiki/Typography_refresh for further information.
2079 * (bug 65567) Added a new hook, "BeforeHttpsRedirect", to allow cancellation of
2080 the HTTP to HTTPS redirect due to forceHTTPS cookie, userRequires, etc. This
2081 is only for page views, since this hook doesn't affect UserLogin, OAuth,
2082 CentralAuth, etc. ATTENTION: This hook is likely to be removed soon due to
2083 overall design of the system.
2084 * (bug 17367) It is now possible to add pages to your watchlist from
2085 Special:UnwatchedPages without reloading the special page.
2086 * New methods setVolatile and isVolatile are added to PPFrame, so that
2087 extensions such as Cite.php can mark that their output is volatile and
2088 shouldn't be cached.
2089 * (bug 52817) Advanced search options are now saved on the search page itself,
2090 rather than in a dedicated pane in the preferences panel.
2091 * (bug 44591) The dropdown actions menu (little triangle next to page tabs) in
2092 the Vector skin has gained a label that should make it more discoverable.
2093 * MWCryptHKDF added for fast, cryptographically secure random number generation
2094 that won't deplete openssl's entropy pool.
2095 * ResourceLoader: File modules can now provide a skip function that uses an
2096 inline feature test to bypass loading of the module.
2097 * (bug 20210) Special pages may now provide autocompletion of their subpage
2098 names in search suggestions. Right now the only useful implementation is in
2099 Special:Log, but more are to come.
2100 * Special:MostLinkedTemplates is no longer limited to transclusions from the
2101 Template namespace.
2102 * Skins can now use 'remoteSkinPath' when defining ResourceLoader modules.
2103 This works the same as 'remoteExtPath' but is relative to the skins/ folder
2104 instead of the extensions/ folder.
2105 * Added the json2.js polyfill for the ES5 JSON.stringify and JSON.parse methods.
2106 Exposed as module "json" with a skip function to optimise loading.
2107 * Extensions and skins may now use 'namemsg' in $wgExtensionCredits in addition
2108 to 'name', to allow for the name to be localizable. 'name' should still be
2109 specified for backwards-compatibility and to define the path Special:Version
2110 uses to find extension license information.
2111 * Browser tests are now included to verify basic wiki functionality in developer
2112 environments. For details on running tests, see tests/browser/README.mediawiki.
2113 * Upgrade jStorage to v0.4.10.
2114 * {{!}} is now a magic word that produces the | character. This removes the need
2115 for Template:! for purposes such as passing pipes inside of parameters.
2116 * (bug 20790) The block log snippet on Special:Contributions and while
2117 editing user and user talk pages now works for IP range blocks.
2118 * (bug 9360) Added ability to change the page language for MediaWiki pages using
2119 Special:PageLanguage. All pages are set to wiki language by default.
2120 The feature needs to be enabled with $wgPageLanguageUseDB=true and
2121 permission needs to be set for 'pagelang'.
2122 * Upgrade Moment.js to v2.8.3.
2123 * (bug 67042) Added support for the HTML5 <rtc> tag for East Asian typography.
2124 * Upgrade Sinon.JS to 1.10.3.
2125 * Added the es5-shim polyfill for older or non-compliant javascript engines.
2126 * Upgrade jQuery Cookie to v1.3.1.
2127 * (bug 20476) Add a "viewsuppressed" user right to be able to view
2128 suppressed content but not suppress it ("suppressrevision" right).
2129 * (bug 66440) The MediaWiki web installer will now allow you to choose the skins
2130 to enable (from the ones included in download tarball) and decide which one
2131 should be the default.
2132 * (bug 68085, 68802) Links like [[localInterwikiPrefix:languageCode:pageTitle]],
2133 where localInterwikiPrefix is a member of the $wgLocalInterwikis array, will
2134 no longer be displayed in the sidebar when $wgInterwikiMagic is true. In a
2135 similar way, links like [[localInterwikiPrefix:File:Image.png]] and
2136 [[localInterwikiPrefix:Category:Hello]] will now render as regular links, and
2137 will not include the file or add the page to the category.
2138 * New special page, MyLanguage, to redirect users to subpages with localised
2139 versions of a page. (Integrated from Extension:Translate)
2140 * MediaWiki now supports multiple password types, including bcrypt and PBKDF2.
2141 The default type can be changed with $wgPasswordDefault and the type
2142 configurations can be changed with $wgPasswordConfig.
2143 * Skins can now define custom styles for default ResourceLoader modules using
2144 the $wgResourceModuleSkinStyles global. See the Vector skin for examples.
2145 * (bug 4488) There is now a preference to watch pages where the user has
2146 rollbacked an edit by default.
2147 * (bug 15484) Users will now be redirected to the login page when they need to
2148 log in, rather than being shown a page asking them to log in and having to click
2149 another link to actually get to the login page.
2150 * A JsonContent and JsonContentHandler were added for extensions to extend.
2151 * (bug 35045) Redirects to sections will now update the URL in browser's address
2152 bar using the HTML5 History API. When [[Dog]] redirects to [[Animals#Dog]],
2153 the user will now see "Animals#Dog" in their browser instead of "Dog#Dog".
2154 * API token handling has been rewritten. Any API module using tokens will need
2155 to be updated. See the entry below under "Action API internal changes".
2156 * Added HTMLAutoCompleteSelectField.
2157 * Added a new hook, "SkinPreloadExistence", to allow extensions to add titles to
2158 link existence cache before the page is rendered.
2159 * Config::set() was moved to its own interface, MutableConfig. GlobalVarConfig::set()
2160 is now deprecated, does not implement MutableConfig.
2161 * A MutableConfig named HashConfig was added, that stores an array of configuration
2162 settings.
2163 * (bug 69418) A MultiConfig implementation was added that supports fallback
2164 to multiple Config instances.
2165 * Update CSSJanus to v1.1.0.
2166 * Added FormatJson::parse() returning status with result or localized error message
2167 * Added DeletedContribsPager::reallyDoQuery hook allowing extensions to data to
2168 Special:DeletedContributions
2169 * Added DeletedContributionsLineEnding hook allowing extensions to format
2170 Special:DeletedContributions lines
2171 * (T69525) You can now make MediaWiki speed up its thumbnail rendering by using
2172 intermediary thumbnails. $wgThumbnailBuckets must be set to a list of target
2173 thumbnail widths; when a new thumbnail needs to be rendered, MediaWiki will
2174 find the smallest bucket smaller than the original but larger than the target
2175 width + $wgThumbnailMinimumBucketDistance, and it will scale that thumbnail,
2176 rather than the original, down to the target size at greater speed in return
2177 for minor loss of fidelity.
2178
2179 === Bug fixes in 1.24 ===
2180 * (bug 50572) MediaWiki:Blockip should support gender
2181 * (bug 49116) Footer copyright notice is now always displayed in user language
2182 rather than content language (same as copyright notice for editing interface).
2183 * (bug 62258) A bug was fixed in File::getUnscaledThumb when a height
2184 restriction was present in the parameters. Images with both the "frame"
2185 option and a size specification set will now always ignore the provided
2186 size and display an unscaled image, as the documentation has always
2187 claimed it would.
2188 * (bug 39035) Improved Vector skin performance by removing collapsibleNav,
2189 which used to collapse some sidebar elements by default.
2190 This removes -list id suffixes like p-lang-list: instead of using things like
2191 #p-lang-list, you can do #p-lang .body ul.
2192 * (bug 890) Links in Special:RecentChanges and Special:Watchlist no longer
2193 follow redirects to their target pages.
2194 * Parser now dies early if called recursively, instead of producing subtle bugs.
2195 * (bug 14323) Redirect pages, when viewed with redirect=no, no longer hide the
2196 remaining page content.
2197 * (bug 52587) Maintenance script deleteBatch.php no longer follows redirects
2198 in the file namespace and delete the file on the target page. It will still
2199 however delete the redirect page.
2200 * (bug 22683) {{msgnw:}} and other uses of PPFrame::RECOVER_ORIG will correctly
2201 recover the original code of extension tags.
2202 * (bug 65757) MSSQL: Update script drops unnamed constraints to be prepared
2203 for future updates. Because it's doing so heuristically, it may fail or drop
2204 wrong constraints.
2205 * (bug 67870) wfShellExec() cuts off stdout at multiples of 8192 bytes.
2206 * $wgRunJobsAsync now works with private wikis (e.g. read requires login).
2207 * (bugs 57238, 65206) Blank pages can now be directly created.
2208 * (bug 69789) Title::getContentModel() now loads from the database when
2209 necessary instead of incorrectly returning the default content model.
2210 * (bug 69249) wfBaseConvert() now works around PHP Bug #50175 when using GMP.
2211 * (bug 57909) URLs in the externallinks table will no longer have certain
2212 characters decoded in the query string.
2213 * (bug 67368) LESS mixins like .background-image() correctly flip image
2214 references for RTL stylesheets now.
2215
2216 === Action API changes in 1.24 ===
2217 * action=parse API now supports prop=modules, which provides the list of
2218 ResourceLoader modules that should be used to enhance the parsed content.
2219 * action=query&meta=siteinfo&siprop=interwikimap returns a new "protorel"
2220 field which is true if protocol-relative urls can be used to access
2221 a particular interwiki map entry.
2222 * list=logevents now provides logpage, which is the page ID from the
2223 logging table, if ids are requested and the user has the permissions.
2224 * action=edit now requires that appendtext, prependtext, or section=new be used
2225 when using the 'redirect' parameter, to prevent clients accidentally
2226 overwriting the target page with the content of the redirect.
2227 * list=logevents will now return an error if both letitle and leprefix are
2228 specified.
2229 * list=logevents has a new parameter, lenamespace, to allow filtering by
2230 namespace.
2231 * action=expandtemplates has a new parameter, prop, and a new output format.
2232 The old format is still used if prop isn't provided, but this is deprecated.
2233 * meta=userinfo can now return the count of unread pages on the watchlist.
2234 * list=watchlist can now filter by unread status.
2235 * The deprecated action=parse&prop=languageshtml has been removed.
2236 * (bug 48071) action=setnotificationtimestamp no longer throws PHP or database
2237 errors when no pages are given.
2238 * (bug 60734) Actions that use ApiPageSet (e.g. purge, watch,
2239 setnotificationtimestamp) will now include continuation information when
2240 using a generator.
2241 * Removed 'props' and 'errors' from action=paraminfo, as they have extremely
2242 limited use and are generally inaccurate, unmaintained, and impossible to
2243 properly maintain.
2244 * Formats dbg, dump, txt, wddx, and yaml are now deprecated.
2245 * action=paraminfo now indicates when a parameter is specifying a submodule.
2246 * The iwurl parameter to prop=iwlinks is deprecated in favor of iwprop=url, for
2247 parallelism with prop=langlinks.
2248 * All tokens should be fetched from action=query&meta=tokens; all other methods
2249 of fetching tokens are deprecated. The value needed for meta=tokens's 'type'
2250 parameter for each module is documented in the action=help output and is
2251 returned from action=paraminfo.
2252 * New action ClearHasMsg that can be used to clear HasMsg flag.
2253 * The cmstartsortkey and cmendsortkey parameters to list=categorymembers are
2254 deprecated in favor of cmstarthexsortkey and cmendhexsortkey.
2255 * (bug 63326) Add blockedtimestamp field to output of blockinfo property for
2256 the list=allusers and list=users modules.
2257 * prop=imageinfo no longer requires iiurlwidth to be set when using iiurlparam.
2258 * Added prop=linkshere, prop=fileusage, and prop=transcludedin, which are
2259 roughly equivalent to list=backlinks, list=imageusage, and list=embeddedin
2260 but can work on a list of titles (including titles from a generator).
2261 * prop=redirects can now filter returned redirects by namespace.
2262
2263 === Action API internal changes in 1.24 ===
2264 * Methods for handling continuation are added to ApiResult, so actions other
2265 than query that use generators can easily support continuation.
2266 * $wgAPIModules (and the related $wgAPIFormatModules, $wgAPIMetaModules,
2267 $wgAPIPropModules, and $wgAPIListModules settings) now allow API modules
2268 to be specified using a "module spec" array instead of a plain class name.
2269 A "module spec" is an associative array containing at least the 'class' key
2270 for the module's class, and optionally a 'factory' key for the factory function
2271 to use for the module. This is intended for extensions that want control over
2272 the instantiation of their API modules, to allow for proper dependency
2273 injection.
2274 * A new param type 'submodule' is available. Parameters of this type will take
2275 the list of valid values from the module's ApiModuleManager for the group
2276 corresponding to the parameter name.
2277 * The 'APIGetPossibleErrors' and 'APIGetResultProperties' hooks are no longer used.
2278 * API token handling has been rewritten. Any API module using tokens will need
2279 to be updated:
2280 * ApiBase::needsToken now returns a token type instead of boolean true when a
2281 token is needed. Returning true will throw an exception. See documentation
2282 of that method for details.
2283 * Information for the 'token' parameter is automatically set by ApiBase
2284 getFinalParams and getFinalParamDescription.
2285 * ApiBase::getTokenSalt has been removed.
2286 * The hooks APIQueryInfoTokens, APIQueryRevisionsTokens,
2287 APIQueryRecentChangesTokens, APIQueryUsersTokens, and
2288 ApiTokensGetTokenTypes are deprecated, but are still called to support
2289 backwards-compatible token access.
2290 * ApiBase::validateLimit and ApiBase::validateTimestamp are now protected.
2291 * ApiQueryRedirects was removed; prop=redirects is now implemented by
2292 ApiQueryBacklinksProp along with the newly-added prop modules.
2293 * The following methods have been deprecated and may be removed in a future
2294 release:
2295 * ApiBase::getResultProperties
2296 * ApiBase::getFinalResultProperties
2297 * ApiBase::addTokenProperties
2298 * ApiBase::getRequireOnlyOneParameterErrorMessages
2299 * ApiBase::getRequireMaxOneParameterErrorMessages
2300 * ApiBase::getRequireAtLeastOneParameterErrorMessages
2301 * ApiBase::getTitleOrPageIdErrorMessage
2302 * ApiBase::getPossibleErrors
2303 * ApiBase::getFinalPossibleErrors
2304 * ApiBase::parseErrors
2305 * ApiQuery::setGeneratorContinue
2306 * ApiQueryBase::checkRowCount
2307 * ApiQueryBase::titleToKey
2308 * ApiQueryBase::keyToTitle
2309 * ApiQueryBase::keyPartToTitle
2310 * ApiQueryInfo::getTokenFunctions
2311 * ApiQueryInfo::resetTokenCache
2312 * ApiQueryInfo::getEditToken
2313 * ApiQueryInfo::getDeleteToken
2314 * ApiQueryInfo::getProtectToken
2315 * ApiQueryInfo::getMoveToken
2316 * ApiQueryInfo::getBlockToken
2317 * ApiQueryInfo::getUnblockToken
2318 * ApiQueryInfo::getEmailToken
2319 * ApiQueryInfo::getImportToken
2320 * ApiQueryInfo::getWatchToken
2321 * ApiQueryInfo::getOptionsToken
2322 * ApiQueryRecentChanges::getTokenFunctions
2323 * ApiQueryRecentChanges::getPatrolToken
2324 * ApiQueryRevisions::getTokenFunctions
2325 * ApiQueryRevisions::getRollbackToken
2326 * ApiQueryUsers::getTokenFunctions
2327 * ApiQueryUsers::getUserrightsToken
2328 * The following classes have been deprecated and may be removed in a future
2329 release:
2330 * ApiFormatDbg
2331 * ApiFormatDump
2332 * ApiFormatTxt
2333 * ApiFormatWddx
2334 * ApiFormatYaml
2335 * ApiTokens
2336 * The following class constants have been deprecated and may be removed in a
2337 future release:
2338 * ApiBase::PROP_ROOT
2339 * ApiBase::PROP_LIST
2340 * ApiBase::PROP_TYPE
2341 * ApiBase::PROP_NULLABLE
2342
2343 === Languages updated in 1.24 ===
2344
2345 MediaWiki supports over 350 languages. Many localisations are updated
2346 regularly. Below only new and removed languages are listed, as well as
2347 changes to languages because of Bugzilla reports.
2348
2349 === Other changes in 1.24 ===
2350 * The deprecated jquery.delayedBind ResourceLoader module was removed.
2351 * The deprecated function mw.util.toggleToc was removed.
2352 * The Special:Search hooks SpecialSearchGo and SpecialSearchResultsAppend
2353 were removed as they were unused.
2354 * (bug 65477) User::pingLimiter() now has an additional profile point varying
2355 by action being used.
2356 * mediawiki.util.$content no longer supports old versions of the Vector,
2357 Monobook, Modern and CologneBlue skins that don't yet implement the "mw-body"
2358 and/or "mw-body-primary" class name in their html.
2359 * Added pp_sortkey column to page_props table, so pages can be efficiently
2360 queried and sorted by property value (bug 58032).
2361 See $wgPagePropsHaveSortkey if you want to postpone the schema change.
2362 * BREAKING CHANGE: All four built-in MediaWiki skins (Vector, MonoBook, Modern
2363 and Cologne Blue) were moved out of MediaWiki core to their own respective
2364 repositories. They will be installed with the release tarball, but you must
2365 install them separately if installing MediaWiki from source code. A warning
2366 message displayed until you do it should guide you through the process. See
2367 also <https://www.mediawiki.org/wiki/Manual:Skin_configuration>.
2368 * BREAKING CHANGE: Skins built for MediaWiki 1.15 and earlier that do not use
2369 the "headelement" template key are no longer supported. Setting
2370 $useHeadElement = false; is no longer supported and will not cause old keys
2371 like "headlinks", "skinnameclass", etc. to be defined.
2372 * BREAKING CHANGE: The files commonElements.css, commonContent.css and
2373 commonInterface.css (in skins/common/) have been removed. Skins may no longer
2374 rely on their presence and include them in their style modules. ResourceLoader
2375 modules introduced in MediaWiki 1.23 should be loaded instead:
2376 - skins/common/commonElements.css → 'mediawiki.skinning.elements' module
2377 - skins/common/commonContent.css → 'mediawiki.skinning.content' module
2378 - skins/common/commonInterface.css → 'mediawiki.skinning.interface' module
2379 * The deprecated 'SpecialVersionExtensionTypes' hook was removed.
2380 * (bug 63891) Add 'X-Robots-Tag: noindex' header in action=render pages.
2381 * SpecialPage no longer supports the syntax for invoking wfSpecial*() functions.
2382 Special pages should subclass SpecialPage and implement the execute() method.
2383 * (bug 63755) The deprecated constants RC_MOVE and RC_MOVE_OVER_REDIRECT were
2384 removed.
2385 * Special:MostLinkedTemplates has been renamed to Special:MostTranscludedPages.
2386 * The skin autodiscovery mechanism has been deprecated and will be removed in
2387 MediaWiki 1.25. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery
2388 for migration guide for creators and users of custom skins that relied on it.
2389 * ResourceLoaderFileModule#getAllStyleFiles now returns all style files and all
2390 skin style files used by the module.
2391 * Removed getLang() from IContextSource and subclasses. (deprecated since 1.19)
2392 * Removed setLang() from subclasses of IContextSource. (deprecated since 1.19)
2393 * Removed WebRequest::escapeAppendQuery(). (deprecated since 1.20)
2394 * Removed info(), purge(), revert() and rollback() from the Article class; they
2395 have since become subclasses of the Action class. (deprecated since 1.19)
2396 * SearchEngineReplacePrefixesComplete hook was removed.
2397 * The "jquery.json" module has been deprecated. Use the "json" module instead.
2398 * Removed HTMLForm::addJS(). (deprecated since 1.18)
2399 * Removed LogEventsList::showHeader(). (deprecated since 1.19)
2400 * Removed ImageGalleryBase::useSkin(). (deprecated since 1.18)
2401 * Removed DatabaseMysqlBase::getLagFromProcesslist(). (deprecated since 1.19)
2402 * Removed LoadBalancer::closeConnecton(). (deprecated since 1.18)
2403 * Removed ApiBase::createContext(). (deprecated since 1.19)
2404 * BREAKING CHANGE: The undocumented Special{$this->getName()}BeforeFormDisplay
2405 set of hooks has been removed and replaced by a single new hook
2406 SpecialPageBeforeFormDisplay.
2407 * (bug 65781) Removed block warning on included {{Special:Contributions}}
2408 * Removed Skin::makeGlobalVariablesScript(). (deprecated since 1.19)
2409 * Removed MWNamespace::isMain(). (deprecated since 1.19)
2410 * Removed Preferences::loadOldSearchNs(). (deprecated since 1.19)
2411 * Removed OutputPage::getStatusMessage(). (deprecated since 1.18)
2412 * Removed OutputPage::isUserJsAllowed(). (deprecated since 1.18)
2413 * Removed Title::updateTitleProtection(). (deprecated since 1.19)
2414 * Removed ParserOptions::setSkin(). (deprecated since 1.19)
2415 * Removed Title::escapeCanonicalURL(). (deprecated since 1.19)
2416 * Removed Title::escapeLocalURL(). (deprecated since 1.19)
2417 * Removed Title::escapeFullURL(). (deprecated since 1.19)
2418 * Removed User::isValidEmailAddr(). (deprecated since 1.18)
2419 * Removed Title::getEscapedText(). (deprecated since 1.19)
2420 * Removed Language::getFallbackLanguageCode(). (deprecated since 1.19)
2421 * Removed WikiPage::isBigDeletion(). (deprecated since 1.19)
2422 * Removed MWInit class which contained functions related to a now discontinued
2423 PHP compiler called hphpc. (deprecated since 1.22)
2424 * ApiResult::enableSizeCheck() and disableSizeCheck() are now obsolete.
2425 * Removed ResourceLoaderGetStartupModules hook. (deprecated since 1.23)
2426 * Removed getFormFields(), onSubmit() and onSuccess() from FormlessAction, as
2427 these were meant specifically for FormAction instead.
2428 * Removed Action::execute().
2429 * Removed AjaxAddScript which has been obsolete since ResourceLoader and
2430 is unused by any modern extension.
2431 * Removed maintenance/nextJobDB.php; no longer in use.
2432 * Removed global function wfViewPrevNext(). (deprecated since 1.19)
2433 * Removed global function xmlsafe() from Export.php. (moved to OAIRepo extension)
2434 * Removed Title::userCanRead(). (deprecated since 1.19)
2435 * Removed maintenance script importTextFile.php. Use edit.php script instead.
2436 * A _from_namespace field has been added to the templatelinks, pagelinks,
2437 and filelinks tables. Run update.php to apply this change to the schema.
2438 * Removed File::sha1Base36(). (deprecated since 1.19)
2439 * Removed File::getPropsFromPath(). (deprecated since 1.19)
2440 * Removed functions blockedPage(), noCreatePermission(), readOnlyPage() and
2441 userNotLoggedInPage() from EditPage.php. (deprecated since 1.19)
2442 * Removed functions getContent(), getPreloadedText(), mergeChangesInto() and
2443 setPreloadedText() from EditPage.php. (deprecated since 1.21)
2444 * Removed global functions wfArrayLookup(), wfArrayMerge(), wfDebugDieBacktrace()
2445 and wfTime(). (deprecated since 1.22)
2446 * Browser support for Internet Explorer 6 and 7 lowered from Grade A to Grade C,
2447 meaning that JavaScript is no longer executed in these browser versions.
2448 * Browser support for Opera 11 lowered from Grade A to Grade C.
2449 * Removed IEFixes module which existed purely to provide support for MSIE versions
2450 below 7 (conditionally loaded only for those browsers).
2451 * Deprecated SpecialPageFactory::getList() in favor of
2452 SpecialPageFactory::getNames()
2453 * Action::checkCanExecute() no longer has a return value.
2454 * Removed cleanupForIRC(), loadFromCurRow(), newFromCurRow(), notifyRC2UDP()
2455 and sendToUDP() from RecentChange.php. (deprecated since 1.22)
2456 * Removed EnhancedChangesList::arrow(), sideArrow(), downArrow(), spacerArrow().
2457 * Removed Xml::namespaceSelector(). (deprecated since 1.19)
2458 * Removed WikiPage::estimateRevisionCount(). (deprecated since 1.19)
2459 * MYSQL: Enum item added to "major MIME type" columns.
2460 Running update.php on MySQL < v5.1 may result in heavy processing.
2461 * RSS and Atom feeds generated by MediaWiki no longer include a fallback
2462 stylesheet. It was ignored by most browsers these days anyway.
2463 * SpecialSearchNoResults hook has been removed. SpecialSearchResults is now
2464 called unconditionally.
2465 * TablePager::getBody() is now 'final' and can't be overridden in subclasses.
2466 * TablePager::getBody() is deprecated, use getBodyOutput() or getFullOutput().
2467 * Added $outputPage parameter to the SkinTemplateGetLanguageLink hook.
2468 * log_page for move log entries store the original page ID, rather than that
2469 of the new redirect page. This is not retroactive.
2470 * LCStoreAccel was removed. $wgLocalisationCacheConf can no longer be set to
2471 use this store class.
2472 * Html::infoBox() no longer accepts paths relative to skins/common/images/.
2473 * Deprecated defunct Skin::getCommonStylePath().
2474 * Some extensions had their ResourceLoader modules depend on the "mediawiki"
2475 and "jquery" modules. In the past, this behavior was undefined, now it will
2476 throw an error.
2477 * Removed BagOStuff::replace(). (deprecated since 1.23)
2478 * In Linker.php, link(), linkText() and makeBrokenImageLinkObj() now display
2479 warnings if their first parameter is not a Title object. Also makeImageLink()
2480 now requires a Parser as its first parameter.
2481 * (bug 67368) LESS functions embed() and embeddable(), added in MediaWiki 1.23
2482 and broken by design, have been removed. Use appropriate LESS mixins instead.
2483 * Removed cssjanus.py from maintenance directory as it was unused.
2484 * Removed maintenance/purgeOldText.inc and the PurgeRedundantText() function
2485 it contained (superseded by Maintenance::purgeRedundantText() in 1.16).
2486 The purgeOldText.php maintenance script has been retained.
2487 * PHPUnit tests can be found by directory discovery, by adding the directory
2488 path from your UnitTestsList callback. Older versions of MediaWiki core will
2489 barf at this usage.
2490
2491 ==== Renamed classes ====
2492 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
2493 * CLDRPluralRuleConverter_Fragment to CLDRPluralRuleConverterFragment
2494 * CLDRPluralRuleConverter_Operator to CLDRPluralRuleConverterOperator
2495 * CLDRPluralRuleEvaluator_Range to CLDRPluralRuleEvaluatorRange
2496 * CSSJanus_Tokenizer to CSSJanusTokenizer
2497 * MediaWiki_I18N to MediaWikiI18N
2498 * Parser_DiffTest to ParserDiffTest
2499 * RevDel_ArchiveItem to RevDelArchiveItem
2500 * RevDel_ArchiveList to RevDelArchiveList
2501 * RevDel_ArchivedFileItem to RevDelArchivedFileItem
2502 * RevDel_ArchivedFileList to RevDelArchivedFileList
2503 * RevDel_ArchivedRevisionItem to RevDelArchivedRevisionItem
2504 * RevDel_FileItem to RevDelFileItem
2505 * RevDel_FileList to RevDelFileList
2506 * RevDel_Item to RevDelItem
2507 * RevDel_List to RevDelList
2508 * RevDel_LogItem to RevDelLogItem
2509 * RevDel_LogList to RevDelLogList
2510 * RevDel_RevisionItem to RevDelRevisionItem
2511 * RevDel_RevisionList to RevDelRevisionList
2512 * WebInstaller_Complete to WebInstallerComplete
2513 * WebInstaller_Copying to WebInstallerCopying
2514 * WebInstaller_DBConnect to WebInstallerDBConnect
2515 * WebInstaller_DBSettings to WebInstallerDBSettings
2516 * WebInstaller_Document to WebInstallerDocument
2517 * WebInstaller_ExistingWiki to WebInstallerExistingWiki
2518 * WebInstaller_Install to WebInstallerInstall
2519 * WebInstaller_Language to WebInstallerLanguage
2520 * WebInstaller_Name to WebInstallerName
2521 * WebInstaller_Options to WebInstallerOptions
2522 * WebInstaller_Readme to WebInstallerReadme
2523 * WebInstaller_ReleaseNotes to WebInstallerReleaseNotes
2524 * WebInstaller_Restart to WebInstallerRestart
2525 * WebInstaller_Upgrade to WebInstallerUpgrade
2526 * WebInstaller_UpgradeDoc to WebInstallerUpgradeDoc
2527 * WebInstaller_Welcome to WebInstallerWelcome
2528
2529 ==== Removed classes ====
2530 * IPBlockForm - Use SpecialBlock directly
2531 * WatchlistEditor - Use SpecialEditWatchlist directly
2532 * FormatExif - Use FormatMetadata directly
2533 * RevertFileAction - Use RevertAction directly
2534 * HistoryPage - Use HistoryAction directly
2535 * RawPage - Use RawAction directly
2536 * StubContLang - Use Language::factory() instead
2537 * XMLReader2 - Use XMLReader directly
2538 * ResourceLoaderLESSFunctions - No longer in use, not intended for public usage
2539
2540 ==== Removed files ====
2541 The skins/common/ directory, previously containing some assets intended to be
2542 used by skins and a number of legacy styles and scripts, has been removed. Its
2543 contents have been deleted or relocated into the resources/ directory. Full list
2544 of files that are no longer available follows.
2545
2546 * skins/common/ajax.js
2547 * skins/common/commonContent.css
2548 * skins/common/commonElements.css
2549 * skins/common/commonInterface.css
2550 * skins/common/commonPrint.css
2551 * skins/common/config-cc.css
2552 * skins/common/config.css
2553 * skins/common/config.js
2554 * skins/common/feed.css
2555 * skins/common/IEFixes.js
2556 * skins/common/oldshared.css
2557 * skins/common/protect.js
2558 * skins/common/shared.css
2559 * skins/common/upload.js
2560 * skins/common/wikibits.js
2561 * skins/common/images/add.png
2562 * skins/common/images/ajax-loader.gif
2563 * skins/common/images/arrow_disabled_first_25.png
2564 * skins/common/images/arrow_disabled_last_25.png
2565 * skins/common/images/arrow_disabled_left_25.png
2566 * skins/common/images/arrow_disabled_right_25.png
2567 * skins/common/images/arrow_first_25.png
2568 * skins/common/images/arrow_last_25.png
2569 * skins/common/images/arrow_left_25.png
2570 * skins/common/images/arrow_right_25.png
2571 * skins/common/images/Arr_.png
2572 * skins/common/images/Arr_d.png
2573 * skins/common/images/Arr_l.png
2574 * skins/common/images/Arr_r.png
2575 * skins/common/images/Arr_u.png
2576 * skins/common/images/bullet.gif
2577 * skins/common/images/button_bold.png
2578 * skins/common/images/button_extlink.png
2579 * skins/common/images/button_headline.png
2580 * skins/common/images/button_hr.png
2581 * skins/common/images/button_image.png
2582 * skins/common/images/button_italic.png
2583 * skins/common/images/button_link.png
2584 * skins/common/images/button_media.png
2585 * skins/common/images/button_nowiki.png
2586 * skins/common/images/button_sig.png
2587 * skins/common/images/button_template.png
2588 * skins/common/images/cc-0.png
2589 * skins/common/images/cc-by-nc-sa.png
2590 * skins/common/images/cc-by-sa.png
2591 * skins/common/images/cc-by.png
2592 * skins/common/images/Checker-16x16.png
2593 * skins/common/images/closewindow.png
2594 * skins/common/images/closewindow19x19.png
2595 * skins/common/images/critical-32.png
2596 * skins/common/images/diffunderline.gif
2597 * skins/common/images/download-32.png
2598 * skins/common/images/feed-icon.png
2599 * skins/common/images/feed-icon.svg
2600 * skins/common/images/gnu-fdl.png
2601 * skins/common/images/help-question-hover.gif
2602 * skins/common/images/help-question.gif
2603 * skins/common/images/info-32.png
2604 * skins/common/images/link_icon.gif
2605 * skins/common/images/magnify-clip-rtl.png
2606 * skins/common/images/magnify-clip.png
2607 * skins/common/images/mediawiki.png
2608 * skins/common/images/nextredirectltr.png
2609 * skins/common/images/nextredirectrtl.png
2610 * skins/common/images/poweredby_mediawiki_88x31.png
2611 * skins/common/images/public-domain.png
2612 * skins/common/images/question-small.png
2613 * skins/common/images/question.svg
2614 * skins/common/images/redirectltr.png
2615 * skins/common/images/redirectrtl.png
2616 * skins/common/images/remove.png
2617 * skins/common/images/spinner.gif
2618 * skins/common/images/tick-32.png
2619 * skins/common/images/tipsy-arrow.gif
2620 * skins/common/images/tooltip_icon.png
2621 * skins/common/images/warning-32.png
2622 * skins/common/images/wiki.png
2623 * skins/common/images/Zoom_sans.gif
2624 * skins/common/images/ar/button_bold.png
2625 * skins/common/images/ar/button_headline.png
2626 * skins/common/images/ar/button_italic.png
2627 * skins/common/images/ar/button_link.png
2628 * skins/common/images/ar/button_nowiki.png
2629 * skins/common/images/be-tarask/button_bold.png
2630 * skins/common/images/be-tarask/button_italic.png
2631 * skins/common/images/be-tarask/button_link.png
2632 * skins/common/images/cyrl/button_bold.png
2633 * skins/common/images/cyrl/button_italic.png
2634 * skins/common/images/cyrl/button_link.png
2635 * skins/common/images/de/button_bold.png
2636 * skins/common/images/de/button_italic.png
2637 * skins/common/images/fa/button_bold.png
2638 * skins/common/images/fa/button_headline.png
2639 * skins/common/images/fa/button_italic.png
2640 * skins/common/images/fa/button_link.png
2641 * skins/common/images/fa/button_nowiki.png
2642 * skins/common/images/icons/fileicon-c.png
2643 * skins/common/images/icons/fileicon-cpp.png
2644 * skins/common/images/icons/fileicon-deb.png
2645 * skins/common/images/icons/fileicon-djvu.png
2646 * skins/common/images/icons/fileicon-djvu.xcf
2647 * skins/common/images/icons/fileicon-dvi.png
2648 * skins/common/images/icons/fileicon-exe.png
2649 * skins/common/images/icons/fileicon-h.png
2650 * skins/common/images/icons/fileicon-html.png
2651 * skins/common/images/icons/fileicon-iso.png
2652 * skins/common/images/icons/fileicon-java.png
2653 * skins/common/images/icons/fileicon-mid.png
2654 * skins/common/images/icons/fileicon-mov.png
2655 * skins/common/images/icons/fileicon-o.png
2656 * skins/common/images/icons/fileicon-ogg.png
2657 * skins/common/images/icons/fileicon-ogg.xcf
2658 * skins/common/images/icons/fileicon-pdf.png
2659 * skins/common/images/icons/fileicon-ps.png
2660 * skins/common/images/icons/fileicon-psd.png
2661 * skins/common/images/icons/fileicon-rm.png
2662 * skins/common/images/icons/fileicon-rpm.png
2663 * skins/common/images/icons/fileicon-svg.png
2664 * skins/common/images/icons/fileicon-tar.png
2665 * skins/common/images/icons/fileicon-tex.png
2666 * skins/common/images/icons/fileicon-ttf.png
2667 * skins/common/images/icons/fileicon-txt.png
2668 * skins/common/images/icons/fileicon.png
2669 * skins/common/images/ksh/button_S_italic.png
2670
2671 = MediaWiki 1.23 =
2672
2673 == MediaWiki 1.23.15 ==
2674
2675 This is a maintenance release of the MediaWiki 1.23 branch.
2676
2677 === Changes since 1.23.14 ===
2678 * BREAKING CHANGE: $wgHTTPProxy is now *required* for all external requests
2679 made by MediaWiki via a proxy. Relying on the http_proxy environment
2680 variable is no longer supported.
2681 * (T139565) SECURITY: API: Generate head items in the context of the given title
2682 * (T137264) SECURITY: XSS in unclosed internal links
2683 * (T133147) SECURITY: Escape '<' and ']]>' in inline <style> blocks
2684 * (T133147) SECURITY: Require login to preview user CSS pages
2685 * (T132926) SECURITY: Do not allow undeleting a revision deleted file if it is
2686 the top file
2687 * (T129738) SECURITY: Make $wgBlockDisablesLogin also restrict logged in
2688 permissions
2689 * (T129738) SECURITY: Make blocks log users out if $wgBlockDisablesLogin is true
2690 * (T115333) SECURITY: Check read permission when loading page content in ApiParse
2691 * Remove support for $wgWellFormedXml = false, all output is now well formed
2692
2693 == MediaWiki 1.23.13 ==
2694
2695 This is a maintenance release of the MediaWiki 1.23 branch.
2696
2697 === Changes since 1.23.12 ===
2698 * (T121892) Fix fatal errors on some Special pages, introduced in 1.23.12.
2699
2700 == MediaWiki 1.23.12 ==
2701
2702 This is a security and maintenance release of the MediaWiki 1.23 branch.
2703
2704 === Changes since 1.23.11 ===
2705 * (T117899) SECURITY: $wgArticlePath can no longer be set to relative paths
2706 that do not begin with a slash. This enabled trivial XSS attacks.
2707 Configuration values such as "http://my.wiki.com/wiki/$1" are fine, as are
2708 "/wiki/$1". A value such as "$1" or "wiki/$1" is not and will now throw an
2709 error.
2710 * (T119309) SECURITY: Use hash_compare() for edit token comparison
2711 * (T118032) SECURITY: Don't allow cURL to interpret POST parameters starting
2712 with '@' as file uploads
2713 * (T115522) SECURITY: Passwords generated by User::randomPassword() can no
2714 longer be shorter than $wgMinimalPasswordLength
2715 * (T97897) SECURITY: Improve IP parsing and trimming. Previous behavior could
2716 result in improper blocks being issued
2717 * (T109724) SECURITY: Special:MyPage, Special:MyTalk, Special:MyContributions
2718 and related pages no longer use HTTP redirects and are now redirected by
2719 MediaWiki
2720
2721 == MediaWiki 1.23.11 ==
2722
2723 This is a security and maintenance release of the MediaWiki 1.23 branch.
2724
2725 === Changes since 1.23.10 ===
2726
2727 * (T91850) SECURITY: Add throttle check in ApiUpload and SpecialUpload
2728 * (T91203, T91205) SECURITY: API: Improve validation in chunked uploading
2729 * (T108616) SECURITY: Avoid exposure of local path in PNG thumbnails
2730
2731 == MediaWiki 1.23.10 ==
2732
2733 This is a security and maintenance release of the MediaWiki 1.23 branch.
2734
2735 === Changes since 1.23.9 ===
2736
2737 * (T94116) SECURITY: Compare API watchlist token in constant time
2738 * (T97391) SECURITY: Escape error message strings in thumb.php
2739 * (T106893) SECURITY: Don't leak autoblocked IP addresses on
2740 Special:DeletedContributions
2741 * (bug 67644) Make AutoLoaderTest handle namespaces
2742 * (T91653) Minimal PSR-3 debug logger to support backports from 1.25+.
2743 * (T102562) Fix InstantCommons parameters to handle the new HTTPS-only
2744 policy of Wikimedia Commons.
2745
2746 == MediaWiki 1.23.9 ==
2747
2748 This is a security and maintenance release of the MediaWiki 1.23 branch.
2749
2750 === Changes since 1.23.8 ===
2751
2752 * (T85848, T71210) SECURITY: Don't parse XMP blocks that contain XML entities,
2753 to prevent various DoS attacks.
2754 * (T85848) SECURITY: Don't allow directly calling Xml::isWellFormed, to reduce
2755 likelihood of DoS.
2756 * (T88310) SECURITY: Always expand xml entities when checking SVG's.
2757 * (T73394) SECURITY: Escape > in Html::expandAttributes to prevent XSS.
2758 * (T85855) SECURITY: Don't execute another user's CSS or JS on preview.
2759 * (T85349, T85850, T86711) SECURITY: Multiple issues fixed in SVG filtering to
2760 prevent XSS and protect viewer's privacy.
2761 * (bug T68650) Fix indexing of moved pages with PostgreSQL. Requires running
2762 update.php to fix.
2763 * (bug T70087) Fix Special:ActiveUsers page for installations using
2764 PostgreSQL.
2765
2766 == MediaWiki 1.23.8 ==
2767
2768 This is a security and maintenance release of the MediaWiki 1.23 branch.
2769
2770 === Changes since 1.23.7 ===
2771
2772 * (bug T76686) [SECURITY] thumb.php outputs wikitext message as raw HTML, which
2773 could lead to xss. Permission to edit MediaWiki namespace is required to
2774 exploit this.
2775 * (bug T77028) [SECURITY] Malicious site can bypass CORS restrictions in
2776 $wgCrossSiteAJAXdomains in API calls if it only included an allowed domain as
2777 part of its name.
2778 * (bug T74222) The original patch for T74222 was reverted as unnecessary.
2779
2780 == MediaWiki 1.23.7 ==
2781
2782 This is a security and maintenance release of the MediaWiki 1.23 branch.
2783
2784 === Changes since 1.23.6 ===
2785
2786 * (bugs 66776, 71478) SECURITY: User PleaseStand reported a way to inject code
2787 into API clients that used format=php to process pages that underwent flash
2788 policy mangling. This was fixed along with improving how the mangling was done
2789 for format=json, and allowing sites to disable the mangling using
2790 $wgMangleFlashPolicy.
2791 * (bug 70901) SECURITY: User Jackmcbarn reported that the ability to update
2792 the content model for a page could allow an unprivileged attacker to edit
2793 another user's common.js under certain circumstances. The user right
2794 "editcontentmodel" was added, and is needed to change a revision's content
2795 model.
2796 * (bug 71111) SECURITY: User PleaseStand reported that on wikis that allow raw
2797 HTML, it is not safe to preview wikitext coming from an untrusted source such
2798 as a cross-site request. Thus add an edit token to the form, and when raw HTML
2799 is allowed, ensure the token is provided before showing the preview. This
2800 check is not performed on wikis that both allow raw HTML and anonymous
2801 editing, since there are easier ways to exploit that scenario.
2802 * (bug 72222) SECURITY: Do not show log action when the entry is revdeleted with
2803 DELETED_ACTION. NOTICE: this may be reverted in a future release pending a
2804 public RFC about the desired functionality. This issue was reported by user
2805 Bawolff.
2806 * (bug 71621) Make allowing site-wide styles on restricted special pages a
2807 config option.
2808 * (bug 42723) Added updated version history from 1.19.2 to 1.22.13
2809 * $wgMangleFlashPolicy was added to make MediaWiki's mangling of anything that
2810 might be a flash policy directive configurable.
2811
2812 == MediaWiki 1.23.6 ==
2813
2814 This is a maintenance release of the MediaWiki 1.23 branch.
2815
2816 === Changes since 1.23.5 ===
2817 * (Bug 72274) Job queue not running (HTTP 411) due to missing
2818 Content-Length: header
2819 * (Bug 67440) Allow classes to be registered properly from installer
2820
2821 == MediaWiki 1.23.5 ==
2822
2823 This is a security release of the MediaWiki 1.23 branch.
2824
2825 === Changes since 1.23.4 ===
2826 * (bug 70672) SECURITY: OutputPage: Remove separation of css and js module
2827 allowance.
2828
2829 == MediaWiki 1.23.4 ==
2830
2831 This is a security and maintenance release of the MediaWiki 1.23 branch.
2832
2833 === Changes since 1.23.3 ===
2834
2835 * (bug 69008) SECURITY: Enhance CSS filtering in SVG files. Filter <style>
2836 elements; normalize style elements and attributes before filtering; add
2837 checks for attributes that contain css; add unit tests for html5sec and
2838 reported bugs.
2839 * (bug 65998) Make MySQLi work with non-standard socket.
2840 * (bug 66986) GlobalVarConfig shouldn't throw exceptions for null-valued config
2841 settings.
2842
2843 == MediaWiki 1.23.3 ==
2844
2845 This is a maintenance release of the MediaWiki 1.23 branch.
2846
2847 === Changes since 1.23.2 ===
2848
2849 * (bug 68501) Correctly handle incorrect namespace in cleanupTitles.php.
2850 * (bug 64970) Fix support for blobs on DatabaseOracle::update.
2851 * (bug 66574) Display MediaWiki:Loginprompt on the login page.
2852 * (bug 67870) wfShellExec() cuts off stdout at multiples of 8192 bytes.
2853 * (bug 60629) Handle invalid language code gracefully in
2854 Language::fetchLanguageNames.
2855 * (bug 62017) Restore the number of rows shown on Special:Watchlist.
2856 * Check for boolean false result from database query in SqlBagOStuff.
2857
2858 == MediaWiki 1.23.2 ==
2859
2860 This is a security and maintenance release of the MediaWiki 1.23 branch.
2861
2862 === Changes since 1.23.1 ===
2863
2864 * (bug 68187) SECURITY: Prepend jsonp callback with comment.
2865 * (bug 66608) SECURITY: Fix for XSS issue in bug 66608: Generate the URL used
2866 for loading a new page in Javascript,instead of relying on the URL in the link
2867 that has been clicked.
2868 * (bug 65778) SECURITY: Copy prevent-clickjacking between OutputPage and
2869 ParserOutput.
2870 * (bug 68313) Preferences: Turn stubthreshold back into a combo box.
2871 * (bug 65214) Fix initSiteStats.php maintenance script.
2872 * (bug 67594) Special:ActiveUsers: Fix to work with PostgreSQL.
2873
2874 == MediaWiki 1.23.1 ==
2875
2876 This is a security and maintenance release of the MediaWiki 1.23 branch.
2877
2878 === Changes since 1.23.0 ===
2879
2880 * (bug 65839) SECURITY: Prevent external resources in SVG files.
2881 * (bug 67025) Special:Watchlist: Don't try to render empty row.
2882 * (bug 66922) Don't allow some E_NOTICE messages to end up in the LocalSettings.php.
2883 * (bug 66467) FileBackend: Avoid using popen() when "parallelize" is disabled.
2884 * (bug 66428) MimeMagic: Don't seek before BOF. This has weird side effects
2885 like only extracting the tail of the file partially or not at all.
2886 * (bug 66182) Removed -x flag on some php files.
2887
2888 == MediaWiki 1.23.0 ==
2889
2890 === Configuration changes in 1.23 ===
2891 * (bug 13250) Restored method for clearing a watchlist in web UI
2892 so that users with large watchlists don't have to perform
2893 contortions to clear them.
2894 * When $wgJobRunRate is higher than zero, jobs are now executed via an
2895 asynchronous HTTP request to a MediaWiki entry point. This may require
2896 increasing the number of server worker threads. $wgRunJobsAsync has been
2897 added to disable this feature if needed, falling back to executing the job
2898 on the same process but making the execution synchronously.
2899 * $wgDebugLogGroups values may be set to an associative array with a
2900 'destination' key specifying the log destination. The array may also contain
2901 a 'sample' key with a positive integer value N indicating that the log group
2902 should be sampled by dispatching one in every N messages on average. The
2903 sampling is random.
2904 * In addition to the current exception log format, MediaWiki now serializes
2905 exception metadata to JSON and logs it to the 'exception-json' log group.
2906 This makes MediaWiki easier to integrate with log aggregation and analysis
2907 tools.
2908 * $wgSquidServersNoPurge now supports the use of Classless Inter-Domain
2909 Routing (CIDR) notation to specify contiguous blocks of IPv4 and/or IPv6
2910 addresses that should be trusted to provide X-Forwarded-For headers.
2911 * Preferences 'watchcreations', 'watchdefault', 'enotifwatchlistpages' ("Add
2912 pages I create and files I upload to my watchlist", "Add pages and files I
2913 edit to my watchlist", "Email me when a page or file on my watchlist is
2914 changed") are now enabled by default. In addition new user accounts' personal
2915 and talk pages are now watched by them by default.
2916 * $wgLBFactoryConf: Class names have had underscores removed. The configuration
2917 should be updated if LBFactory_Simple or LBFactory_Multi is configured.
2918 * $wgPasswordSenderName has been removed and is no longer functional. To set a
2919 custom mailer name, the system message 'emailsender' should be modified
2920 (default: "{{SITENAME}}").
2921 * (bug 63269) Email notifications were not correctly handling the
2922 [[MediaWiki:Helppage]] message being set to a full URL (the default).
2923 If you customized [[MediaWiki:Enotif body]] (the text of email notifications),
2924 you'll need to edit it locally to include the URL via the new variable
2925 $HELPPAGE instead of the parser functions fullurl and canonicalurl; otherwise
2926 you don't have to do anything.
2927 * $wgDBAhandler was removed as the only class using it was also removed
2928 * The 'max threads' setting was removed from $wgDBservers.
2929 * Support for AdminSettings.php has been completely removed. All configuration
2930 belongs in LocalSettings.php.
2931 * $wgSkipSkin, which has been replaceable by $wgSkipSkins since 2005 (r9249), is
2932 now formally deprecated.
2933 * Removed deprecated $wgDisabledActions as it is hardly used anywhere.
2934 * $wgRateLimitLog has been deprecated and replaced by
2935 $wgDebugLogGroup['ratelimit'].
2936 * $wgLocalInterwikis is an array containing multiple local interwiki prefixes
2937 (interwiki prefixes that point back to the current wiki). This effectively
2938 allows more than one value of $wgLocalInterwiki to be specified and
2939 understood by the parser. The value of $wgLocalInterwiki is automatically
2940 prepended to the start of this array.
2941 * $wgQueryPages has been removed. Query Pages should be added to by using the
2942 wgQueryPages hook.
2943 * $wgHttpOnlyBlacklist has been removed.
2944 * $wgLicenseTerms has been removed as it was unused.
2945 * $wgProfileOnly is now deprecated; set the log file in
2946 $wgDebugLogGroups['profileoutput'] to replace it.
2947 * $wgMaxBacklinksInvalidate was removed; use $wgJobBackoffThrottling instead
2948 * Deprecated ResourceLoaderGetStartupModules hook.
2949
2950 === New features in 1.23 ===
2951 * ResourceLoader can utilize the Web Storage API to cache modules client-side.
2952 Compared to the browser cache, caching in Web Storage allows ResourceLoader
2953 to be more granular about evicting stale modules from the cache while
2954 retaining the ability to retrieve multiple modules in a single HTTP request.
2955 This capability can be enabled by setting $wgResourceLoaderStorageEnabled to
2956 true. This feature is currently considered experimental and should only be
2957 enabled with care.
2958 * (bug 6092) Add expensive parser functions {{REVISIONID:}}, {{REVISIONUSER:}}
2959 and {{REVISIONTIMESTAMP:}} (with friends).
2960 * Add "wgRelevantUserName" to mw.config containing the current
2961 Skin::getRelevantUser value.
2962 * (bug 56033) Add content model to the page information.
2963 * Added Article::MissingArticleConditions hook to give extensions a chance to
2964 hide their (unrelated) log entries.
2965 * Added LonelyPagesQuery hook to let extensions modify the query used to
2966 generate Special:LonelyPages.
2967 * Added $wgOpenSearchDefaultLimit defining the default number of entries to show
2968 on action=opensearch API call.
2969 * For namespaces with $wgNamespaceProtection (including the MediaWiki
2970 namespace), the "protect" tab will be shown only if there are restriction
2971 levels available that would restrict editing beyond what
2972 $wgNamespaceProtection already applies. The protection form will offer only
2973 those protection levels.
2974 * Added $wgAPIFormatModules, allowing extensions to add additional output
2975 formatting modules for the API.
2976 * (bug 47812) The MediaWiki:Group-user.{css,js} pages can now be used to add
2977 custom CSS or JavaScript enabled only for registered users.
2978 * (bug 52005) Special pages RecentChanges, RecentChangesLinked and Watchlist
2979 now include a legend describing the symbols used in lists of changes.
2980 * Improved the accessibility of the tabs in Special:Preferences.
2981 * Added ApiBeforeMain hook, roughly equivalent to the BeforeInitialize hook:
2982 it's called after everything is set up but before any major processing
2983 happens.
2984 * The jquery.client module now performs a component-wise version comparison in
2985 its #test method when strings are used in the browser map: version '1.10' is
2986 now correctly considered larger than '1.2'. Using numbers in the version map
2987 is not affected.
2988 * All API modules now support an assert parameter, which can either be
2989 'user' or 'bot'. The API will throw an error if the user is not logged
2990 in (user) or does not have the 'bot' userright (bot). Based off of the
2991 AssertEdit extension by Steve Sanbeg.
2992 * [[Special:Diff]] was added, allowing users to create internal links to
2993 revision comparison pages using syntax such as [[Special:Diff/12345]],
2994 [[Special:Diff/12345/prev]] or [[Special:Diff/12345/98765]].
2995 * New user accounts' personal and talk pages are now watched by them by default.
2996 * Added SkinTemplateGetLanguageLink hook to allow changing the html of language
2997 links.
2998 * Added MessageCache::get hook as a new way to customize messages across
2999 multiple sites.
3000 * Added jquery.throttle-debounce ResourceLoader module to limit the number of
3001 callbacks for frequently occurring events.
3002 * Special:ProtectedPages shows now a table. The timestamp, the reason and
3003 the protecting user are also shown.
3004 * Added experimental support for using Microsoft SQL Server as the database
3005 backend.
3006 ** Added new Microsoft SQL Server-specific configuration variable
3007 $wgDBWindowsAuthentication, which makes the web server authenticate against
3008 the database server using Integrated Windows Authentication instead of
3009 $wgDBuser/$wgDBpassword.
3010 * HTMLForm 'select', 'selectandother', 'selectorother', 'multiselect', and
3011 'radio' fields can now use message keys as labels via the 'options-messages'
3012 parameter, which overrides the 'options' parameter.
3013 * Admins can expire users passwords manually, or on a schedule using the
3014 $wgPasswordExpirationDays configuration setting.
3015 * Add new hook SendWatchlistEmailNotification, this will be used to determine
3016 whether to send a watchlist email notification.
3017 * (bug 42026) Special:Contributions now includes an option to filter page
3018 creations, similar to the topOnly option.
3019 * Add mediawiki.ui.button styling to all pages so wiki content can use styled
3020 buttons.
3021 * Special:UserLogin/signup now does AJAX checks for invalid and taken usernames,
3022 displaying the error live.
3023 * Added BaseTemplateAfterPortlet hook to allow injecting html after portlets in skins.
3024 * Support has been added for a JSON based localisation file format. The
3025 installer has been updated to use it.
3026 * Changes to content typography (colors, line-height etc.). See
3027 https://www.mediawiki.org/wiki/Typography_refresh for further information.
3028 * The Vector skin's visual treatment of external links has been simplified to a
3029 single icon (from nine). This should not affect local rules unless they were
3030 re-using these icons, which have now been deleted.
3031 * ResourceLoader: mw.loader.using() now implements a Promise interface.
3032 * Add new hook ChangesListInitRows accessed via ChangesList::initChangesListRows.
3033 If called by the ChangesList consumer this gives extensions a chance to batch
3034 process the result set prior to rendering.
3035 * A PoolCounterRedis class was added which can be make use of in $wgPoolCounterConf.
3036 This requires at least one Redis 2.6+ server.
3037 * $wgProfileToDatabase was removed. Set $wgProfiler to ProfilerSimpleDB
3038 in StartProfiler.php instead of using this.
3039 * (bug 63444) Made it possible to change the indent string (default: 4 spaces)
3040 used by FormatJson::encode().
3041
3042 === Bug fixes in 1.23 ===
3043 * (bug 41759) The "updated since last visit" markers (on history pages, recent
3044 changes and watchlist) and the talk page message indicator are now correctly
3045 updated when the user is viewing old revisions of pages, instead of always
3046 acting as if the latest revision was being viewed.
3047 * (bug 56443) Special:ConfirmEmail no longer shows a "Mail a confirmation code"
3048 when the email address is already confirmed. Also, consistently use
3049 "confirmed", rather than "authenticated", when messaging whether or not the
3050 user has confirmed an email address.
3051 * (bug 19415) action=render no longer shows section edit links. This affects
3052 behavior of several other features where (bogus) section edit links will
3053 disappear, such as file description pages loaded via $wgUseInstantCommons or
3054 pages transcluded cross-wiki via $wgEnableScaryTranscluding.
3055 * (bug 56912) Show correct link color on cached result of Special:DeadendPages.
3056 * Classes TitleListDependency and TitleDependency have been removed, as they
3057 have been found unused in core and extensions for a long time.
3058 * (bug 57098) SpecialPasswordReset now obeys returnto parameter
3059 * (bug 37812) ResourceLoader will notice when a module's definition changes and
3060 recompile it accordingly.
3061 * (bug 57201) SpecialRecentChangesFilters hook is now executed for feeds.
3062 * (bug 58640) Fixed a compatibility issue with PCRE 8.34 that caused pages
3063 to appear blank or with missing text.
3064 * (bug 56931) Updated the plural rules to CLDR 24. They are in new format
3065 which is detailed in UTS 35 Rev 33. The PHP parser and evaluator as well as
3066 the JavaScript evaluator were updated to support the new format. Plural rules
3067 for some languages have changed, most notably Russian. Affected software
3068 messages have been updated and marked for review at translatewiki.net.
3069 * (bug 23542) imagelinks now stores both the redirect and target (as
3070 templatelinks does).
3071 * (bug 58167) The web installer no longer throws an exception when PHP is
3072 compiled without support for MySQL yet with support for another DBMS.
3073 * (bug 56199) Raw option of parser functions must now match complete word,
3074 to take effect.
3075 * (bug 60543) Special:PrefixIndex forgot stripprefix=1 for "Next page" link
3076 * (bug 29762) Undoing an already-undone edit will now display an appropriate
3077 message instead of leading the user to make a null edit.
3078 * (bug 52659) mediawiki.notification: Notification area remained visible when
3079 empty and thus was stealing pointer events from links on the page.
3080 * (bug 26811) When a DBUnexpectedError occurs, DB server hostnames are now
3081 hidden unless $wgShowExceptionDetails is true, and $wgShowDBErrorBacktrace
3082 no longer applies in such cases.
3083 * (bug 60960) Avoid doing file_exist() checks on data: URIs, as they cause
3084 warnings to be printed on Windows due to large path length.
3085 * (bug 48084) Fixed a bug in the installer that could cause $wgLogo to hold
3086 the wrong path to the placeholder logo (skins/common/images/wiki.png).
3087 * (bug 64289) jquery.textSelection: Don't throw errors on empty collections.
3088
3089 === Web API changes in 1.23 ===
3090 * (bug 54884) action=parse&prop=categories now indicates hidden and missing
3091 categories.
3092 * action=query&meta=filerepoinfo now returns additional information for each
3093 repo.
3094 * action=parse&prop=languageshtml was deprecated in 1.18 and will be removed in
3095 MediaWiki 1.24.
3096 * action=parse now has disabletoc flag to disable table of contents in output.
3097 * (bug 25702) list=allcategories, list=allimages, list=alllinks, list=allpages,
3098 list=deletedrevs and list=filearchive did not handle case-sensitivity
3099 properly for all parameters.
3100 * ApiQueryBase::titlePartToKey allows an extra parameter that indicates the
3101 namespace in order to properly capitalize the title part.
3102 * (bug 57874) action=feedcontributions no longer has one item more than limit.
3103 * All API modules now support an assert parameter. See the new features section
3104 for more details.
3105 * Added prop=contributors to fetch the list of contributors to the page.
3106 * The following API modules will now return entries where fields have been
3107 revision-deleted: list=deletedrevs, list=filearchive, list=recentchanges,
3108 list=watchlist. "hidden" indicators will be included, in the same style as is
3109 already done for prop=revisions.
3110 * The following API modules will now return the content of revision-deleted
3111 fields, in addition to the "hidden" indicators, if the querying user has the
3112 necessary rights: list=logevents, list=usercontribs, prop=imageinfo,
3113 prop=revisions.
3114 * The above modules, where applicable, will now return entries filtered by
3115 revision-deleted fields if the querying user has the necessary rights. For
3116 example, prop=revisions with rvuser or rvexcludeuser will no longer skip
3117 revisions where the user was revision-deleted if the current user has the
3118 deletedhistory right.
3119 * The 'hideuser' right, used when blocking, is no longer necessary or
3120 sufficient for seeing contributions with revision-deleted in
3121 list=usercontribs.
3122 * list=watchlist now uses the querying user's rights rather than the wlowner's
3123 rights when checking whether wlprop=patrol is allowed.
3124 * (bug 32151) ApiWatch now has pageset capabilities (titles/pageids/generators).
3125 Title parameter is now deprecated.
3126 * (bug 23005) Added action=revisiondelete.
3127 * Added siprop=restrictions to API action=query&meta=siteinfo for querying
3128 possible page restriction (protection) levels and types.
3129 * Added prop 'limitreportdata' and 'limitreporthtml' to action=parse.
3130 * (bug 58627) Provide language names on action=parse&prop=langlinks.
3131 * Deprecated llurl= in favour of llprop=url for action=query&prop=langlinks.
3132 * Added llprop=langname and llprop=autonym for action=query&prop=langlinks.
3133 * prop=redirects is added, to return redirects to the pages in the query.
3134 * list=allredirects is added, to list all redirects pointing to a namespace.
3135 * (bug 42026) Added ucshow={new,!new,top,!top} to list=usercontribs.
3136 Also added newonly to action=feedcontributions.
3137 * (bug 42026) Deprecated uctoponly in favor of ucshow=top.
3138 * list=search no longer has a "srredirects" parameter. Redirects are now
3139 included in all searches.
3140 * Added list=prefixsearch that works like action=opensearch but can be used as
3141 a generator.
3142 * (bug 24782) Various modules will now use unique continuation parameters.
3143 * (bug 63249) Cache RecentChanges Atom feed in varnish for 15 seconds.
3144
3145 === Languages updated in 1.23 ===
3146
3147 MediaWiki supports over 350 languages. Many localisations are updated
3148 regularly. Below only new and removed languages are listed, as well as
3149 changes to languages because of Bugzilla reports.
3150
3151 * Support was added for Algerian Spoken Arabic (arq).
3152 * Support was added for Riograndenser Hunsrückisch (hrx).
3153 * Support was added for Northern Luri (lrc).
3154
3155 === Other changes in 1.23 ===
3156 * The rc_type field in the recentchanges table has been superseded by a new
3157 rc_source field. The rc_source field is a string representation of the
3158 change type where rc_type was a numeric constant. This field is not yet
3159 queried but will be in a future release.
3160 ** Utilize update.php to create and populate this new field. On larger wikis
3161 which do not wish to update recentchanges table in one large update please
3162 review the SQL and comments in maintenance/archives/patch-rc_source.sql.
3163 ** The rc_type field of recentchanges will be deprecated in a future release.
3164 * The global variable $wgArticle has been removed after a lengthy deprecation.
3165 * The global functions addButton and insertTags (for mw.toolbar.addButton and
3166 mw.toolbar.insertTags) now emits mw.log.warn when accessed.
3167 * The ExpandTemplates extension has been moved into MediaWiki core.
3168 * (bug 52812) Removed "Disable search suggestions" from Preference.
3169 * (bug 52809) Removed "Disable browser page caching" from Preference.
3170 * Three new modules intended for use by custom skins were added:
3171 'mediawiki.skinning.elements', 'mediawiki.skinning.content', and
3172 'mediawiki.skinning.interface', representing three levels of standard
3173 MediaWiki styling. Previously skin creators wishing to use them had to refer
3174 to the file names of appropriate files directly, which is now discouraged.
3175 * The modules 'skins.vector' and 'skins.monobook' have been renamed to
3176 'skins.vector.styles' and 'skins.monobook.styles', respectively,
3177 and their definition was changed not to include the common*.css files;
3178 the two skins now load the 'mediawiki.skinning.interface' module instead.
3179 * A page_links_updated field has been added to the page table.
3180 * SpecialPage::getTitle has been deprecated in favor of
3181 SpecialPage::getPageTitle.
3182 * BREAKING CHANGE: Two potentially backwards-incompatible changes have been made
3183 to the 'SpecialWatchlistQuery' hook's last parameter (array $values) to make
3184 the hook more consistent with the 'SpecialRecentChangesQuery' one:
3185 ** Several array keys have been renamed: hideMinor → hideminor,
3186 hideBots → hidebots, hideAnons → hideanons, hideLiu → hideliu,
3187 hidePatrolled → hidepatrolled, hideOwn → hidemyself.
3188 ** The parameter value is now a FormOptions object, not a plain array (array
3189 access operators should continue to work, as it implements the ArrayAccess
3190 interface).
3191 * Option to mark hooks as deprecated has been added.
3192 * (bug 52811) Preference "Enable section editing via [edit] links" was removed.
3193 * (bug 52813) Preference "Show table of contents (for pages with more than
3194 3 headings)" was removed.
3195 * (bug 52810) Preference "Justify paragraphs" was removed.
3196 * OutputPage::showErrorPage raises a notice if arguments are incoherent.
3197 * Thumbnails that keep failing to render in thumb.php will be rate-limited
3198 against further render attempts for 1 hour. $wgAttemptFailureEpoch can be
3199 altered to reset all rate-limited thumbnails at once.
3200 * (bug 56572) Builds of the OOjs and OOjs UI libraries are now available.
3201 * mw.loader.go and mw.loader.version have been removed.
3202 * (bug 52815) Preference "Enable simplified search bar (Vector skin only)"
3203 was removed.
3204 * A user_password_expires column has been added to the user table. The User
3205 object expects this column to exist. Use update.php to create this new field.
3206 * The jquery.delayedBind ResourceLoader module was deprecated in favor of the
3207 jquery.throttle-debounce module. It will be removed in MediaWiki 1.24.
3208 * mw.user.bucket has been deprecated.
3209 * On Special:PrefixIndex, a table#mw-prefixindex-list-table was changed to
3210 table.mw-prefixindex-list-table to avoid duplicate ids when the special page
3211 is transcluded.
3212 * (bug 62198) window.$j has been deprecated.
3213 * Preference "Disable link title conversion" was removed.
3214 * SpecialRecentChanges no longer includes any functionality for generating feeds
3215 - it has been factored out to ApiFeedRecentChanges. Old URLs redirect to new
3216 ones.
3217 * RecentChange::mExtra['lang'] is no longer set and should no longer be used.
3218 Extensions should read from other configuration variables, including
3219 $wgLocalInterwikis, to identify the current wiki.
3220 * Sections in the parser test framework have been renamed and the old
3221 section names are deprecated. Please use "!!wikitext" and "!!html"
3222 (or "!!html/php") instead of "!!input" and "!!result". This allows
3223 us to extend parser tests to accommodate additional input/output
3224 pairs, such as "!!html/parsoid" (for the output of the Parsoid
3225 parser, where it differs from the PHP parser).
3226 * Special:Search no longer has an "include redirects" option on the advanced
3227 tab. Redirects are now included in all searches.
3228 * mediawiki.api.category's getCategories() 'async' parameter was deprecated.
3229 * The locations of resources have been split between upstream libraries, now in
3230 resources/lib/, local libaries in resources/src/, and local forks of upstream
3231 libraries, also in resources/src/.
3232 * BREAKING CHANGE: The automatically-generated function closure with which
3233 ResourceLoader wraps all modules' JavaScript code now binds the identifier
3234 names 'jQuery' and '$' to the jQuery object of the version of jQuery that is
3235 bundled with MediaWiki. If you bind these names to other objects in global
3236 scope (like Zepto.js or document.querySelectorAll, for example) you will need
3237 to use different names to or re-bind them at the top of each
3238 ResourceLoader-loaded module.
3239 * (bug 52342) Preference "Remember my login" was removed.
3240 * The skin autodiscovery mechanism has been deprecated and will be removed in
3241 MediaWiki 1.25. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery
3242 for migration guide for creators and users of custom skins that relied on it.
3243
3244 ==== Removed classes ====
3245 * FakeMemCachedClient (deprecated in 1.18)
3246 * RdfMetaData (unused)
3247 * TitleDependency (unused)
3248 * TitleListDependency (unused)
3249 * WikiError (deprecated in 1.17)
3250 * WikiXmlError (deprecated in 1.17)
3251 * WikiErrorMsg (deprecated in 1.17)
3252
3253 ==== Renamed classes ====
3254 * CdbReader_DBA to CdbReaderDBA
3255 * CdbReader_PHP to CdbReaderPHP
3256 * CdbWriter_DBA to CdbWriterDBA
3257 * CdbWriter_PHP to CdbWriterPHP
3258 * DiffOp_Add to DiffOpAdd
3259 * DiffOp_Change to DiffOpChange
3260 * DiffOp_Copy to DiffOpCopy
3261 * DiffOp_Delete to DiffOpDelete
3262 * HWLDF_WordAccumulator to HWLDFWordAccumulator
3263 * LBFactory_Fake to LBFactoryFake
3264 * LBFactory_Multi to LBFactoryMulti
3265 * LBFactory_Simple to LBFactorySimple
3266 * LBFactory_Single to LBFactorySingle
3267 * LCStore_Accel to LCStoreAccel
3268 * LCStore_CDB to LCStoreCDB
3269 * LCStore_DB to LCStoreDB
3270 * LCStore_Null to LCStoreNull
3271 * LoadBalancer_Single to LoadBalancerSingle
3272 * LoadMonitor_MySQL to LoadMonitorMySQL
3273 * LoadMonitor_Null to LoadMonitorNull
3274 * LocalisationCache_BulkLoad to LocalisationCacheBulkLoad
3275 * csvStatsOutput to CsvStatsOutput
3276 * extensionLanguages to ExtensionLanguages
3277 * languages to Languages
3278 * statsOutput to StatsOutput
3279 * textStatsOutput to TextStatsOutput
3280 * wikiStatsOutput to WikiStatsOutput
3281
3282 ==== Removed methods ====
3283 * ApiBase::getValidNamespaces() (deprecated in 1.17)
3284 * ApiMain::setCachePrivate() (deprecated in 1.17)
3285 * ApiMain::setVaryCookie (deprecated in 1.17)
3286 * Article::doRedirect() (deprecated in 1.18)
3287 * Article::doUnwatch() (deprecated in 1.18)
3288 * Article::doWatch() (deprecated in 1.18)
3289 * Article::forUpdate() (deprecated in 1.18)
3290 * Article::markpatrolled() (deprecated in 1.18)
3291 * Article::unwatch() (deprecated in 1.18)
3292 * Article::watch() (deprecated in 1.18)
3293 * Block::clear() (deprecated in 1.18)
3294 * Block::decodeExpiry() (deprecated in 1.18)
3295 * Block::encodeExpiry() (deprecated in 1.18)
3296 * Block::forUpdate() (deprecated in 1.18)
3297 * Block::infinity() (deprecated in 1.18)
3298 * Block::load() (deprecated in 1.18)
3299 * Block::newFromDB() (deprecated in 1.18)
3300 * Block::normaliseRange() (deprecated in 1.18)
3301 * Block::parseExpiryInput() (deprecated in 1.18)
3302 * CategoryViewer::addSubcategory() (deprecated in 1.17)
3303 * EditPage::spamPage() (deprecated since 1.17)
3304 * Exif::getFormattedData() (deprecated in 1.18)
3305 * Exif::makeFormattedData() (deprecated in 1.18)
3306 * in_string (deprecated in 1.21)
3307 * Language::convertLinkToAllVariants() (deprecated in 1.17)
3308 * LanguageConverter::convertLinkToAllVariants() (deprecated in 1.17)
3309 * Linker::makeBrokenLink() (deprecated in 1.16)
3310 * Linker::makeBrokenLinkObj() (deprecated in 1.16)
3311 * Linker::makeColouredLinkObj() (deprecated in 1.16)
3312 * Linker::makeSizeLinkObj() (deprecated in 1.17)
3313 * MediaWiki::articleFromTitle() (deprecated in 1.18)
3314 * ParserOptions::getkin() (deprecated 1.18)
3315 * ProfilerSimple::getCpuTime (deprecated in 1.20)
3316 * Revision::revText() (deprecated in 1.17)
3317 * SkinTemplate::jstext() (deprecated in 1.21)
3318 * SpecialPage::__call() (deprecated in 1.17)
3319 * SpecialPage::executePath() (deprecated in 1.18)
3320 * SpecialPage::exists() (deprecated in 1.18)
3321 * SpecialPage::file() (deprecated in 1.18)
3322 * SpecialPage::func() (deprecated in 1.18)
3323 * SpecialPage::getGroup() (deprecated in 1.18)
3324 * SpecialPage::getPage() (deprecated in 1.18)
3325 * SpecialPage::getPageByAlias() (deprecated in 1.18)
3326 * SpecialPage::getLocalNameFor() (deprecated in 1.18)
3327 * SpecialPage::getRegularPages() (deprecated in 1.18)
3328 * SpecialPage::getRestrictedPages() (deprecated in 1.18)
3329 * SpecialPage::getTitleForAlias() (deprecated in 1.18)
3330 * SpecialPage::getUsablePages() (deprecated in 1.18)
3331 * SpecialPage::includable() (deprecated in 1.18)
3332 * SpecialPage::init()
3333 * SpecialPage::initAliasList() (deprecated in 1.18)
3334 * SpecialPage::initList() (deprecated in 1.18)
3335 * SpecialPage::name() (deprecated in 1.18)
3336 * SpecialPage::removePage() (deprecated in 1.18)
3337 * SpecialPage::resolveAlias() (deprecated in 1.18)
3338 * SpecialPage::resolveAliasWithSubpage() (deprecated in 1.18)
3339 * SpecialPage::restriction() (deprecated in 1.18)
3340 * SpecialPage::setGroup() (deprecated in 1.18)
3341 * SpecialRecentChanges::feedSetup()
3342 * SpecialRevisionDelete::extractBitField() (deprecated in 1.22)
3343 * User::getPageRenderingHash() (deprecated in 1.17)
3344 * WebRequest::getFileSize() (deprecated in 1.17)
3345 * WebRequest::isPathInfoBad() (deprecated in 1.17)
3346 * wfGenerateToken (deprecated in 1.20)
3347 * wfStreamFile (deprecated in 1.19)
3348 * wfUILang (deprecated in 1.18)
3349 * WikiPage::createUpdates() (deprecated in 1.18)
3350 * WikiPage::quickEdit() (deprecated in 1.18)
3351 * WikiPage::useParserCache() (deprecated in 1.18)
3352 * WikiPage::viewUpdates() (deprecated in 1.18)
3353
3354 ==== Removed globals ====
3355 * $wgBetterDirectionality (deprecated in 1.18)
3356
3357 = MediaWiki 1.22 =
3358
3359 == MediaWiki 1.22.15 ==
3360
3361 This is a security and maintenance release of the MediaWiki 1.22 branch.
3362
3363 === Changes since 1.22.14 ===
3364
3365 * (bug T76686) [SECURITY] thumb.php outputs wikitext message as raw HTML, which
3366 could lead to xss. Permission to edit MediaWiki namespace is required to
3367 exploit this.
3368 * (bug T77028) [SECURITY] Malicious site can bypass CORS restrictions in
3369 $wgCrossSiteAJAXdomains in API calls if it only included an allowed domain as
3370 part of its name.
3371 * (bug T74222) The original patch for T74222 was reverted as unnecessary.
3372
3373 == MediaWiki 1.22.14 ==
3374
3375 This is a security and maintenance release of the MediaWiki 1.22 branch.
3376
3377 === Changes since 1.22.13 ===
3378
3379 * (bugs 66776, 71478) SECURITY: User PleaseStand reported a way to inject code
3380 into API clients that used format=php to process pages that underwent flash
3381 policy mangling. This was fixed along with improving how the mangling was done
3382 for format=json, and allowing sites to disable the mangling using
3383 $wgMangleFlashPolicy.
3384 * (bug 70901) SECURITY: User Jackmcbarn reported that the ability to update
3385 the content model for a page could allow an unprivileged attacker to edit
3386 another user's common.js under certain circumstances. The user right
3387 "editcontentmodel" was added, and is needed to change a revision's content
3388 model.
3389 * (bug 72222) SECURITY: Do not show log action when the entry is revdeleted with
3390 DELETED_ACTION. NOTICE: this may be reverted in a future release pending a
3391 public RFC about the desired functionality. This issue was reported by user
3392 Bawolff.
3393 * (bug 71621) Make allowing site-wide styles on restricted special pages a
3394 config option.
3395 * $wgMangleFlashPolicy was added to make MediaWiki's mangling of anything that
3396 might be a flash policy directive configurable.
3397
3398 == MediaWiki 1.22.13 ==
3399 This is a maintenance release of the MediaWiki 1.22 branch.
3400
3401 === Changes since 1.22.12 ===
3402 * (bug 67440) Allow classes to be registered properly from installer
3403
3404 == MediaWiki 1.22.12 ==
3405 This is a security release of the MediaWiki 1.22 branch.
3406
3407 === Changes since 1.22.11 ===
3408 * (bug 70672) SECURITY: OutputPage: Remove separation of css and js module allowance.
3409
3410 == MediaWiki 1.22.11 ==
3411 This is a security release of the MediaWiki 1.22 branch.
3412
3413 === Changes since 1.22.10 ===
3414 * (bug 69008) SECURITY: Enhance CSS filtering in SVG files. Filter <style> elements; normalize style elements and attributes before filtering; add checks for attributes that contain css; add unit tests for html5sec and reported bugs.
3415
3416 == MediaWiki 1.22.10 ==
3417 This is a maintenance release of the MediaWiki 1.22 branch.
3418
3419 === Changes since 1.22.9 ===
3420 * (bug 64970) Fix support for blobs on DatabaseOracle::update
3421 * (bug 60719) In MediaWiki 1.22, the job queue execution on each page request was changed (Gerrit change 59797) so, instead of executing the job inside the same PHP process that's rendering the page, a new PHP cli command is spawned to execute runJobs.php in the background. It will only work if $wgPhpCli is set to an actual path or safe mode is off, otherwise, the old method will be used. https://www.mediawiki.org/wiki/Manual:Job_queue#Changes_introduced_in_MediaWiki_1.22 for more infomation. This change was in earlier releases of 1.22 but was not noted here until now.
3422
3423 == MediaWiki 1.22.9 ==
3424 This is a security and maintenance release of the MediaWiki 1.22 branch.
3425
3426 === Changes since 1.22.8 ===
3427 * (bug 68187) SECURITY: Prepend jsonp callback with comment.
3428 * (bug 66608) SECURITY: Fix for XSS issue in bug 66608: Generate the URL used for loading a new page in Javascript,instead of relying on the URL in the link that has been clicked.
3429 * (bug 65778) SECURITY: Copy prevent-clickjacking between OutputPage and ParserOutput.
3430 * (bug 59147) The img_metadata field was not being decoded from bytea into text.
3431
3432 == MediaWiki 1.22.8 ==
3433 This is a security and maintenance release of the MediaWiki 1.22 branch.
3434
3435 === Changes since 1.22.7 ===
3436 * (bug 65839) SECURITY: Prevent external resources in SVG files.
3437 * (bug 66428) MimeMagic: Don't seek before BOF. This has weird side effects like only extracting the tail of the file partially or not at all.
3438
3439 == MediaWiki 1.22.7 ==
3440 This is a security and maintenance release of the MediaWiki 1.22 branch.
3441
3442 === Changes since 1.22.6 ===
3443 * (bug 65501) SECURITY: Don't parse usernames as wikitext on Special:PasswordReset.
3444 * (bug 36356) Add space between two feed links.
3445 * (bug 63269) Email notifications were not correctly handling the MediaWiki:Helppage message being set to a full URL. This is a regression from the 1.22.5 point release, which made the default value for it a URL. If you customized MediaWiki:Enotif body (the text of email notifications), you'll need to edit it locally to include the URL via the new variable $HELPPAGE instead of the parser functions fullurl and canonicalurl; otherwise you don't have to do anything.
3446 Add missing uploadstash.us_props for PostgreSQL.
3447 * (bug 56047) Fixed stream wrapper in PhpHttpRequest.
3448
3449 == MediaWiki 1.22.6 ==
3450 This is a security release of the MediaWiki 1.22 branch.
3451
3452 === Changes since 1.22.5 ===
3453 * (bug 63251) SECURITY: Escape sortKey in pageInfo.
3454
3455 == MediaWiki 1.22.5 ==
3456 This is a security and maintenance release of the MediaWiki 1.22 branch.
3457
3458 === Changes since 1.22.4 ===
3459 * (bug 62497) SECURITY: Add CSRF token on Special:ChangePassword.
3460 * (bug 62467) Set a title for the context during import on the cli.
3461 * Fix custom local MediaWiki:Helppage values.
3462 * mediawiki.js: Fix documentation breakage.
3463 * (bug 58153) Make MySQLi work with non standard port.
3464 * (bug 53887) Reintroduced a link to help pages in the default sidebar, that any sysop can customize by editing MediaWiki:Sidebar locally. The link now points to a mediawiki.org page which is guaranteed to exist. Nothing needs to be done on your end, but remember to adjust MediaWiki:Sidebar for the needs of your wikis. Everyone can help with the shared documentation by translating: https://www.mediawiki.org/wiki/Special:Translate/agg-Help_pages .
3465 * (bug 53888) Corrected a regression in 1.22 which introduced red links on the login page. If you previously installed 1.22.x and have created a local page to make the red link blue, write its title as in MediaWiki:helplogin-url if you didn't already. Otherwise, you don't need to do anything, but you can translate the help page at https://www.mediawiki.org/wiki/Help:Logging_in .
3466
3467 == MediaWiki 1.22.4 ==
3468 This is a maintenance release of the MediaWiki 1.22 branch.
3469
3470 === Changes since 1.22.3 ===
3471 * Use the correct branch of the extensions' git repositories.
3472
3473 == MediaWiki 1.22.3 ==
3474 This is a security and bugfix release of the MediaWiki 1.22 branch.
3475
3476 === Changes since 1.22.2 ===
3477 * (bug 60771) SECURITY: Disallow uploading SVG files using non-whitelisted namespaces. Also disallow iframe elements. * User will get an error including the namespace name if they use a non- whitelisted namespace.
3478 * (bug 61346) SECURITY: Make token comparison use constant time. It seems like our token comparison would be vulnerable to timing attacks. This will take constant time.
3479 * (bug 61362) SECURITY: API: Don't find links in the middle of api.php links.
3480 * (bug 53710) Add sequence support for upsert in DatabaseOracle in the same way as in selectInsert
3481 * (bug 60231, bug 58719) Various fixes to job running code in Wiki.php: Make it async on Windows. Fixed possible "invalid filename" errors on Windows. Redirect output to dev/null to avoid hanging PHP.
3482 * (bug 60083) Correct sequence name for fresh Postgres installation. Spotted by gebhkla
3483 * (bug 60531) Avoid variable naming conflicts in DatabasePostgres::selectSQLText. Spotted by gebhkla
3484 * (bug 60094) Fix rebuildall.php fatal error with PostgreSQL.
3485 * (bug 43817) Add error handling if descriptionmsg isn't defined for extension.
3486 * (bug 60543) Special:PrefixIndex omits stripprefix=1 for "Next page" link.
3487
3488 == MediaWiki 1.22.2 ==
3489 This is a security and bugfix release of the MediaWiki 1.22 branch.
3490
3491 === Changes since 1.22.1 ===
3492 * (bug 60339) SECURITY: Sanitize shell arguments to DjVu files, and other media formats
3493 * (bug 58253) Check for very old PCRE versions in installer and updater
3494 * (bug 60054) Make WikiPage::$mPreparedEdit public
3495
3496 == MediaWiki 1.22.1 ==
3497 This is a security and maintenance release of the MediaWiki 1.22 branch.
3498
3499 === Changes since 1.22.0 ===
3500 * (bug 57550) SECURITY: Disallow stylesheets in SVG Uploads
3501 * (bug 58088) SECURITY: Don't normalize U+FF3C to \ in CSS Checks
3502 * (bug 58472) SECURITY: Disallow -o-link in styles
3503 * (bug 58553) SECURITY: Return error on invalid XML for SVG Uploads
3504 * (bug 58699) SECURITY: Fix RevDel log entry information leaks
3505 * (bug 58178) Restore compatibility with curl < 7.16.2.
3506 * (bug 56931) Updated the plural rules to CLDR 24. They are in new format which is detailed in UTS 35 Rev 33. The PHP parser and evaluator as well as the JavaScript evaluator were updated to support the new format. Plural rules for some languages have changed, most notably Russian. Affected software messages have been updated and marked for review at translatewiki.net. This change is backported from the development branch of MediaWiki 1.23.
3507 * (bug 58434) The broken installer for database backend Oracle was fixed.
3508 * (bug 58167) The web installer no longer throws an exception when PHP is compiled without support for MySQL yet with support for another DBMS.
3509 * (bug 58640) Fixed a compatibility issue with PCRE 8.34 that caused pages to appear blank or with missing text.
3510 * (bug 47055) Changed FOR UPDATE handling in Postgresql
3511 * (bug 57026) Avoid extra parsing in prepareContentForEdit()
3512
3513 == MediaWiki 1.22.0 ==
3514
3515 === Configuration changes in 1.22 ===
3516 * $wgRedirectScript was removed. It was unused.
3517 * Removed $wgLocalMessageCacheSerialized, it is now always true.
3518 * $wgVectorUseIconWatch is now enabled by default.
3519 * $wgCascadingRestrictionLevels was added.
3520 * ftps, ssh, sftp, xmpp, sip, sips, tel, sms, bitcoin, magnet, urn, and geo
3521 have been whitelisted inside of $wgUrlProtocols.
3522 * $wgDocType and $wgDTD have been removed and are no longer used for the DOCTYPE.
3523 * $wgHtml5 is no longer used by core. Setting it to false will no longer disable HTML5.
3524 It is still set to true for extension compatibility but doing so in extensions is deprecated.
3525 * $wgXhtmlDefaultNamespace is no longer used by core. Setting it will no longer change the
3526 xmlns used by MediaWiki. Reliance on this variable by extensions is deprecated.
3527 * $wgHandheldStyle was removed.
3528 * $wgHandheldForIPhone was removed.
3529 * $wgJsMimeType is no longer used by core. Most usage has been removed since
3530 HTML output is now exclusively HTML5.
3531 * $wgDBOracleDRCP added. True enables persistent connection with DRCP on Oracle.
3532 * $wgLogAutopatrol added to allow disabling logging of autopatrol edits in the logging table.
3533 Default for $wgLogAutopatrol is true.
3534 * The 'edit' right no longer allows for editing a user's own CSS and JS.
3535 * New rights 'editmyusercss', 'editmyuserjs', 'viewmywatchlist',
3536 'editmywatchlist', 'viewmyprivateinfo', 'editmyprivateinfo', and
3537 'editmyoptions' restrict actions that were formerly allowed by default. They
3538 have been added to the default for $wgGroupPermissions['*'].
3539 * The 'editprotected' right no longer allows bypassing of all page protection
3540 restrictions. Any group using it for this purpose will now need to have all
3541 the individual rights listed in $wgRestrictionTypes for the same effect.
3542 * The 'protect' and 'autoconfirmed' rights are no longer used for the default
3543 page protection levels. The rights 'editprotected' and 'editsemiprotected'
3544 are now used for this purpose instead.
3545 * (bug 40866) wgOldChangeTagsIndex removed.
3546 * $wgNoFollowDomainExceptions now only matches entire domains. For example,
3547 an entry for 'bar.com' will still match 'foo.bar.com' but not 'foobar.com'.
3548 * $wgCopyUploadTimeout and $wgCopyUploadAsyncTimeout added to change the timeout times for
3549 fetching the file during upload by url.
3550 * New key added to $wgGalleryOptions - $wgGalleryOptions['mode'] to set
3551 default gallery mode.
3552 * New hook 'GalleryGetModes' to allow extensions to make new gallery modes.
3553 * The checkbox for staying in HTTPS displayed on the login form when $wgSecureLogin is
3554 enabled has been removed. Instead, whether the user stays in HTTPS will be determined
3555 based on the user's preferences, and whether they came from HTTPS or not.
3556 * $wgRC2UDPAddress, $wgRC2UDPInterwikiPrefix, $wgRC2UDPOmitBots, $wgRC2UDPPort,
3557 and $wgRC2UDPPrefix configuration options have been deprecated in favor of a
3558 $wgRCFeeds configuration array. $wgRCFeeds makes both the format and
3559 destination of recent change notifications customizable, and allows for
3560 multiple destinations to be specified.
3561 * (bug 53862) portal-url, currentevents-url and helppage have been removed from the
3562 default Sidebar.
3563 * The 'vector-simplesearch' preference is now enabled by default. Previously
3564 it was only enabled if the Vector extension was installed.
3565 * The precise format of metric datagrams produced by the UDP profiler and stats counter
3566 may now be specified as $wgUDPProfilerFormatString and $wgStatsFormatString,
3567 respectively.
3568 * (bug 54597) $wgBlockOpenProxies, $wgProxyPorts, $wgProxyScriptPath, and
3569 $wgProxyMemcExpiry have been removed, along with the open proxy scanner
3570 script they were added for.
3571 * Default value of $wgMaxShellMemory has been tripled (it's now 300 MB).
3572
3573 === New features in 1.22 ===
3574 * You can now install extensions using Composer.
3575 See https://www.mediawiki.org/wiki/Composer
3576 * (bug 44525) mediawiki.jqueryMsg can now parse (whitelisted) HTML elements and attributes.
3577 * (bug 33454) Language::sprintfDate now has a timezone parameter, and supports
3578 the "eIOPTZ" formatting characters.
3579 * EditWarning: A warning is shown when an editor leaves the edit form without
3580 saving (enabled by default, users can opt-out via the 'useeditwarning'
3581 preference). This feature was moved from the Vector extension, and is now part
3582 of core for all skins. Take care when upgrading that you don't use an older
3583 version of the Vector extension as this feature may conflict.
3584 * New 'mediawiki.ui' CSS module providing mw-ui-* styles for buttons and a
3585 compact vertical form layout.
3586 * HTMLForm supports a new display format 'vform' which applies this compact vertical
3587 layout and button styling. Special:PasswordReset uses this format.
3588 * New versions of login (Special:UserLogin) and create account
3589 (Special:UserLogin/signup) forms using the "vform" compact vertical form layout.
3590 These forms use new messages that assume a "Help logging in" link, see
3591 https://www.mediawiki.org/wiki/Manual:Page_customizations;
3592 https://www.mediawiki.org/wiki/Account_creation_user_experience/Strings lists the
3593 message key changes.
3594 * (bug 23343) Implemented ability to apply IP blocks to the contents of X-Forwarded-For headers
3595 by adding a new configuration variable $wgApplyIpBlocksToXff (disabled by default).
3596 * The new hook 'APIGetPossibleErrors' to modify the list of possible errors was
3597 added.
3598 * (bug 25592) LogEventsList::showLogExtract() will now ignore various
3599 Pager-related WebRequest parameters by default, as this is overwhelmingly
3600 likely to be what was intended by users of the method. If any caller wishes
3601 to use these parameters, the new param 'useRequestParams' may be set to true.
3602 * mw.util.addPortletLink: Tooltip is no longer required to be plain (without
3603 an accesskey in it already). As such it now rountrips. Creating a link with a
3604 message as tooltip, grabbing the title attribute and using it to create
3605 another portlet will work as expected.
3606 * (bug 6747) {{ROOTPAGENAME}} introduced, contains the name of the topmost
3607 page without namespace.
3608 * BREAKING CHANGE: (bug 41729) Display editsection links next to headings. Also
3609 change their class name from .editsection to .mw-editsection and place them at
3610 the end of the heading element instead of the beginning. Client-side code and
3611 screen-scrapers will have to be adjusted to handle both cases (old HTML will
3612 still be visible on cached page renders until they are purged); extensions
3613 using the DoEditSectionLink or EditSectionLink hooks might need adjustments as
3614 well.
3615 * (bug 45535) introduced the new 'LanguageLinks' hook for manipulating the
3616 language links associated with a page before display.
3617 * Chosen (http://harvesthq.github.io/chosen/) was added as module 'jquery.chosen'
3618 * HTMLForm will turn multiselect checkboxes into a Chosen interface when setting cssclass 'mw-chosen'
3619 * rebuildLocalisationCache learned --lang option. Let you rebuild l10n caches
3620 of the specified languages instead of all of them.
3621 * New GetNewMessagesAlert hook allowing extensions to disable or modify the new
3622 messages alert
3623 * New wgUserNewMsgRevisionId JS global for logged in users. This will be null
3624 if the user has no new talk page messages. Otherwise it will be set to the
3625 revision ID of the oldest new talk page message. This will allow gadgets and
3626 extensions to create their own new message alerts on the client side.
3627 * mediawiki.log: Added log.warn wrapper (uses console.warn and console.trace).
3628 * mediawiki.log: Implemented log.deprecate. This method defines a property and
3629 uses ES5 getter/setter to emit a warning when they are used.
3630 * $wgCascadingRestrictionLevels was added, allowing one to specify restriction levels
3631 which can be cascading (previously 'sysop' was hard-coded as the only one).
3632 * XHTML5 support has been improved. If you set $wgMimeType = 'application/xhtml+xml'
3633 MediaWiki will try outputting markup according to XHTML5 rules.
3634 * Altered hook 'ProtectionForm::save', adding the reason page protection is
3635 changed as third parameter.
3636 * New hook 'TitleSquidURLs' for manipulating the list of URLs to be purged from
3637 HTTP caches when a page is changed.
3638 * Changed the patrolling system to always show the link for patrolling in case the
3639 current revision is patrollable. This also removed the usage of the rcid URI parameters.
3640 * Oracle DB backend now supports Database Resident Connection Pooling (DRCP).
3641 Can be enabled by setting $wgDBOracleDRCP=true.
3642 Requires Oracle DB 11gR1 or above, enabled DRCP inside the DB itself and a
3643 propper connect string.
3644 More about DRCP can be found at:
3645 http://www.oracle-base.com/articles/11g/database-resident-connection-pool-11gr1.php
3646 * Add a new parameter $patrolFooterShown to hook ArticleViewFooter so the hook
3647 handlers can take further action based on the status of the patrol footer
3648 * A new hook TitleQuickPermissions was added to allow overriding of quick
3649 permissions in the Title class.
3650 * LinkCache singleton can now be altered or cleared, letting one to specify
3651 another instance that does not rely on a database backend.
3652 * MediaWiki's PHPUnit tests can now use PHPUnit installed using composer --dev.
3653 * (bug 43689) The lists of templates used on the page and hidden categories it
3654 is a member of, shown below the edit form, are now collapsible (and collapsed
3655 by default).
3656 * Parser profiling data, formerly only available in the "NewPP limit report"
3657 HTML comment, is now also displayed at the bottom of page previews.
3658 * Added ParserLimitReportPrepare and ParserLimitReportFormat hooks, deprecated
3659 ParserLimitReport hook.
3660 * New user rights have been added to increase granularity in rights management
3661 for extensions such as OAuth:
3662 ** editmyusercss controls whether a user may edit their own CSS subpages.
3663 ** editmyuserjs controls whether a user may edit their own JS subpages.
3664 ** viewmywatchlist controls whether a user may view their watchlist.
3665 ** editmywatchlist controls whether a user may edit their watchlist.
3666 ** viewmyprivateinfo controls whether a user may access their private
3667 information (e.g. registered email address, real name).
3668 ** editmyprivateinfo controls whether a user may change their private
3669 information.
3670 ** editmyoptions controls whether a user may change their preferences.
3671 * Add new hook AbortTalkPageEmailNotification, this will be used to determine
3672 whether to send the regular talk page email notification
3673 * Action classes registered in $wgActions are now also supported in the form of
3674 a callback (which returns an instance of Action) instead of providing the name
3675 of a subclass of Action.
3676 * (bug 46513) Vector: Add the collapsibleTabs script from the Vector extension.
3677 * Added $wgRecentChangesFlags for defining new flags for RecentChanges and
3678 watchlists.
3679 * (bug 40518) mw.toolbar: Implemented mw.toolbar.addButtons for adding multiple
3680 button objects in one call.
3681 * Rights used for the default protection levels ('sysop' and 'autoconfirmed')
3682 are now used just for that purpose, instead of overloading other rights. This
3683 allows easy granting of the ability to edit sysop-protected pages without
3684 also granting the ability to protect and unprotect.
3685 * (bug 48256) Make brackets in section edit links accessible to CSS.
3686 They are now wrapped in <span class="mw-editsection-bracket" />.
3687 * (bug 8480) Allow handler specific parameters in galleries (like page number)
3688 * jquery.client: Add detection for Opera 15 and Internet Explorer 11.
3689 * Change tags (used by the AbuseFilter extension) are now shown on diff pages.
3690 * Change tag lists (shown on recent changes, watchlist, user contributions,
3691 history pages, diff pages) now include a link to Special:Tags to distinguish
3692 them from edit summaries.
3693 * Added a new method and hook, User::isEveryoneAllowed() and
3694 UserIsEveryoneAllowed, for use in situations where a "does everyone have this
3695 right?" check is used to avoid more expensive checks.
3696 * (bug 14431) Display "(No difference)" instead of an empty diff (when comparing
3697 revisions in the history or when previewing changes while editing).
3698 * New hook 'IsUploadAllowedFromUrl' is added which can be used to intercept uploads by
3699 URL, useful for blacklisting specific URLs
3700 * (bug 21912) Watchlist token implementation has been refactored and
3701 Special:ResetTokens was added to allow users to reset their tokens
3702 instead of presenting them in Preferences.
3703 * Special:PrefixIndex now lets you strip the searched prefix from the displayed
3704 titles. Given a list of articles named Bug1, Bug2, you can now transclude the
3705 list of bug numbers using: {{Special:PrefixIndex/Bug|stripprefix=1}}.
3706 The special page form received a new checkbox matching that option.
3707 * (bug 23580) Implement javascript callback interface "mw.hook".
3708 * (bug 30713) New mw.hook "wikipage.content".
3709 * (bug 40430) jquery.placeholder gets a new parameter to set the attribute value
3710 to be used.
3711 * $wgHTCPMulticastRouting renamed $wgHTCPRouting since it accepts unicast.
3712 * $wgHTCPRouting rules can now be passed an array of hosts/ports to send purge
3713 too. Can be used whenever several multicast group could be interested by a
3714 specific purge.
3715 * (bug 25931) Add Special:RandomInCategory.
3716 * mediawiki.util: addPortletLink now supports passing a jQuery object as nextnode.
3717 * <wbr> can now be used inside WikiText.
3718 * WebResponse::setcookie is much more featureful. Callers using PHP's
3719 setcookie() or setrawcookie() should begin using this instead.
3720 * New hook WebResponseSetCookie, called from WebResponse::setcookie().
3721 * New hook ResetSessionID, called when the session id is reset.
3722 * Add a mode parameter to <gallery> tag with potential options of "traditional",
3723 "nolines", "packed", "packed-overlay", or "packed-hover".
3724 * (bug 47399) A success message is now displayed after changing the password.
3725 * Make thumb.php give HTTP redirects for file redirects
3726 * (bug 30607) Special:ListFiles can now show old versions of files. Additionally
3727 Special:AllMyUploads was introduced so the user can get a list of all things
3728 they have ever uploaded, even if it was subsequently overridden.
3729 * Introduced Special:MyFiles and Special:AllMyFiles as an alias for Special:MyUploads
3730 and Special:AllMyUploads respectively.
3731 * IPv6 addresses in X-Forwarded-For headers are now normalised before checking
3732 against allowed proxy lists.
3733 * Add deferrable update support for callback/closure.
3734 * Add TitleMove hook before page renames.
3735 * Revision deletion backend code is moved out of SpecialRevisiondelete
3736 * Added {{REVISIONSIZE}} variable to get the current size of a revision.
3737 * Add support for the LESS stylesheet language to ResourceLoader. LESS is a
3738 stylesheet language that compiles into CSS. ResourceLoader file modules may
3739 include LESS style files; ResourceLoader will compile these files into CSS
3740 before sending them to the client.
3741 ** The $wgResourceLoaderLESSVars configuration variable is an associative array
3742 mapping variable names to string CSS values. These variables are considered
3743 declared for all LESS files. Additional variables may be registered by
3744 adding keys to the array.
3745 ** $wgResourceLoaderLESSFunctions is an associative array of custom LESS
3746 function names to PHP callables. See <http://leafo.net/lessphp/docs/#custom_functions>
3747 for more details regarding custom functions.
3748 ** $wgResourceLoaderLESSImportPaths is an array of file system paths. Files
3749 referenced in LESS '@import' statements are looked up here first.
3750 * ResourceLoader supports hashes as module cache invalidation trigger (instead
3751 of or in addition to timestamps).
3752 * Added $wgExtensionEntryPointListFiles for use in mergeMessageFileList.php.
3753 * Added a hook, APIQuerySiteInfoStatisticsInfo, to allow extensions to modify
3754 the output of the API query meta=siteinfo&siprop=statistics
3755 * Primary keys have been added to both the archive table and the externallinks
3756 tables.
3757 * Added $wgEnableParserLimitReporting to control whether the NewPP limit report is
3758 output in a HTML comment.
3759 * The 'UnwatchArticle' and 'WatchArticle' hooks now support a Status object
3760 instead of just a boolean return value to abort the hook.
3761 * Added a hook, SpecialWatchlistGetNonRevisionTypes, to allow extensions
3762 with custom recentchanges entries to hook into the Watchlist without
3763 clobbering each other.
3764 * A hidden, empty input field was added to the edit form, and any edit that fills
3765 it in will be rejected. This prevents against the simplest form of spambots.
3766 Previously in the "SimpleAntiSpam" extension by Ryan Schmidt.
3767 * populateRevisionLength.php maintenance script updated to also populate
3768 archive.ar_len field.
3769 * (bug 43571) DatabaseMySQLBase learned to list views, optionally filtered by a
3770 prefix. Also fixed PHPUnit test suite when using a MySQL backend containing
3771 views.
3772
3773 === Bug fixes in 1.22 ===
3774 * (bug 47271) $wgContentHandlerUseDB should be set to false during the upgrade
3775 * Disable Special:PasswordReset when $wgEnableEmail is false. Previously one
3776 could still navigate to the page by entering the URL directly.
3777 * (bug 47138) Fixed a fatal error when a blocked user tries to automatically
3778 create an account on login due external authentication in some circumstances.
3779 * (bug 23393) HTML <hN> headings containing line breaks are now handled
3780 correctly.
3781 * (bug 45803) Whitespace within == Headline == syntax and within <hN> headings
3782 is now non-significant and not preserved in the HTML output.
3783 * (bug 47218) Special:BlockList now handles correctly user names with spaces
3784 when passed as subpage.
3785 * Pager's properly validate which fields are allowed to be sorted on.
3786 * mw.util.tooltipAccessKeyRegexp: The regex now matches "option-" as well.
3787 Support for Mac "option" was added in 1.16, but the regex was never updated.
3788 * (bug 46768) Usernames of blocking users now display correctly, even if numeric.
3789 * (bug 39590) Self-transclusions now show the most up to date result always
3790 after save instead of being a revision behind.
3791 * A bias in wfRandomString() toward digits 1-7 has been corrected. Generated
3792 strings will now start with digits 0 and 8-f as often as they should.
3793 * (bug 45371) Removed Parser_LinkHooks and CoreLinkFunctions classes.
3794 * (bug 41545) Allow <kbd>, <samp>, and <var> to be nested like allowed in html.
3795 * PLURAL magic word no longer causes a PHP notice when no matching form exists.
3796 * (bug 36641) Patrol page links no longer show on non-existent revisions.
3797 * (bug 35810) Pages not linked from Special:RecentChanges or Special:NewPages
3798 are patrollable now.
3799 * (bug 30213) JavaScript for search suggestions is now disabled when the API
3800 is disabled, and AJAX patrolling and watching are now disabled when use of
3801 the write API is not allowed.
3802 * (bug 48294) API: Fix chunk upload async mode.
3803 * (bug 46749) Broken files tracking category removed from pages if an image
3804 with that name is uploaded.
3805 * (bug 14176) System messages that are empty were previously incorrectly treated
3806 as non-existent, causing a fallback to the default. This stopped users from
3807 overriding system messages to make them blank.
3808 * (bug 48319) action=parse no longer returns an error if passed none of 'oldid',
3809 'pageid', 'page', 'title', and 'text' (e.g. if only passed 'summary'). A
3810 warning will instead be issued if 'title' is non-default, unless no props are
3811 requested.
3812 * Special:Recentchangeslinked will now include upload log entries
3813 * (bug 41281) Fixed ugly output if file size could not be extracted for multi-page media.
3814 * (bug 50315) list=logevents API module will now output log entries by anonymous users.
3815 * (bug 38911) Handle headers with rowspan in jquery.tablesorter
3816 * (bug 658) Converted the table of contents on wiki pages from <table> to <div>
3817 and adjusted skin CSS accordingly. The CSS was carefully crafted to be
3818 backwards-compatible in all reasonable cases (uses of the __TOC__ magic word,
3819 the #toc CSS id and the .toc CSS class). However, particularly bad abuse of
3820 the id or the class can possibly break.
3821 * CSSJanus now supports rgb, hsl, rgba, and hsla color syntaxes.
3822 * Special:Listfiles can no longer be sorted by image name when filtering
3823 by user in miser mode.
3824 * (bug 49074) CSSJanus: Handle values of border-radius correctly.
3825 * Handle relative inclusions ({{../name}}) in main namespace with subpages
3826 enabled correctly (previously MediaWiki tried to include Template:Parent/name
3827 instead of just Parent/name).
3828 * Added $wgAPIUselessQueryPages to allow extensions to flag their query pages
3829 for non-inclusion in ApiQueryQueryPages.
3830 * (bug 50870) mediawiki.notification: Notification area should remain visible
3831 when scrolled down.
3832 * (bug 13438) Special:MIMESearch no longer an expensive special page.
3833 * (bug 48342) Fixed a fatal error when $wgValidateAllHtml is set to true and
3834 the function apache_request_headers() function is not available.
3835 * (bug 33399) LivePreview: Re-run wikipage content handlers
3836 (jquery.makeCollapsible, jquery.tablesorter) after preview content is loaded.
3837 * (bug 51891) Fixed PHP notice on Special:PagesWithProp when no properties
3838 are defined.
3839 * (bug 52006) Corrected documentation of $wgTranscludeCacheExpiry.
3840 * (bug 52077) The APIEditBeforeSave hook is giving the content of the whole
3841 revision as second argument now, rather than just the current section.
3842 * (bug 49694) $wgSpamRegex is now also applied on the new section headline text
3843 adding a new topic on a page
3844 * (bug 41756) Improve treatment of multiple comments on a blank line.
3845 * (bug 51064) Purge upstream caches when deleting file assets.
3846 * (bug 39012) File types with a mime that we do not know the extension for
3847 can no longer be uploaded as an extension that we do know the mime type
3848 for.
3849 * (bug 51742) Add data-sort-value for better sorting of hitcounts Special:Tags
3850 * (bug 26811) On DB error pages, server hostnames are now hidden when both
3851 $wgShowHostnames and $wgShowSQLErrors are false.
3852 * (bug 6200) line breaks in <blockquote> are handled like they are in <div>
3853 * (bug 14931) Default character set now set to 'utf8' when a new MySQL
3854 database is created.
3855 * (bug 47191) Fixed "Column 'si_title' cannot be part of FULLTEXT index"
3856 MySQL error when installing using the binary character set option.
3857 * (bug 45288) Support mysqli PHP extension
3858 * (bug 55818) BREAKING CHANGE: Removed undocumented 'Debug' hook in wfDebug.
3859 This resolves an infinite loop when using $wgDebugFunctionEntry = true.
3860 * (bug 56707) Correct tooltip of "Next n results" on query special pages.
3861 * (bug 56770) mw.util.addPortletLink: Check length before access array index.
3862
3863 === API changes in 1.22 ===
3864 * (bug 25553) The JSON output formatter now leaves forward slashes unescaped
3865 to improve human readability of URLs and similar strings. Also, a "utf8"
3866 option is now provided to use UTF-8 encoding instead of hex escape codes
3867 for most non-ASCII characters.
3868 * (bug 46626) xmldoublequote parameter was removed. Because of a bug, the
3869 parameter has had no effect since MediaWiki 1.16, and so its removal is
3870 unlikely to impact existing clients.
3871 * (bug 47216) action=query&meta=siteinfo&siprop=skins will now indicate which
3872 skin is the default and which are unusable (e.g. listed in $wgSkipSkins).
3873 * (bug 25325) Added support for wlshow filtering (bots/anon/minor/patrolled)
3874 to action=feedwatchlist.
3875 * WDDX formatted output will actually be formatted (and normal output will no
3876 longer be), and will no longer choke on booleans.
3877 * action=opensearch no longer silently ignores the format parameter.
3878 * action=opensearch now supports format=jsonfm.
3879 * list=usercontribs&ucprop=ids will now include the parent revision id.
3880 * BREAKING CHANGE: action=parse no longer returns all langlinks for the page
3881 with prop=langlinks by default. The new effectivelanglinks parameter will
3882 request that the LanguageLinks hook be called to determine the effective
3883 language links.
3884 * BREAKING CHANGE: list=allpages, list=langbacklinks, and prop=langlinks do not
3885 apply the new LanguageLinks hook, and thus only consider language links
3886 stored in the database.
3887 * (bug 47219) Allow specifying change type of Wikipedia feed items
3888 * prop=imageinfo now allows setting iiurlheight without setting iiurlwidth
3889 * prop=info now adds the content model and page language of the title.
3890 * New upload log entries will now contain information on the relevant
3891 image (sha1 and timestamp).
3892 * (bug 49239) action=parse now can parse in preview and section preview modes.
3893 * (bug 49259) action=patrol now accepts revision ids.
3894 * (bug 48129) list=blocks&bkip= now correctly handles IPv6 CIDR ranges and
3895 honors $wgBlockCIDRLimit. Note any clients passing invalid values to bkip
3896 will now receive an error, rather than the previous behavior listing all
3897 user blocks.
3898 * (bug 48201) action=parse&text=foo now assumes wikitext if no title is given,
3899 rather than using the content model of the page "API".
3900 * action=watch no longer silently ignores hook abort.
3901 * (bug 50785) action=purge with forcelinkupdate=1 no longer queues refreshLinks
3902 jobs in the job queue for link table updates of pages that use the given page
3903 as a template. Instead, forcerecursivelinkupdate=1 is introduced and should
3904 be used if that behaviour is desirable.
3905 * The 'debugLog' property (enabled by $wgDebugToolbar) no longer sets the log
3906 entry values through ApiResult::content but directly. This changes the JSON
3907 output from an array of objects with content in '*' to an array of strings
3908 with the content.
3909 * (bug 51342) prop=imageinfo iicontinue now contains the dbkey, not the text
3910 version of the title.
3911 * (bug 52538) action=edit will now use empty text instead of the contents
3912 of section 0 when passed prependtext or appendtext with section=new.
3913 * Support for the 'gettoken' parameter to action=block and action=unblock,
3914 deprecated since 1.20, has been removed.
3915 * (bug 49090) Token-getting functions will fail when using jsonp callbacks.
3916 * (bug 52699) action=upload returns normalized file name on warning
3917 "exists-normalized" instead of filename to be uploaded to.
3918 * (bug 53884) action=edit will now return an error when the specified section
3919 does not exist in the page.
3920 * Added meta=filerepoinfo API module for getting information about foreign
3921 file repositories, and related ForeignAPIRepo methods getInfo and getApiUrl.
3922 * The new query module list=allfileusages to enumerate file usages was added.
3923
3924 === Languages updated in 1.22 ===
3925
3926 MediaWiki supports over 350 languages. Many localisations are updated
3927 regularly. Below only new and removed languages are listed, as well as
3928 changes to languages because of Bugzilla reports.
3929
3930 * Batak Toba (bbc-latn) added.
3931 * (bug 46751) Made Buryat (Russia) (буряад) (bxr) fallback to Russian.
3932
3933 === Other changes in 1.22 ===
3934 * BREAKING CHANGE: Implementation of MediaWiki's JS and JSON value encoding
3935 has changed:
3936 ** MediaWiki no longer supports PHP installations in which the native JSON
3937 extension is missing or disabled.
3938 ** XmlJsCode objects can no longer be nested inside objects or arrays.
3939 (For Xml::encodeJsCall(), this individually applies to each argument.)
3940 ** The sets of characters escaped by default, along with the precise escape
3941 sequences used, have changed (except for the Xml::escapeJsString()
3942 function, which is now deprecated).
3943 * BREAKING CHANGE: The Services_JSON class has been removed. If necessary,
3944 be sure to upgrade affected extensions at the same time (e.g. Collection).
3945 * redirect.php was removed. It was unused.
3946 * ClickTracking integration was dropped from the mediaWiki.user.bucket
3947 JavaScript function. The 'tracked' option is now ignored.
3948 * BREAKING CHANGE: Legacy skins Simple, MySkin, Chick, Standard and Nostalgia
3949 were all removed. (Nostalgia was moved to an extension.) The SkinLegacy and
3950 LegacyTemplate classes that supported them were removed as well and are now a
3951 part of the Nostalgia extension.
3952 * Event namespace used by jquery.makeCollapsible has been changed from
3953 'mw-collapse' to 'mw-collapsible' for consistency with the module name.
3954 * BREAKING CHANGE: The "ExternalAuth" authentication subsystem was removed, along
3955 with its associated globals of $wgExternalAuthType, $wgExternalAuthConf,
3956 $wgAutocreatePolicy and $wgAllowPrefChange. Affected users are encouraged to
3957 use AuthPlugin for external authentication/authorization needs.
3958 * The Quickbar feature of the legacy skin model and the last remnants of it
3959 throughout the code base have been removed.
3960 * Externaledit/externaldiff preference was removed. Very few users used this
3961 feature, and improper configuration can actually prevent a user from editing
3962 * Calling Linker methods using a skin will now output deprecation warnings.
3963 * (bug 46680) "Return to" links are no longer tagged with rel="next".
3964 * BREAKING CHANGE: mw.util.tooltipAccessKeyRegexp: The match group for the
3965 accesskey character is now $6 instead of $5.
3966 * HipHop compiler (hphpc) support was removed. HipHop VM support (hhvm) was
3967 added.
3968 * A new Special:Redirect page was added, providing lookup by revision ID,
3969 user ID, or file name. The old Special:Filepath page was reimplemented
3970 to redirect through Special:Redirect.
3971 * Monobook: Removed the old conditional stylesheets for Opera 6, 7 and 9.
3972 * Support for XHTML 1.0 has been removed. MediaWiki now only outputs (X)HTML5.
3973 * wikibits: User-agent related globals have been deprecated. The following
3974 properties now default to false and emit mw.log.warn: is_gecko, is_chrome_mac,
3975 is_chrome, webkit_version, is_safari_win, is_safari, webkit_match, is_ff2,
3976 ff2_bugs, is_ff2_win, is_ff2_x11, opera95_bugs, opera7_bugs, opera6_bugs,
3977 is_opera_95, is_opera_preseven, is_opera, and ie6_bugs.
3978 * (bug 48276) MediaWiki will now flash a confirmation message upon successfully
3979 editing a page.
3980 * (bug 40785) mediawiki.legacy.ajax has been marked as deprecated. The following
3981 properties now emit mw.log.warn when accessed: sajax_debug, sajax_init_object,
3982 sajax_do_call and wfSupportsAjax.
3983 * BREAKING CHANGE: meta keywords are no longer supported. A <meta name="keywords"
3984 will no longer be output and OutputPage::addKeyword no longer exists.
3985 * Methods Title::userCanEditCssSubpage and Title::userCanEditJsSubpage,
3986 deprecated since 1.19, have been removed.
3987 * (bug 50134) Hook functions are no longer required to return a value. When a
3988 hook function does not return a value (or when it returns an explicit null),
3989 processing continues. To abort the hook, a hook function must return an
3990 explicit, boolean false or a string error message. Other falsey values are
3991 tantamount to a 'return true' in earlier versions of MediaWiki.
3992 * BREAKING CHANGE: The EditSectionLink hook was removed after being
3993 deprecated since MediaWiki 1.14. Use DoEditSectionLink instead.
3994 * (bug 48256) The 'editsection-brackets' optional message was removed.
3995 Section edit links' brackets can now be customized using CSS by
3996 styling span.mw-editsection-bracket.
3997 * The usePatrol function in ChangesList has been marked as deprecated.
3998 * (bug 50785) A "null edit", that is, a save action in which no changes to the
3999 page text are made and no revision recorded, will no longer send refreshLinks
4000 jobs to the job table to update pages which use the edited page as a template.
4001 * The LivePreviewPrepare and LivePreviewDone events triggered on "jQuery( mw )"
4002 have been deprecated in favour of using mw.hook.
4003 * The 'showjumplinks' user preference has been removed, jump links are now
4004 always included.
4005 * Methods RecentChange::notifyRC2UDP, RecentChange::sendToUDP, and
4006 RecentChange::cleanupForIRC have been deprecated, as it is now the
4007 responsibility of classes implementing the RCFeedFormatter and RCFeedEngine
4008 interfaces to implement the formatting and delivery for recent change
4009 notifications.
4010 * SpecialPrefixindex methods namespacePrefixForm() and showPrefixChunk() have
4011 been made protected. They were accepting form variance arguments, this is now
4012 using properties in the SpecialPrefixindex class.
4013 * (bug 50310) BREAKING CHANGE: wikibits: Drop support for mwCustomEditButtons.
4014 It defaults to an empty array and emits mw.log.warn when accessed.
4015 * BREAKING CHANGE: Special:Disambiguations has been removed from MediaWiki core.
4016 Functions related to disambiguation pages are now handled by the Disambiguator
4017 extension (https://www.mediawiki.org/wiki/Extension:Disambiguator) (bug
4018 35981).
4019 * BREAKING CHANGE: The 'mediawiki.legacy.wikiprintable' module has been removed.
4020 The skins/common/wikiprintable.css file no longer exists. Return value of
4021 Skin#commonPrintStylesheet is ignored. Please use the 'mediawiki.legacy.commonPrint'
4022 module instead or base your skin on SkinTemplate.
4023 * (bug 49629) The hook ExtractThumbParameters has been deprecated in favour
4024 of media handler overriding MediaHandler::parseParamString.
4025 * (bug 46512) The collapsibleNav feature from the Vector extension has been moved
4026 to the Vector skin in core.
4027 * SpecialRecentChanges::addRecentChangesJS() function has been renamed
4028 to addModules() and made protected.
4029 * Methods WatchAction::doWatch and WatchAction::doUnwatch now return a Status
4030 object instead of a boolean.
4031 * Information boxes (CSS classes errorbox, warningbox, successbox) have been
4032 made more subtle.
4033 * BREAKING CHANGE: The module 'mediawiki.legacy.IEFixes' has been removed as it was
4034 unused. The file skins/common/IEFixes.js remains but is only used by wikibits.
4035 The file never contained any re-usable components. To use it in a skin, load
4036 'mediawiki.legacy.wikibits' (which IEFixes depends on) and that will import
4037 IEFixes automatically if user agent conditions are met.
4038 * Code specific to the Math extension was marked as deprecated.
4039 * mediawiki.util: mw.util.wikiGetlink has been renamed to getUrl. (The old name
4040 still works, but is deprecated.)
4041
4042 = MediaWiki 1.21 =
4043
4044 == MediaWiki 1.21.11 ==
4045 This is a security and maintenance release of the MediaWiki 1.21 branch.
4046
4047 === Changes since 1.21.10 ===
4048 * (bug 65839) SECURITY: Prevent external resources in SVG files.
4049 * (bug 66428) MimeMagic: Don't seek before BOF. This has weird side effects like only extracting the tail of the file partially or not at all.
4050
4051 == MediaWiki 1.21.10 ==
4052 This is a security and maintenance release of the MediaWiki 1.21 branch.
4053
4054 === Changes since 1.21.9 ===
4055 * (bug 65501) SECURITY: Don't parse usernames as wikitext on Special:PasswordReset.
4056 * (bug 36356) Add space between two feed links.
4057
4058 == MediaWiki 1.21.9 ==
4059 This is a security and maintenance release of the MediaWiki 1.21 branch.
4060
4061 === Changes since 1.21.8 ===
4062 * (bug 63251) SECURITY: Escape sortKey in pageInfo.
4063 * (bug 58640) Fixed a compatibility issue with PCRE 8.34 that caused pages to appear blank or with missing text.
4064
4065 == MediaWiki 1.21.8 ==
4066 This is a security and maintenance release of the MediaWiki 1.21 branch.
4067
4068 === Changes since 1.21.7 ===