API: Overhaul ApiResult, make format=xml not throw, and add json formatversion
[lhc/web/wiklou.git] / RELEASE-NOTES-1.25
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
4 == MediaWiki 1.25 ==
5
6 THIS IS NOT A RELEASE YET
7
8 MediaWiki 1.25 is an alpha-quality branch and is not recommended for use in
9 production.
10
11 === Configuration changes in 1.25 ===
12 * $wgPageShowWatchingUsers was removed.
13 * $wgLocalVirtualHosts has been added to replace $wgConf->localVHosts.
14 * $wgAntiLockFlags was removed.
15 * $wgJavaScriptTestConfig was removed.
16 * Edit tokens returned from User::getEditToken may change on every call. Token
17 validity must be checked by passing the user-supplied token to
18 User::matchEditToken rather than by testing for equality with a
19 newly-generated token.
20 * (T74951) The UserGetLanguageObject hook may be passed any IContextSource
21 for its $context parameter. Formerly it was documented as receiving a
22 RequestContext specifically.
23 * Profiling was restructured and $wgProfiler now requires an 'output' parameter.
24 See StartProfiler.sample for details.
25 * $wgMangleFlashPolicy was added to make MediaWiki's mangling of anything that
26 might be a flash policy directive configurable.
27 * ApiOpenSearch now supports XML output. The OpenSearchXml extension should no
28 longer be used. If extracts and page images are desired, the TextExtracts and
29 PageImages extensions are required.
30 * $wgOpenSearchTemplate is deprecated in favor of $wgOpenSearchTemplates.
31 * Edits are now prepared via AJAX as users type edit summaries. This behavior
32 can be disabled via $wgAjaxEditStash.
33 * (T46740) The temporary option $wgIncludejQueryMigrate was removed, along
34 with the jQuery Migrate library, as indicated when this option was provided in
35 MediaWiki 1.24.
36 * ProfilerStandard and ProfilerSimpleTrace were removed. Make sure that any
37 StartProfiler.php config is updated to reflect this. Xhprof is available
38 for zend/hhvm. Also, for hhvm, one can consider using its xenon profiler.
39 * Default value of $wgSVGConverters['rsvg'] now uses the 'rsvg-convert' binary
40 rather than 'rsvg'.
41 * Default value of $wgSVGConverters['ImageMagick'] now uses transparent
42 background with white fallback color, rather than just white background.
43 * MediaWikiBagOStuff class removed, make sure any object cache config
44 uses SqlBagOStuff instead.
45 * The 'daemonized' flag must be set to true in $wgJobTypeConf for any redis
46 job queues. This means that mediawiki/services/jobrunner service has to
47 be installed and running for any such queues to work.
48 * $wgAutopromoteOnce no longer supports the 'view' event. For keeping some
49 compatibility, any 'view' event triggers will still trigger on 'edit'.
50
51 === New features in 1.25 ===
52 * (T64861) Updated plural rules to CLDR 26. Includes incompatible changes
53 for plural forms in Russian, Prussian, Tagalog, Manx and several languages
54 that fall back to Russian.
55 * (T60139) ResourceLoaderFileModule now supports language fallback
56 for 'languageScripts'.
57 * Added a new hook, "ContentAlterParserOutput", to allow extensions to modify the
58 parser output for a content object before links update.
59 * (T37785) Enhanced recent changes and extended watchlist are now default.
60 Documentation: https://meta.wikimedia.org/wiki/Help:Enhanced_recent_changes
61 and https://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions.
62 * (T69341) SVG images will no longer be base64-encoded when being embedded
63 in CSS. This results in slight size increase before gzip compression (due to
64 percent-encoding), but up to 20% decrease after it.
65 * Update jStorage to v0.4.12.
66 * MediaWiki now natively supports page status indicators: icons (or short text
67 snippets) usually displayed in the top-right corner of the page. They have
68 been in use on Wikipedia for a long time, implemented using templates and CSS
69 absolute positioning.
70 - Basic wikitext syntax: <indicator name="foo">[[File:Foo.svg|20px]]</indicator>
71 - Usage instructions: https://www.mediawiki.org/wiki/Help:Page_status_indicators
72 - Adjusting custom skins to support indicators:
73 https://www.mediawiki.org/wiki/Manual:Skinning#Page_status_indicators
74 * Edit tokens may now be time-limited: passing a maximum age to
75 User::matchEditToken will reject any older tokens.
76 * The debug logging internals have been overhauled, and are now using the
77 PSR-3 interfaces.
78 * Update CSSJanus to v1.1.1.
79 * Update lessphp to v0.5.0.
80 * Added a hook, "ApiOpenSearchSuggest", to allow extensions to provide extracts
81 and images for ApiOpenSearch output. The semantics are identical to the
82 "OpenSearchXml" hook provided by the OpenSearchXml extension.
83 * PrefixSearchBackend hook now has an $offset parameter. Combined with $limit,
84 this allows for pagination of prefix results. Extensions using this hook
85 should implement supporting behavior. Not doing so can result in undefined
86 behavior from API clients trying to continue through prefix results.
87 * Update jQuery from v1.11.1 to v1.11.2.
88 * External libraries installed via composer will now be displayed
89 on Special:Version in their own section. Extensions or skins that are
90 installed via composer will not be shown in this section as it is assumed
91 they will add the proper credits to the skins or extensions section. They
92 can also be accessed through the API via the new siprop=libraries to
93 ApiQuerySiteInfo.
94 * Update QUnit from v1.14.0 to v1.16.0.
95 * Update Moment.js from v2.8.3 to v2.8.4.
96 * Special:Tags now allows for manipulating the list of user-modifiable change
97 tags. Actually modifying the tagging of a revision or log entry is not
98 implemented yet.
99 * Added 'managetags' user right and 'ChangeTagCanCreate', 'ChangeTagCanDelete',
100 and 'ChangeTagCanCreate' hooks to allow for managing user-modifiable change
101 tags.
102 * Added 'ChangeTagsListActive' hook, to separate the concepts of "defined" and
103 "active" formerly conflated by the 'ListDefinedTags' hook.
104 * Added TemplateParser class that provides a server-side interface to cachable
105 dynamically-compiled Mustache templates (currently uses lightncandy library).
106 * Clickable anchors for each section heading in the content are now generated
107 and appear in the gutter on hovering over the heading.
108 * Added 'CategoryViewer::doCategoryQuery' and 'CategoryViewer::generateLink' hooks
109 to allow extensions to override how links to pages are rendered within NS_CATEGORY
110 * (T19665) Special:WantedPages only lists page which having at least one red link
111 pointing to it.
112 * New hooks 'ApiMain::moduleManager' and 'ApiQuery::moduleManager', can be
113 used for conditional registration of API modules.
114 * New hook 'EnhancedChangesList::getLogText' to alter, remove or add to the
115 links of a group of changes in EnhancedChangesList.
116 * A full interface for StatsD metric reporting has been added to the context
117 interface, reachable via IContextSource::getStats().
118 * Move the jQuery Client library from being mastered in MediaWiki as v0.1.0 to a
119 proper, published library, which is now tagged as v1.0.0.
120 * A new message (defaulting to blank), 'editnotice-notext', can be shown to users
121 when they are editing if no edit notices apply to the page being edited.
122
123 ==== External libraries ====
124 * MediaWiki now requires certain external libraries to be installed. In the past
125 these were bundled inside the Git repository of MediaWiki core, but now they
126 need to be installed separately. For users using the tarball, this will be taken
127 care of and no action will be required. Users using Git will either need to use
128 composer to fetch dependencies or use the mediawiki/vendor repository which includes
129 all dependencies for MediaWiki core and ones used in Wikimedia deployment. Detailed
130 instructions can be found at:
131 https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries
132 * The following libraries are now required:
133 ** psr/log
134 This library provides the interfaces set by the PSR-3 standard (http://www.php-fig.org/psr/psr-3/)
135 which are used by MediaWiki internally via the
136 MediaWiki\Logger\LoggerFactory class.
137 See the structured logging RfC (https://www.mediawiki.org/wiki/Requests_for_comment/Structured_logging)
138 for more background information.
139 ** cssjanus/cssjanus
140 This library was formerly bundled with MediaWiki core and has been removed.
141 It automatically flips CSS for RTL support.
142 ** leafo/lessphp
143 This library was formerly bundled with MediaWiki core and has been removed.
144 It compiles LESS files into CSS.
145 ** wikimedia/cdb
146 This library was formerly a part of MediaWiki core, and has been moved into a separate library.
147 It provides CDB functions which are used in the Interwiki and Localization caches.
148 More information about the library can be found at https://www.mediawiki.org/wiki/CDB.
149 ** liuggio/statsd-php-client
150 This library provides a StatsD client API for logging application metrics to a remote server.
151
152 === Bug fixes in 1.25 ===
153 * (T73003) No additional code will be generated to try to load CSS-embedded
154 SVG images in Internet Explorer 6 and 7, as they don't support them anyway.
155 * (T69021) On Special:BookSources, corrected validation of ISBNs (both
156 10- and 13-digit forms) containing "X".
157 * Page moving was refactored into a MovePage class. As part of that:
158 ** The AbortMove hook was removed.
159 ** MovePageIsValidMove is for extensions to specify whether a page
160 cannot be moved for technical reasons, and should not be overridden.
161 ** MovePageCheckPermissions is for checking whether the given user is
162 allowed to make the move.
163 ** Title::moveNoAuth() was deprecated. Use the MovePage class instead.
164 ** Title::moveTo() was deprecated. Use the MovePage class instead.
165 ** Title::isValidMoveOperation() broken down into MovePage::isValidMove()
166 and MovePage::checkPermissions().
167 * (T18530) Multiple autocomments are now formatted in an edit summary.
168 * (T70361) Autocomments containing "/*" are parsed correctly.
169 * The Special:WhatLinksHere page linked from 'Number of redirects to this page'
170 on action=info about a file page does not list file links anymore.
171 * (T78637) Search bar is not autofocused unless it is empty so that proper scrolling using arrow keys is possible.
172 * (T50853) Database::makeList() modified to handle 'NULL' separately when building IN clause
173 * (T85192) Captcha position modified in Usercreate template. As a result:
174 ** extrafields parameter added to Usercreate.php to insert additional data
175 ** 'extend' method added to QuickTemplate to append additional values to any field of data array
176 * (T86974) Several Title methods now load from the database when necessary
177 (instead of returning incorrect results) even when the page ID is known.
178 * (T74070) Duplicate search for archived files on file upload now omits the extension.
179 This requires the fa_sha1 field being populated.
180 * Removed rel="archives" from the "View history" link, as it did not pass
181 HTML validation.
182 * $wgUseTidy is now set when parserTests are run with the tidy option to match
183 output on wiki.
184
185 === Action API changes in 1.25 ===
186 * (T67403) XML tag highlighting is now only performed for formats
187 "xmlfm" and "wddxfm".
188 * action=paraminfo supports generalized submodules (modules=query+value),
189 querymodules and formatmodules are deprecated
190 * action=paraminfo no longer outputs descriptions and other help text by
191 default. If needed, it may be requested using the new 'helpformat' parameter.
192 * action=help has been completely rewritten, and outputs help in HTML
193 rather than plain text.
194 * Hitting api.php without specifying an action now displays only the help for
195 the main module, with links to submodule help.
196 * API help is no longer displayed on errors.
197 * 'uselang' is now a recognized API parameter; "uselang=user" may be used to
198 explicitly select the language from the current user's preferences, and
199 "uselang=content" may be used to select the wiki's content language.
200 * Default output format for the API is now jsonfm.
201 * Simplified continuation will return a "batchcomplete" property in the result
202 when a batch of pages is complete.
203 * Pretty-printed HTML output now has nicer formatting and (if available)
204 better syntax highlighting.
205 * Deprecated list=deletedrevs in favor of newly-added prop=deletedrevisions and
206 list=alldeletedrevisions.
207 * prop=revisions will gracefully continue when given too many revids or titles,
208 rather than just ignoring the extras.
209 * prop=revisions will no longer die if rvcontentformat doesn't match a
210 revision's content model; it will instead warn and omit the content.
211 * If the user has the 'deletedhistory' right, action=query's revids parameter
212 will now recognize deleted revids.
213 * prop=revisions may be used as a generator, generating revids.
214 * (T68776) format=json results will no longer be corrupted when
215 $wgMangleFlashPolicy is in effect. format=php results will cleanly return an
216 error instead of returning invalid serialized data.
217 * Generators may now return data for the generated pages when used with
218 action=query.
219 * Query page data for generator=search and generator=prefixsearch will now
220 include an "index" field, which may be used by the client for sorting the
221 search results.
222 * ApiOpenSearch now supports XML output.
223 * ApiOpenSearch will now output descriptions and URLs as array indexes 2 and 3
224 in JSON format.
225 * (T76051) list=tags will now continue correctly.
226 * (T76052) list=tags can now indicate whether a tag is defined.
227 * (T75522) list=prefixsearch now supports continuation
228 * (T78737) action=expandtemplates can now return page properties.
229 * (T78690) list=allimages now accepts multiple pipe-separated values
230 for the 'aimime' parameter.
231 * prop=info with inprop=protections will now return applicable protection types
232 with the 'restrictiontypes' key.
233 * (T85417) When resolving redirects, ApiPageSet will now add the targets of
234 interwiki redirects to the list of interwiki titles.
235 * (T85417) When outputting the list of redirect titles, a 'tointerwiki'
236 property (like the existing 'tofragment' property) will be set.
237 * Added action=managetags to allow for managing the list of
238 user-modifiable change tags. Actually modifying the tagging of a revision or
239 log entry is not implemented yet.
240 * list=tags has additional properties to indicate 'active' status and tag
241 sources.
242 * siprop=libraries was added to ApiQuerySiteInfo to list installed external libraries.
243 * (T88010) Added action=checktoken, to test a CSRF token's validity.
244 * (T88010) Added intestactions to prop=info, to allow querying of
245 Title::userCan() via the API.
246 * Default type param for query list=watchlist and list=recentchanges has
247 been changed from all types (e.g. including 'external') to 'edit|new|log'.
248 * Added formatversion to format=json, still experimental.
249
250 === Action API internal changes in 1.25 ===
251 * ApiHelp has been rewritten to support i18n and paginated HTML output.
252 Most existing modules should continue working without changes, but should do
253 the following:
254 * Add an i18n message "apihelp-{$moduleName}-description" to replace getDescription().
255 * Add i18n messages "apihelp-{$moduleName}-param-{$param}" for each parameter
256 to replace getParamDescription(). If necessary, the settings array returned
257 by getParams() can use the new ApiBase::PARAM_HELP_MSG key to override the
258 message.
259 * Implement getExamplesMessages() to replace getExamples().
260 * Modules with submodules (like action=query) must have their submodules
261 override ApiBase::getParent() to return the correct parent object.
262 * The 'APIGetDescription' and 'APIGetParamDescription' hooks are deprecated,
263 and will have no effect for modules using i18n messages. Use
264 'APIGetDescriptionMessages' and 'APIGetParamDescriptionMessages' instead.
265 * Api formatters will no longer be asked to display the help screen on errors.
266 * ApiMain::getCredits() was removed. The credits are available in the
267 'api-credits' i18n message.
268 * ApiFormatBase has been changed to support i18n and syntax highlighting via
269 extensions with the new 'ApiFormatHighlight' hook. Core syntax highlighting
270 has been removed.
271 * ApiFormatBase now always buffers. Output is done when
272 ApiFormatBase::closePrinter is called.
273 * Much of the logic in ApiQueryRevisions has been split into ApiQueryRevisionsBase.
274 * The 'revids' parameter supplied by ApiPageSet will now count deleted
275 revisions as "good" if the user has the 'deletedhistory' right. New methods
276 ApiPageSet::getLiveRevisionIDs() and ApiPageSet::getDeletedRevisionIDs() are
277 provided to access just the live or just the deleted revids.
278 * Added ApiPageSet::setGeneratorData() and ApiPageSet::populateGeneratorData()
279 to allow generators to include data in the action=query result.
280 * New hooks 'ApiMain::moduleManager' and 'ApiQuery::moduleManager', can be
281 used for conditional registration of API modules.
282 * Added ApiBase::lacksSameOriginSecurity() to allow modules to easily check if
283 the current request was sent with the 'callback' parameter (or any future
284 method that breaks the same-origin policy).
285 * Profiling methods in ApiBase are deprecated and no longer need to be called.
286 * ApiResult was greatly overhauled. See inline documentation for details.
287 * ApiResult will automatically convert objects to strings or arrays (depending
288 on whether a __toString() method exists on the object), and will refuse to
289 add unsupported value types.
290 * An informal interface, ApiSerializable, exists to override the default
291 object conversion.
292 * ApiResult/ApiFormatBase "raw mode" is deprecated.
293 * ApiFormatXml now assumes defaults and so on instead of throwing errors when
294 metadata isn't set.
295 * The following methods have been deprecated and may be removed in a future
296 release:
297 * ApiBase::getDescription
298 * ApiBase::getParamDescription
299 * ApiBase::getExamples
300 * ApiBase::makeHelpMsg
301 * ApiBase::makeHelpArrayToString
302 * ApiBase::makeHelpMsgParameters
303 * ApiBase::getModuleProfileName
304 * ApiBase::profileIn
305 * ApiBase::profileOut
306 * ApiBase::safeProfileOut
307 * ApiBase::getProfileTime
308 * ApiBase::profileDBIn
309 * ApiBase::profileDBOut
310 * ApiBase::getProfileDBTime
311 * ApiBase::getResultData
312 * ApiFormatBase::setUnescapeAmps
313 * ApiFormatBase::getWantsHelp
314 * ApiFormatBase::setHelp
315 * ApiFormatBase::formatHTML
316 * ApiFormatBase::setBufferResult
317 * ApiFormatBase::getDescription
318 * ApiFormatBase::getNeedsRawData
319 * ApiMain::setHelp
320 * ApiMain::reallyMakeHelpMsg
321 * ApiMain::makeHelpMsgHeader
322 * ApiResult::setRawMode
323 * ApiResult::getIsRawMode
324 * ApiResult::getData
325 * ApiResult::setElement
326 * ApiResult::setContent
327 * ApiResult::setIndexedTagName_recursive
328 * ApiResult::setIndexedTagName_internal
329 * ApiResult::setParsedLimit
330 * ApiResult::beginContinuation
331 * ApiResult::setContinueParam
332 * ApiResult::setGeneratorContinueParam
333 * ApiResult::endContinuation
334 * ApiResult::size
335 * ApiResult::convertStatusToArray
336 * ApiQueryImageInfo::getPropertyDescriptions
337 * The following classes have been deprecated and may be removed in a future
338 release:
339 * ApiQueryDeletedrevs
340
341 === Languages updated in 1.25 ===
342
343 MediaWiki supports over 350 languages. Many localisations are updated
344 regularly. Below only new and removed languages are listed, as well as
345 changes to languages because of Bugzilla reports.
346
347 * (T66440) Kazakh (kk) wikis should no longer forcefully reset the user's
348 interface language to kk where unexpected.
349 * The Chinese conversion table was substantially updated to fix a lot of
350 bugs and ensure better reading experience for different variants.
351
352 === Other changes in 1.25 ===
353 * The skin autodiscovery mechanism, deprecated in MediaWiki 1.23, has been
354 removed. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for
355 migration guide for creators and users of custom skins that relied on it.
356 * Javascript variables 'wgFileCanRotate' and 'wgFileExtensions' now only
357 available on Special:Upload.
358 * (T58257) Set site logo from mediawiki.skinning.interface module instead of
359 inline styles in the HTML.
360 * Removed ApiQueryUsers::getAutoGroups(). (deprecated since 1.20)
361 * Removed XmlDumpWriter::schemaVersion(). (deprecated since 1.20)
362 * Removed LogEventsList::getDisplayTitle(). (deprecated since 1.20)
363 * Removed Preferences::trySetUserEmail(). (deprecated since 1.20)
364 * Removed mw.user.name() and mw.user.anonymous() methods. (deprecated since 1.20)
365 * Removed 'ok' and 'err' parameters in the mediawiki.api modules. (deprecated
366 since 1.20)
367 * Removed 'async' parameter from the mw.Api#getCategories() method. (deprecated
368 since 1.20)
369 * Removed 'jquery.json' module. (deprecated since 1.24)
370 Use the 'json' module and global JSON object instead.
371 * Deprecated OutputPage::readOnlyPage() and OutputPage::rateLimited().
372 Also, the former will now throw an MWException if called with one or more
373 arguments.
374 * Removed hitcounters and associated code.
375 * The "temp" zone of the upload respository is now considered private. If it
376 already exists (such as under the images/ directory), please make sure that
377 the directory is not web readable (e.g. via a .htaccess file).
378 * BREAKING CHANGE: In the XML dump format used by Special:Export and
379 dumpBackup.php, the <model> and <format> tags now apprear before the <text>
380 tag, instead of after the <text> and <sha1> tags.
381 The new schema version is 0.10, the new schema URI is:
382 https://www.mediawiki.org/xml/export-0.10.xsd
383 * MWFunction::call() and MWFunction::callArray() were removed, having being
384 deprecated in 1.22.
385 * Deprecated the getInternalLinkAttributes, getInternalLinkAttributesObj,
386 and getInternalLinkAttributes methods in Linker, and removed
387 getExternalLinkAttributes method, which was deprecated in MediaWiki 1.18.
388 * Removed Sites class, which was deprecated in 1.21 and replaced by SiteSQLStore.
389 * The mw.api.getToken() method now uses action=query?meta=tokens. This will now
390 fail for custom tokens registered only via the deprecated ApiTokensGetTokenTypes
391 hook. The ApiQueryTokensRegisterTypes hook should be used for this to work.
392 * Added wgRelevantArticleId to the client-side config, for use on special pages.
393 * Deprecated the TitleIsCssOrJsPage hook. Superseded by the
394 ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
395 * Deprecated the TitleIsWikitextPage hook. Superseded by the
396 ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
397 * Changed parsing of variables in schema (.sql) files:
398 ** The substituted values are no longer parsed. (Formerly, several passes
399 were made for each variable, so depending on the order in which variables
400 were defined, variables might have been found inside encoded values. This
401 is no longer the case.)
402 ** Variables are no longer string encoded when the /*$var*/ syntax is used.
403 If string encoding is necessary, use the '{$var}' syntax instead.
404 ** Variable names must only consist of one or more of the characters
405 "A-Za-z0-9_".
406 ** In source text of the form '{$A}'{$B}' or `{$A}`{$B}`, where variable A
407 does not exist yet variable B does, the latter may not be replaced.
408 However, this difference is unlikely to arise in practice.
409 * (T67278) RFC, PMID, and ISBN "magic links" must be surrounded by non-word
410 characters on both sides.
411 * The FormatAutocomments hook will now receive $pre and $post as booleans,
412 rather than as strings that must be prepended or appended to $comment.
413 * (T30950, T31025) RFC, PMID, and ISBN "magic links" can no longer contain
414 newlines; but they can contain &nbsp; and other non-newline whitespace.
415 * The 'mediawiki.action.edit' ResourceLoader module no longer generates the edit
416 toolbar, which has been moved to a separate 'mediawiki.toolbar' module. If you
417 relied on this behavior, update your scripts' dependencies.
418 * HTMLForm's 'vform' display style has been separated to a subclass. Therefore:
419 * HTMLForm::isVForm() is now deprecated.
420 * You can no longer do this:
421 $form = new HTMLForm( … );
422 $form->setDisplayFormat( 'vform' ); // throws exception
423 Instead, do this:
424 $form = HTMLForm::factory( 'vform', … );
425 * Deprecated Revision methods getRawUser(), getRawUserText() and getRawComment().
426 * BREAKING CHANGE: mediawiki.user.generateRandomSessionId:
427 The alphabet of the prior string returned was A-Za-z0-9 and now it is 0-9A-F
428 * (T87504) Avoid serving SVG background-images in CSS for Opera 12, which
429 renders them incorrectly when combined with border-radius or background-size.
430 * Removed maintenance script dumpSisterSites.php.
431 * DatabaseBase class constructors must be called using the array argument style.
432 Ideally, DatabaseBase:factory() should be used instead in most cases.
433 * Deprecated ParserOutput::addSecondaryDataUpdate and ParserOutput::getSecondaryDataUpdates.
434 This is a hard deprecation, with getSecondaryDataUpdates returning an empty array and
435 addSecondaryDataUpdate throwing an exception. These functions will be removed in 1.26,
436 since they interfere with caching of ParserOutput objects.
437 * Introduced new hook 'SecondaryDataUpdates' that allows extensions to inject custom updates.
438 * Introduced new hook 'OpportunisticLinksUpdate' that allows extensions to perform
439 updates when a page is re-rendered.
440 * EditPage::attemptSave has been modified not to call handleStatus itself and
441 instead just returns the Status object. Extension calling it should be aware of
442 this.
443 * Removed class DBObject. (unused since 1.10)
444 * wfDiff() is deprecated.
445 * The -m (maximum replication lag) option of refreshLinks.php was removed.
446 It had no effect since MediaWiki 1.18 and should be removed from any cron
447 jobs or similar scripts you may have set up.
448 * (T85864) The following messages no longer support raw html: redirectto,
449 thisisdeleted, viewdeleted, editlink, retrievedfrom, version-poweredby-others,
450 retrievedfrom, thisisdeleted, viewsourcelink, lastmodifiedat, laggedslavemode,
451 protect-summary-cascade
452 * All BloomCache related code has been removed. This was largely experimental.
453
454 == Compatibility ==
455
456 MediaWiki 1.25 requires PHP 5.3.3 or later. There is experimental support for
457 HHVM 3.3.0.
458
459 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
460 support for them is somewhat less mature. There is experimental support for
461 Oracle and Microsoft SQL Server.
462
463 The supported versions are:
464
465 * MySQL 5.0.3 or later
466 * PostgreSQL 8.3 or later
467 * SQLite 3.3.7 or later
468 * Oracle 9.0.1 or later
469 * Microsoft SQL Server 2005 (9.00.1399)
470
471 == Upgrading ==
472
473 1.25 has several database changes since 1.24, and will not work without schema
474 updates. Note that due to changes to some very large tables like the revision
475 table, the schema update may take quite long (minutes on a medium sized site,
476 many hours on a large site).
477
478 If upgrading from before 1.11, and you are using a wiki as a commons
479 repository, make sure that it is updated as well. Otherwise, errors may arise
480 due to database schema changes.
481
482 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
483 new database fields are filled with data.
484
485 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
486 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
487 with MediaWiki 1.21.
488
489 Don't forget to always back up your database before upgrading!
490
491 See the file UPGRADE for more detailed upgrade instructions.
492
493 For notes on 1.24.x and older releases, see HISTORY.
494
495 == Online documentation ==
496
497 Documentation for both end-users and site administrators is available on
498 MediaWiki.org, and is covered under the GNU Free Documentation License (except
499 for pages that explicitly state that their contents are in the public domain):
500
501 https://www.mediawiki.org/wiki/Documentation
502
503 == Mailing list ==
504
505 A mailing list is available for MediaWiki user support and discussion:
506
507 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
508
509 A low-traffic announcements-only list is also available:
510
511 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
512
513 It's highly recommended that you sign up for one of these lists if you're
514 going to run a public MediaWiki, so you can be notified of security fixes.
515
516 == IRC help ==
517
518 There's usually someone online in #mediawiki on irc.freenode.net.