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