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