RELEASE-NOTES-1.25 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. Security reminder: If you have PHP's register_globals option set, you must
  2. turn it off. MediaWiki will not work with it enabled.
  3. == MediaWiki 1.25.6 ==
  4. This is a maintenance release of the MediaWiki 1.25 branch.
  5. == Changes since 1.25.5 ==
  6. * (T123166) Fix fatal error when importing pages to titles which cannot be
  7. created, such as invalid titles or titles the user is not allowed to edit.
  8. * (T122056) Old tokens are remaining valid within a new session
  9. * (T127114) Login throttle can be tricked using non-canonicalized usernames
  10. * (T123653) Cross-domain policy regexp is too narrow
  11. * (T123071) Incorrectly identifying http link in a's href attributes, due to
  12. m modifier in regex
  13. * (T129506) MediaWiki:Gadget-popups.js isn't renderable
  14. * (T125283) Users occasionally logged in as different users after
  15. SessionManager deployment
  16. * (T103239) Patrol allows click catching and patrolling of any page
  17. * (T122807) [tracking] Check php crypto primatives
  18. * (T98313) Graphs can leak tokens, leading to CSRF
  19. * (T130947) Diff generation should use PoolCounter
  20. * (T133507) Careless use of $wgExternalLinkTarget is insecure
  21. * (T132874) API action=move is not rate limited
  22. * (T110143) strip markers can be used to get around html attribute escaping in
  23. (many?) parser tags
  24. * (T116030) Increase pbkdf2 parameter strengths
  25. * (T127420) Pbkdf2Password does not check if hash_pbkdf2() succeeded
  26. * (T126685) Globally throttle password attempts
  27. == MediaWiki 1.25.5 ==
  28. This is a maintenance release of the MediaWiki 1.25 branch.
  29. == Changes since 1.25.4 ==
  30. * (T121892) Fix fatal error on some Special pages, introduced in 1.25.4.
  31. == MediaWiki 1.25.4 ==
  32. This is a security and maintenance release of the MediaWiki 1.25 branch.
  33. === Changes since 1.25.3 ===
  34. * (T117899) SECURITY: $wgArticlePath can no longer be set to relative paths
  35. that do not begin with a slash. This enabled trivial XSS attacks.
  36. Configuration values such as "http://my.wiki.com/wiki/$1" are fine, as are
  37. "/wiki/$1". A value such as "$1" or "wiki/$1" is not and will now throw an
  38. error.
  39. * (T119309) SECURITY: Use hash_compare() for edit token comparison
  40. * (T118032) SECURITY: Don't allow cURL to interpret POST parameters starting
  41. with '@' as file uploads
  42. * (T115522) SECURITY: Passwords generated by User::randomPassword() can no
  43. longer be shorter than $wgMinimalPasswordLength
  44. * (T97897) SECURITY: Improve IP parsing and trimming. Previous behavior could
  45. result in improper blocks being issued
  46. * (T109724) SECURITY: Special:MyPage, Special:MyTalk, Special:MyContributions
  47. and related pages no longer use HTTP redirects and are now redirected by
  48. MediaWiki
  49. * (T103237) $wgUseGzip had no effect when using file cache.
  50. * (T114606) mw.notify was not correctly fixed to the page if
  51. initialized while not at the top of the page.
  52. * Fix issue that breaks HHVM Repo Authorative mode.
  53. == MediaWiki 1.25.3 ==
  54. This is a security and maintenance release of the MediaWiki 1.25 branch.
  55. === Changes since 1.25.2 ===
  56. * (T98975) Fix having multiple callbacks for a single hook.
  57. * (T107632) maintenance/refreshLinks.php did not always remove all links
  58. pointing to nonexistent pages.
  59. * (T104142) $wgEmergencyContact and $wgPasswordSender now use their default
  60. value if set to an empty string.
  61. * (T62174) Provide fallbacks for use of mb_convert_encoding() in
  62. HtmlFormatter. It was causing an error when accessing the api help page
  63. if the mbstring PHP extension was not installed.
  64. * (T105896) Confirmation emails would sometimes contain invalid codes.
  65. * (T105597) Fixed edit stash inclusion queries.
  66. * (T91850) SECURITY: Add throttle check in ApiUpload and SpecialUpload
  67. * (T91203, T91205) SECURITY: API: Improve validation in chunked uploading
  68. * (T95589) SECURITY: RevDel: Check all revisions for suppression, not just the
  69. first
  70. * (T108616) SECURITY: Avoid exposure of local path in PNG thumbnails
  71. == MediaWiki 1.25.2 ==
  72. This is a security and maintenance release of the MediaWiki 1.25 branch.
  73. === Changes since 1.25.1 ===
  74. * (T94116) SECURITY: Compare API watchlist token in constant time
  75. * (T97391) SECURITY: Escape error message strings in thumb.php
  76. * (T106893) SECURITY: Don't leak autoblocked IP addresses on
  77. Special:DeletedContributions
  78. * (T102562) Fix InstantCommons parameters to handle the new HTTPS-only
  79. policy of Wikimedia Commons.
  80. * (T100767) Setting a configuration setting for skin or extension to
  81. false in LocalSettings.php was not working.
  82. * (T100635) API action=opensearch json output no longer breaks when
  83. $wgDebugToolbar is enabled.
  84. * (T102522) Using an extension.json or skin.json file which has
  85. a "manifest_version" property for 1.26 compatability will no longer
  86. trigger warnings.
  87. * (T86156) Running updateSearchIndex.php will not throw an error as
  88. page_restrictions has been added to the locked table list.
  89. * Special:Version would throw notices if using SVN due to an incorrectly
  90. named variable. Add an additional check that an index is defined.
  91. == MediaWiki 1.25.1 ==
  92. This is a bug fix release of the MediaWiki 1.25 branch.
  93. === Changes since 1.25 ===
  94. * (T100351) Fix syntax errors in extension.json of ConfirmEdit extension
  95. == MediaWiki 1.25 ==
  96. MediaWiki 1.25.x is the stable branch and is recommended for use in production.
  97. === Configuration changes in 1.25 ===
  98. * $wgPageShowWatchingUsers was removed.
  99. * $wgLocalVirtualHosts has been added to replace $wgConf->localVHosts.
  100. * $wgAntiLockFlags was removed.
  101. * $wgJavaScriptTestConfig was removed.
  102. * Edit tokens returned from User::getEditToken may change on every call. Token
  103. validity must be checked by passing the user-supplied token to
  104. User::matchEditToken rather than by testing for equality with a
  105. newly-generated token.
  106. * (T74951) The UserGetLanguageObject hook may be passed any IContextSource
  107. for its $context parameter. Formerly it was documented as receiving a
  108. RequestContext specifically.
  109. * Profiling was restructured and $wgProfiler now requires an 'output' parameter.
  110. See StartProfiler.sample for details.
  111. * $wgMangleFlashPolicy was added to make MediaWiki's mangling of anything that
  112. might be a flash policy directive configurable.
  113. * ApiOpenSearch now supports XML output. The OpenSearchXml extension should no
  114. longer be used. If extracts and page images are desired, the TextExtracts and
  115. PageImages extensions are required.
  116. * $wgOpenSearchTemplate is deprecated in favor of $wgOpenSearchTemplates.
  117. * Edits are now prepared via AJAX as users type edit summaries. This behavior
  118. can be disabled via $wgAjaxEditStash.
  119. * (T46740) The temporary option $wgIncludejQueryMigrate was removed, along
  120. with the jQuery Migrate library, as indicated when this option was provided in
  121. MediaWiki 1.24.
  122. * ProfilerStandard and ProfilerSimpleTrace were removed. Make sure that any
  123. StartProfiler.php config is updated to reflect this. Xhprof is available
  124. for zend/hhvm. Also, for hhvm, one can consider using its xenon profiler.
  125. * Default value of $wgSVGConverters['rsvg'] now uses the 'rsvg-convert' binary
  126. rather than 'rsvg'.
  127. * Default value of $wgSVGConverters['ImageMagick'] now uses transparent
  128. background with white fallback color, rather than just white background.
  129. * MediaWikiBagOStuff class removed, make sure any object cache config
  130. uses SqlBagOStuff instead.
  131. * The 'daemonized' flag must be set to true in $wgJobTypeConf for any redis
  132. job queues. This means that mediawiki/services/jobrunner service has to
  133. be installed and running for any such queues to work.
  134. * $wgAutopromoteOnce no longer supports the 'view' event. For keeping some
  135. compatibility, any 'view' event triggers will still trigger on 'edit'.
  136. * $wgExtensionDirectory was added for when your extensions directory is somewhere
  137. other than $IP/extensions (as $wgStyleDirectory does with the skins directory).
  138. === New features in 1.25 ===
  139. * (T64861) Updated plural rules to CLDR 26. Includes incompatible changes
  140. for plural forms in Russian, Prussian, Tagalog, Manx and several languages
  141. that fall back to Russian.
  142. * (T60139) ResourceLoaderFileModule now supports language fallback
  143. for 'languageScripts'.
  144. * Added a new hook, "ContentAlterParserOutput", to allow extensions to modify the
  145. parser output for a content object before links update.
  146. * (T37785) Enhanced recent changes and extended watchlist are now default.
  147. Documentation: https://meta.wikimedia.org/wiki/Help:Enhanced_recent_changes
  148. and https://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions.
  149. * (T69341) SVG images will no longer be base64-encoded when being embedded
  150. in CSS. This results in slight size increase before gzip compression (due to
  151. percent-encoding), but up to 20% decrease after it.
  152. * Update jStorage to v0.4.12.
  153. * MediaWiki now natively supports page status indicators: icons (or short text
  154. snippets) usually displayed in the top-right corner of the page. They have
  155. been in use on Wikipedia for a long time, implemented using templates and CSS
  156. absolute positioning.
  157. - Basic wikitext syntax: <indicator name="foo">[[File:Foo.svg|20px]]</indicator>
  158. - Usage instructions: https://www.mediawiki.org/wiki/Help:Page_status_indicators
  159. - Adjusting custom skins to support indicators:
  160. https://www.mediawiki.org/wiki/Manual:Skinning#Page_status_indicators
  161. * Edit tokens may now be time-limited: passing a maximum age to
  162. User::matchEditToken will reject any older tokens.
  163. * The debug logging internals have been overhauled, and are now using the
  164. PSR-3 interfaces.
  165. * Update CSSJanus to v1.1.1.
  166. * Update lessphp to v0.5.0.
  167. * Added a hook, "ApiOpenSearchSuggest", to allow extensions to provide extracts
  168. and images for ApiOpenSearch output. The semantics are identical to the
  169. "OpenSearchXml" hook provided by the OpenSearchXml extension.
  170. * PrefixSearchBackend hook now has an $offset parameter. Combined with $limit,
  171. this allows for pagination of prefix results. Extensions using this hook
  172. should implement supporting behavior. Not doing so can result in undefined
  173. behavior from API clients trying to continue through prefix results.
  174. * Update jQuery from v1.11.1 to v1.11.3.
  175. * External libraries installed via composer will now be displayed
  176. on Special:Version in their own section. Extensions or skins that are
  177. installed via composer will not be shown in this section as it is assumed
  178. they will add the proper credits to the skins or extensions section. They
  179. can also be accessed through the API via the new siprop=libraries to
  180. ApiQuerySiteInfo.
  181. * Update QUnit from v1.14.0 to v1.16.0.
  182. * Update Moment.js from v2.8.3 to v2.8.4.
  183. * Special:Tags now allows for manipulating the list of user-modifiable change
  184. tags.
  185. * Added 'managetags' user right and 'ChangeTagCanCreate', 'ChangeTagCanDelete',
  186. and 'ChangeTagCanCreate' hooks to allow for managing user-modifiable change
  187. tags.
  188. * Added 'ChangeTagsListActive' hook, to separate the concepts of "defined" and
  189. "active" formerly conflated by the 'ListDefinedTags' hook.
  190. * Added TemplateParser class that provides a server-side interface to cachable
  191. dynamically-compiled Mustache templates (currently uses lightncandy library).
  192. * Clickable anchors for each section heading in the content are now generated
  193. and appear in the gutter on hovering over the heading.
  194. * Added 'CategoryViewer::doCategoryQuery' and 'CategoryViewer::generateLink' hooks
  195. to allow extensions to override how links to pages are rendered within NS_CATEGORY
  196. * (T19665) Special:WantedPages only lists page which having at least one red link
  197. pointing to it.
  198. * New hooks 'ApiMain::moduleManager' and 'ApiQuery::moduleManager', can be
  199. used for conditional registration of API modules.
  200. * New hook 'EnhancedChangesList::getLogText' to alter, remove or add to the
  201. links of a group of changes in EnhancedChangesList.
  202. * A full interface for StatsD metric reporting has been added to the context
  203. interface, reachable via IContextSource::getStats().
  204. * Move the jQuery Client library from being mastered in MediaWiki as v0.1.0 to a
  205. proper, published library, which is now tagged as v1.0.0.
  206. * A new message (defaulting to blank), 'editnotice-notext', can be shown to users
  207. when they are editing if no edit notices apply to the page being edited.
  208. * (T94536) You can now make the sitenotice appear to logged-in users only by
  209. editing MediaWiki:Anonnotice and replacing its content with "". Setting it to
  210. "-" (default) will continue disable it and fallback to MediaWiki:Sitenotice.
  211. * Modifying the tagging of a revision or log entry is now available via
  212. Special:EditTags, generally accessed via the revision-deletion-like interface
  213. on history pages and Special:Log is likely to be more useful.
  214. * Added 'applychangetags' and 'changetags' user rights.
  215. * (T35235) LogFormatter subclasses are now responsible for formatting the
  216. parameters for API log event output. Extensions should implement the new
  217. getParametersForApi() method in their log formatters.
  218. ==== External libraries ====
  219. * MediaWiki now requires certain external libraries to be installed. In the past
  220. these were bundled inside the Git repository of MediaWiki core, but now they
  221. need to be installed separately. For users using the tarball, this will be taken
  222. care of and no action will be required. Users using Git will either need to use
  223. composer to fetch dependencies or use the mediawiki/vendor repository which includes
  224. all dependencies for MediaWiki core and ones used in Wikimedia deployment. Detailed
  225. instructions can be found at:
  226. https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries
  227. * The following libraries are now required:
  228. ** psr/log
  229. This library provides the interfaces set by the PSR-3 standard (http://www.php-fig.org/psr/psr-3/)
  230. which are used by MediaWiki internally via the
  231. MediaWiki\Logger\LoggerFactory class.
  232. See the structured logging RfC (https://www.mediawiki.org/wiki/Requests_for_comment/Structured_logging)
  233. for more background information.
  234. ** cssjanus/cssjanus
  235. This library was formerly bundled with MediaWiki core and has been removed.
  236. It automatically flips CSS for RTL support.
  237. ** leafo/lessphp
  238. This library was formerly bundled with MediaWiki core and has been removed.
  239. It compiles LESS files into CSS.
  240. ** wikimedia/cdb
  241. This library was formerly a part of MediaWiki core, and has been moved into a separate library.
  242. It provides CDB functions which are used in the Interwiki and Localization caches.
  243. More information about the library can be found at https://www.mediawiki.org/wiki/CDB.
  244. ** liuggio/statsd-php-client
  245. This library provides a StatsD client API for logging application metrics to a remote server.
  246. === Bug fixes in 1.25 ===
  247. * (T73003) No additional code will be generated to try to load CSS-embedded
  248. SVG images in Internet Explorer 6 and 7, as they don't support them anyway.
  249. * (T69021) On Special:BookSources, corrected validation of ISBNs (both
  250. 10- and 13-digit forms) containing "X".
  251. * Page moving was refactored into a MovePage class. As part of that:
  252. ** The AbortMove hook was removed.
  253. ** MovePageIsValidMove is for extensions to specify whether a page
  254. cannot be moved for technical reasons, and should not be overridden.
  255. ** MovePageCheckPermissions is for checking whether the given user is
  256. allowed to make the move.
  257. ** Title::moveNoAuth() was deprecated. Use the MovePage class instead.
  258. ** Title::moveTo() was deprecated. Use the MovePage class instead.
  259. ** Title::isValidMoveOperation() broken down into MovePage::isValidMove()
  260. and MovePage::checkPermissions().
  261. * (T18530) Multiple autocomments are now formatted in an edit summary.
  262. * (T70361) Autocomments containing "/*" are parsed correctly.
  263. * The Special:WhatLinksHere page linked from 'Number of redirects to this page'
  264. on action=info about a file page does not list file links anymore.
  265. * (T78637) Search bar is not autofocused unless it is empty so that proper scrolling using arrow keys is possible.
  266. * (T50853) Database::makeList() modified to handle 'NULL' separately when building IN clause
  267. * (T85192) Captcha position modified in Usercreate template. As a result:
  268. ** extrafields parameter added to Usercreate.php to insert additional data
  269. ** 'extend' method added to QuickTemplate to append additional values to any field of data array
  270. * (T86974) Several Title methods now load from the database when necessary
  271. (instead of returning incorrect results) even when the page ID is known.
  272. * (T74070) Duplicate search for archived files on file upload now omits the extension.
  273. This requires the fa_sha1 field being populated.
  274. * Removed rel="archives" from the "View history" link, as it did not pass
  275. HTML validation.
  276. * $wgUseTidy is now set when parserTests are run with the tidy option to match
  277. output on wiki.
  278. * (T37472) update.php will purge ResourceLoader cache unless --nopurge is passed to it.
  279. * (T72109) mediawiki.language should respect $wgTranslateNumerals in convertNumber().
  280. === Action API changes in 1.25 ===
  281. * (T67403) XML tag highlighting is now only performed for formats
  282. "xmlfm" and "wddxfm".
  283. * action=paraminfo supports generalized submodules (modules=query+value),
  284. querymodules and formatmodules are deprecated
  285. * action=paraminfo no longer outputs descriptions and other help text by
  286. default. If needed, it may be requested using the new 'helpformat' parameter.
  287. * action=help has been completely rewritten, and outputs help in HTML
  288. rather than plain text.
  289. * Hitting api.php without specifying an action now displays only the help for
  290. the main module, with links to submodule help.
  291. * API help is no longer displayed on errors.
  292. * 'uselang' is now a recognized API parameter; "uselang=user" may be used to
  293. explicitly select the language from the current user's preferences, and
  294. "uselang=content" may be used to select the wiki's content language.
  295. * Default output format for the API is now jsonfm.
  296. * Simplified continuation will return a "batchcomplete" property in the result
  297. when a batch of pages is complete.
  298. * Pretty-printed HTML output now has nicer formatting and (if available)
  299. better syntax highlighting.
  300. * Deprecated list=deletedrevs in favor of newly-added prop=deletedrevisions and
  301. list=alldeletedrevisions.
  302. * prop=revisions will gracefully continue when given too many revids or titles,
  303. rather than just ignoring the extras.
  304. * prop=revisions will no longer die if rvcontentformat doesn't match a
  305. revision's content model; it will instead warn and omit the content.
  306. * If the user has the 'deletedhistory' right, action=query's revids parameter
  307. will now recognize deleted revids.
  308. * prop=revisions may be used as a generator, generating revids.
  309. * (T68776) format=json results will no longer be corrupted when
  310. $wgMangleFlashPolicy is in effect. format=php results will cleanly return an
  311. error instead of returning invalid serialized data.
  312. * Generators may now return data for the generated pages when used with
  313. action=query.
  314. * Query page data for generator=search and generator=prefixsearch will now
  315. include an "index" field, which may be used by the client for sorting the
  316. search results.
  317. * ApiOpenSearch now supports XML output.
  318. * ApiOpenSearch will now output descriptions and URLs as array indexes 2 and 3
  319. in JSON format.
  320. * (T76051) list=tags will now continue correctly.
  321. * (T76052) list=tags can now indicate whether a tag is defined.
  322. * (T75522) list=prefixsearch now supports continuation
  323. * (T78737) action=expandtemplates can now return page properties.
  324. * (T78690) list=allimages now accepts multiple pipe-separated values
  325. for the 'aimime' parameter.
  326. * prop=info with inprop=protections will now return applicable protection types
  327. with the 'restrictiontypes' key.
  328. * (T85417) When resolving redirects, ApiPageSet will now add the targets of
  329. interwiki redirects to the list of interwiki titles.
  330. * (T85417) When outputting the list of redirect titles, a 'tointerwiki'
  331. property (like the existing 'tofragment' property) will be set.
  332. * Added action=managetags to allow for managing the list of
  333. user-modifiable change tags. Actually modifying the tagging of a revision or
  334. log entry is not implemented yet.
  335. * list=tags has additional properties to indicate 'active' status and tag
  336. sources.
  337. * siprop=libraries was added to ApiQuerySiteInfo to list installed external libraries.
  338. * (T88010) Added action=checktoken, to test a CSRF token's validity.
  339. * (T88010) Added intestactions to prop=info, to allow querying of
  340. Title::userCan() via the API.
  341. * Default type param for query list=watchlist and list=recentchanges has
  342. been changed from all types (e.g. including 'external') to 'edit|new|log'.
  343. * Added formatversion to format=json. Still "experimental" as further changes
  344. to the output formatting might still be made.
  345. * (T73020) Log event details are now always under a 'params' subkey for
  346. list=logevents, and a 'logparams' subkey for list=watchlist and
  347. list=recentchanges.
  348. * Log event details are changing formatting:
  349. * block events now report flags as an array rather than as a comma-separated
  350. list.
  351. * patrol events now report the 'auto' flag as a boolean (absent/empty string
  352. for BC formats) rather than as an integer.
  353. * rights events now report the old and new group lists as arrays rather than
  354. as comma-separated lists.
  355. * merge events use new-style formatting.
  356. * delete/event and delete/revision events use new-style formatting.
  357. * The root node and various other nodes will now always be an object in formats
  358. such as json that distinguish between arrays and objects.
  359. * Except for action=opensearch where the spec requires an array.
  360. === Action API internal changes in 1.25 ===
  361. * ApiHelp has been rewritten to support i18n and paginated HTML output.
  362. Most existing modules should continue working without changes, but should do
  363. the following:
  364. * Add an i18n message "apihelp-{$moduleName}-description" to replace getDescription().
  365. * Add i18n messages "apihelp-{$moduleName}-param-{$param}" for each parameter
  366. to replace getParamDescription(). If necessary, the settings array returned
  367. by getParams() can use the new ApiBase::PARAM_HELP_MSG key to override the
  368. message.
  369. * Implement getExamplesMessages() to replace getExamples().
  370. * Modules with submodules (like action=query) must have their submodules
  371. override ApiBase::getParent() to return the correct parent object.
  372. * The 'APIGetDescription' and 'APIGetParamDescription' hooks are deprecated,
  373. and will have no effect for modules using i18n messages. Use
  374. 'APIGetDescriptionMessages' and 'APIGetParamDescriptionMessages' instead.
  375. * Api formatters will no longer be asked to display the help screen on errors.
  376. * ApiMain::getCredits() was removed. The credits are available in the
  377. 'api-credits' i18n message.
  378. * ApiFormatBase has been changed to support i18n and syntax highlighting via
  379. extensions with the new 'ApiFormatHighlight' hook. Core syntax highlighting
  380. has been removed.
  381. * ApiFormatBase now always buffers. Output is done when
  382. ApiFormatBase::closePrinter is called.
  383. * Much of the logic in ApiQueryRevisions has been split into ApiQueryRevisionsBase.
  384. * The 'revids' parameter supplied by ApiPageSet will now count deleted
  385. revisions as "good" if the user has the 'deletedhistory' right. New methods
  386. ApiPageSet::getLiveRevisionIDs() and ApiPageSet::getDeletedRevisionIDs() are
  387. provided to access just the live or just the deleted revids.
  388. * Added ApiPageSet::setGeneratorData() and ApiPageSet::populateGeneratorData()
  389. to allow generators to include data in the action=query result.
  390. * New hooks 'ApiMain::moduleManager' and 'ApiQuery::moduleManager', can be
  391. used for conditional registration of API modules.
  392. * Added ApiBase::lacksSameOriginSecurity() to allow modules to easily check if
  393. the current request was sent with the 'callback' parameter (or any future
  394. method that breaks the same-origin policy).
  395. * Profiling methods in ApiBase are deprecated and no longer need to be called.
  396. * ApiResult was greatly overhauled. See inline documentation for details.
  397. * ApiResult will automatically convert objects to strings or arrays (depending
  398. on whether a __toString() method exists on the object), and will refuse to
  399. add unsupported value types.
  400. * An informal interface, ApiSerializable, exists to override the default
  401. object conversion.
  402. * ApiResult/ApiFormatBase "raw mode" is deprecated.
  403. * ApiFormatXml now assumes defaults and so on instead of throwing errors when
  404. metadata isn't set.
  405. * (T35235) LogFormatter subclasses are now responsible for formatting log event
  406. parameters for the API.
  407. * Many modules have changed result data formats. While this shouldn't affect
  408. clients not using the experimental formatversion=2, code using
  409. ApiResult::getResultData() without the transformations for backwards
  410. compatibility may need updating, as will code that wasn't following the old
  411. conventions for API boolean output.
  412. * The following methods have been deprecated and may be removed in a future
  413. release:
  414. * ApiBase::getDescription
  415. * ApiBase::getParamDescription
  416. * ApiBase::getExamples
  417. * ApiBase::makeHelpMsg
  418. * ApiBase::makeHelpArrayToString
  419. * ApiBase::makeHelpMsgParameters
  420. * ApiBase::getModuleProfileName
  421. * ApiBase::profileIn
  422. * ApiBase::profileOut
  423. * ApiBase::safeProfileOut
  424. * ApiBase::getProfileTime
  425. * ApiBase::profileDBIn
  426. * ApiBase::profileDBOut
  427. * ApiBase::getProfileDBTime
  428. * ApiBase::getResultData
  429. * ApiFormatBase::setUnescapeAmps
  430. * ApiFormatBase::getWantsHelp
  431. * ApiFormatBase::setHelp
  432. * ApiFormatBase::formatHTML
  433. * ApiFormatBase::setBufferResult
  434. * ApiFormatBase::getDescription
  435. * ApiFormatBase::getNeedsRawData
  436. * ApiMain::setHelp
  437. * ApiMain::reallyMakeHelpMsg
  438. * ApiMain::makeHelpMsgHeader
  439. * ApiResult::setRawMode
  440. * ApiResult::getIsRawMode
  441. * ApiResult::getData
  442. * ApiResult::setElement
  443. * ApiResult::setContent
  444. * ApiResult::setIndexedTagName_recursive
  445. * ApiResult::setIndexedTagName_internal
  446. * ApiResult::setParsedLimit
  447. * ApiResult::beginContinuation
  448. * ApiResult::setContinueParam
  449. * ApiResult::setGeneratorContinueParam
  450. * ApiResult::endContinuation
  451. * ApiResult::size
  452. * ApiResult::convertStatusToArray
  453. * ApiQueryImageInfo::getPropertyDescriptions
  454. * ApiQueryLogEvents::addLogParams
  455. * The following classes have been deprecated and may be removed in a future
  456. release:
  457. * ApiQueryDeletedrevs
  458. === Languages updated in 1.25 ===
  459. MediaWiki supports over 350 languages. Many localisations are updated
  460. regularly. Below only new and removed languages are listed, as well as
  461. changes to languages because of Bugzilla reports.
  462. * Languages added:
  463. ** awa (अवधी / Awadhi), thanks to translator 1AnuraagPandey;
  464. ** bgn (بلوچی رخشانی / Western Balochi), thanks to translators
  465. Baloch Afghanistan, Ibrahim khashrowdi and Rachitrali;
  466. ** ses (Koyraboro Senni), thanks to translator Songhay.
  467. * (T66440) Kazakh (kk) wikis should no longer forcefully reset the user's
  468. interface language to kk where unexpected.
  469. * The Chinese conversion table was substantially updated to fix a lot of
  470. bugs and ensure better reading experience for different variants.
  471. === Other changes in 1.25 ===
  472. * (T45591) Links to MediaWiki.org translatable help were added to indicators,
  473. mostly in special pages. Local custom target titles can be placed in the
  474. relevant '(namespace-X|action name|special page name)-helppage' system
  475. message. Extensions can use the addHelpLink() function to do the same.
  476. * The skin autodiscovery mechanism, deprecated in MediaWiki 1.23, has been
  477. removed. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for
  478. migration guide for creators and users of custom skins that relied on it.
  479. * Javascript variables 'wgFileCanRotate' and 'wgFileExtensions' now only
  480. available on Special:Upload.
  481. * (T58257) Set site logo from mediawiki.skinning.interface module instead of
  482. inline styles in the HTML.
  483. * Removed ApiQueryUsers::getAutoGroups(). (deprecated since 1.20)
  484. * Removed XmlDumpWriter::schemaVersion(). (deprecated since 1.20)
  485. * Removed LogEventsList::getDisplayTitle(). (deprecated since 1.20)
  486. * Removed Preferences::trySetUserEmail(). (deprecated since 1.20)
  487. * Removed mw.user.name() and mw.user.anonymous() methods. (deprecated since 1.20)
  488. * Removed 'ok' and 'err' parameters in the mediawiki.api modules. (deprecated
  489. since 1.20)
  490. * Removed 'async' parameter from the mw.Api#getCategories() method. (deprecated
  491. since 1.20)
  492. * Removed 'jquery.json' module. (deprecated since 1.24)
  493. Use the 'json' module and global JSON object instead.
  494. * Deprecated OutputPage::readOnlyPage() and OutputPage::rateLimited().
  495. Also, the former will now throw an MWException if called with one or more
  496. arguments.
  497. * Removed hitcounters and associated code.
  498. * The "temp" zone of the upload respository is now considered private. If it
  499. already exists (such as under the images/ directory), please make sure that
  500. the directory is not web readable (e.g. via a .htaccess file).
  501. * BREAKING CHANGE: In the XML dump format used by Special:Export and
  502. dumpBackup.php, the <model> and <format> tags now apprear before the <text>
  503. tag, instead of after the <text> and <sha1> tags.
  504. The new schema version is 0.10, the new schema URI is:
  505. https://www.mediawiki.org/xml/export-0.10.xsd
  506. * MWFunction::call() and MWFunction::callArray() were removed, having being
  507. deprecated in 1.22.
  508. * Deprecated the getInternalLinkAttributes, getInternalLinkAttributesObj,
  509. and getInternalLinkAttributes methods in Linker, and removed
  510. getExternalLinkAttributes method, which was deprecated in MediaWiki 1.18.
  511. * Removed Sites class, which was deprecated in 1.21 and replaced by SiteSQLStore.
  512. * Added wgRelevantArticleId to the client-side config, for use on special pages.
  513. * Deprecated the TitleIsCssOrJsPage hook. Superseded by the
  514. ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
  515. * Deprecated the TitleIsWikitextPage hook. Superseded by the
  516. ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
  517. * Changed parsing of variables in schema (.sql) files:
  518. ** The substituted values are no longer parsed. (Formerly, several passes
  519. were made for each variable, so depending on the order in which variables
  520. were defined, variables might have been found inside encoded values. This
  521. is no longer the case.)
  522. ** Variables are no longer string encoded when the /*$var*/ syntax is used.
  523. If string encoding is necessary, use the '{$var}' syntax instead.
  524. ** Variable names must only consist of one or more of the characters
  525. "A-Za-z0-9_".
  526. ** In source text of the form '{$A}'{$B}' or `{$A}`{$B}`, where variable A
  527. does not exist yet variable B does, the latter may not be replaced.
  528. However, this difference is unlikely to arise in practice.
  529. * (T67278) RFC, PMID, and ISBN "magic links" must be surrounded by non-word
  530. characters on both sides.
  531. * The FormatAutocomments hook will now receive $pre and $post as booleans,
  532. rather than as strings that must be prepended or appended to $comment.
  533. * (T30950, T31025) RFC, PMID, and ISBN "magic links" can no longer contain
  534. newlines; but they can contain &nbsp; and other non-newline whitespace.
  535. * The 'mediawiki.action.edit' ResourceLoader module no longer generates the edit
  536. toolbar, which has been moved to a separate 'mediawiki.toolbar' module. If you
  537. relied on this behavior, update your scripts' dependencies.
  538. * HTMLForm's 'vform' display style has been separated to a subclass. Therefore:
  539. * HTMLForm::isVForm() is now deprecated.
  540. * You can no longer do this:
  541. $form = new HTMLForm( … );
  542. $form->setDisplayFormat( 'vform' ); // throws exception
  543. Instead, do this:
  544. $form = HTMLForm::factory( 'vform', … );
  545. * Deprecated Revision methods getRawUser(), getRawUserText() and getRawComment().
  546. * BREAKING CHANGE: mediawiki.user.generateRandomSessionId:
  547. The alphabet of the prior string returned was A-Za-z0-9 and now it is 0-9A-F
  548. * (T87504) Avoid serving SVG background-images in CSS for Opera 12, which
  549. renders them incorrectly when combined with border-radius or background-size.
  550. * Removed maintenance script dumpSisterSites.php.
  551. * DatabaseBase class constructors must be called using the array argument style.
  552. Ideally, DatabaseBase:factory() should be used instead in most cases.
  553. * Deprecated ParserOutput::addSecondaryDataUpdate and ParserOutput::getSecondaryDataUpdates.
  554. This is a hard deprecation, with getSecondaryDataUpdates returning an empty array and
  555. addSecondaryDataUpdate throwing an exception. These functions will be removed in 1.26,
  556. since they interfere with caching of ParserOutput objects.
  557. * Introduced new hook 'SecondaryDataUpdates' that allows extensions to inject custom updates.
  558. * Introduced new hook 'OpportunisticLinksUpdate' that allows extensions to perform
  559. updates when a page is re-rendered.
  560. * EditPage::attemptSave has been modified not to call handleStatus itself and
  561. instead just returns the Status object. Extension calling it should be aware of
  562. this.
  563. * Removed class DBObject. (unused since 1.10)
  564. * wfDiff() is deprecated.
  565. * The -m (maximum replication lag) option of refreshLinks.php was removed.
  566. It had no effect since MediaWiki 1.18 and should be removed from any cron
  567. jobs or similar scripts you may have set up.
  568. * (T85864) The following messages no longer support raw html: redirectto,
  569. thisisdeleted, viewdeleted, editlink, retrievedfrom, version-poweredby-others,
  570. retrievedfrom, thisisdeleted, viewsourcelink, lastmodifiedat, laggedslavemode,
  571. protect-summary-cascade
  572. * All BloomCache related code has been removed. This was largely experimental.
  573. * $wgResourceModuleSkinStyles no longer supports per-module local or remote paths. They
  574. can only be set for the entire skin.
  575. * Removed global function swap(). (deprecated since 1.24)
  576. * Deprecated the ".php5" file extension entry points and the $wgScriptExtension
  577. configuration variable. Refer to the ".php" files instead. If you want
  578. ".php5" URLs to continue to work, set up redirects. In Apache, this can be
  579. done by enabling mod_rewrite and adding the following rules to your
  580. configuration:
  581. RewriteEngine On
  582. RewriteBase /
  583. RewriteRule ^(.*)\.php5 $1.php [R=301,L]
  584. * The global importScriptURI and importStylesheetURI functions, as well as the
  585. loadedScripts object, from wikibits.js (deprecated since 1.17) now emit
  586. warnings through mw.log.warn when accessed.
  587. == Compatibility ==
  588. MediaWiki 1.25 requires PHP 5.3.3 or later. There is experimental support for
  589. HHVM 3.3.0.
  590. MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
  591. support for them is somewhat less mature. There is experimental support for
  592. Oracle and Microsoft SQL Server.
  593. The supported versions are:
  594. * MySQL 5.0.3 or later
  595. * PostgreSQL 8.3 or later
  596. * SQLite 3.3.7 or later
  597. * Oracle 9.0.1 or later
  598. * Microsoft SQL Server 2005 (9.00.1399)
  599. == Upgrading ==
  600. 1.25 has several database changes since 1.24, and will not work without schema
  601. updates. Note that due to changes to some very large tables like the revision
  602. table, the schema update may take quite long (minutes on a medium sized site,
  603. many hours on a large site).
  604. If upgrading from before 1.11, and you are using a wiki as a commons
  605. repository, make sure that it is updated as well. Otherwise, errors may arise
  606. due to database schema changes.
  607. If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
  608. new database fields are filled with data.
  609. If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
  610. 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
  611. with MediaWiki 1.21.
  612. Don't forget to always back up your database before upgrading!
  613. See the file UPGRADE for more detailed upgrade instructions.
  614. For notes on 1.24.x and older releases, see HISTORY.
  615. == Online documentation ==
  616. Documentation for both end-users and site administrators is available on
  617. MediaWiki.org, and is covered under the GNU Free Documentation License (except
  618. for pages that explicitly state that their contents are in the public domain):
  619. https://www.mediawiki.org/wiki/Documentation
  620. == Mailing list ==
  621. A mailing list is available for MediaWiki user support and discussion:
  622. https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
  623. A low-traffic announcements-only list is also available:
  624. https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
  625. It's highly recommended that you sign up for one of these lists if you're
  626. going to run a public MediaWiki, so you can be notified of security fixes.
  627. == IRC help ==
  628. There's usually someone online in #mediawiki on irc.freenode.net.