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