Add explicit plural for number of bytes
[mediawiki.git] / RELEASE-NOTES-1.25
blobf5cec5454e78e79458ed9a68147c1764dddc9660
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.
197 === Action API changes in 1.25 ===
198 * (T67403) XML tag highlighting is now only performed for formats
199   "xmlfm" and "wddxfm".
200 * action=paraminfo supports generalized submodules (modules=query+value),
201   querymodules and formatmodules are deprecated
202 * action=paraminfo no longer outputs descriptions and other help text by
203   default. If needed, it may be requested using the new 'helpformat' parameter.
204 * action=help has been completely rewritten, and outputs help in HTML
205   rather than plain text.
206 * Hitting api.php without specifying an action now displays only the help for
207   the main module, with links to submodule help.
208 * API help is no longer displayed on errors.
209 * 'uselang' is now a recognized API parameter; "uselang=user" may be used to
210   explicitly select the language from the current user's preferences, and
211   "uselang=content" may be used to select the wiki's content language.
212 * Default output format for the API is now jsonfm.
213 * Simplified continuation will return a "batchcomplete" property in the result
214   when a batch of pages is complete.
215 * Pretty-printed HTML output now has nicer formatting and (if available)
216   better syntax highlighting.
217 * Deprecated list=deletedrevs in favor of newly-added prop=deletedrevisions and
218   list=alldeletedrevisions.
219 * prop=revisions will gracefully continue when given too many revids or titles,
220   rather than just ignoring the extras.
221 * prop=revisions will no longer die if rvcontentformat doesn't match a
222   revision's content model; it will instead warn and omit the content.
223 * If the user has the 'deletedhistory' right, action=query's revids parameter
224   will now recognize deleted revids.
225 * prop=revisions may be used as a generator, generating revids.
226 * (T68776) format=json results will no longer be corrupted when
227   $wgMangleFlashPolicy is in effect. format=php results will cleanly return an
228   error instead of returning invalid serialized data.
229 * Generators may now return data for the generated pages when used with
230   action=query.
231 * Query page data for generator=search and generator=prefixsearch will now
232   include an "index" field, which may be used by the client for sorting the
233   search results.
234 * ApiOpenSearch now supports XML output.
235 * ApiOpenSearch will now output descriptions and URLs as array indexes 2 and 3
236   in JSON format.
237 * (T76051) list=tags will now continue correctly.
238 * (T76052) list=tags can now indicate whether a tag is defined.
239 * (T75522) list=prefixsearch now supports continuation
240 * (T78737) action=expandtemplates can now return page properties.
241 * (T78690) list=allimages now accepts multiple pipe-separated values
242   for the 'aimime' parameter.
243 * prop=info with inprop=protections will now return applicable protection types
244   with the 'restrictiontypes' key.
245 * (T85417) When resolving redirects, ApiPageSet will now add the targets of
246   interwiki redirects to the list of interwiki titles.
247 * (T85417) When outputting the list of redirect titles, a 'tointerwiki'
248   property (like the existing 'tofragment' property) will be set.
249 * Added action=managetags to allow for managing the list of
250   user-modifiable change tags. Actually modifying the tagging of a revision or
251   log entry is not implemented yet.
252 * list=tags has additional properties to indicate 'active' status and tag
253   sources.
254 * siprop=libraries was added to ApiQuerySiteInfo to list installed external libraries.
255 * (T88010) Added action=checktoken, to test a CSRF token's validity.
256 * (T88010) Added intestactions to prop=info, to allow querying of
257   Title::userCan() via the API.
258 * Default type param for query list=watchlist and list=recentchanges has
259   been changed from all types (e.g. including 'external') to 'edit|new|log'.
260 * Added formatversion to format=json. Still "experimental" as further changes
261   to the output formatting might still be made.
262 * (T73020) Log event details are now always under a 'params' subkey for
263   list=logevents, and a 'logparams' subkey for list=watchlist and
264   list=recentchanges.
265 * Log event details are changing formatting:
266   * block events now report flags as an array rather than as a comma-separated
267     list.
268   * patrol events now report the 'auto' flag as a boolean (absent/empty string
269     for BC formats) rather than as an integer.
270   * rights events now report the old and new group lists as arrays rather than
271     as comma-separated lists.
272   * merge events use new-style formatting.
273   * delete/event and delete/revision events use new-style formatting.
274 * The root node and various other nodes will now always be an object in formats
275   such as json that distinguish between arrays and objects.
276   * Except for action=opensearch where the spec requires an array.
278 === Action API internal changes in 1.25 ===
279 * ApiHelp has been rewritten to support i18n and paginated HTML output.
280   Most existing modules should continue working without changes, but should do
281   the following:
282   * Add an i18n message "apihelp-{$moduleName}-description" to replace getDescription().
283   * Add i18n messages "apihelp-{$moduleName}-param-{$param}" for each parameter
284     to replace getParamDescription(). If necessary, the settings array returned
285     by getParams() can use the new ApiBase::PARAM_HELP_MSG key to override the
286     message.
287   * Implement getExamplesMessages() to replace getExamples().
288 * Modules with submodules (like action=query) must have their submodules
289   override ApiBase::getParent() to return the correct parent object.
290 * The 'APIGetDescription' and 'APIGetParamDescription' hooks are deprecated,
291   and will have no effect for modules using i18n messages. Use
292   'APIGetDescriptionMessages' and 'APIGetParamDescriptionMessages' instead.
293 * Api formatters will no longer be asked to display the help screen on errors.
294 * ApiMain::getCredits() was removed. The credits are available in the
295   'api-credits' i18n message.
296 * ApiFormatBase has been changed to support i18n and syntax highlighting via
297   extensions with the new 'ApiFormatHighlight' hook. Core syntax highlighting
298   has been removed.
299 * ApiFormatBase now always buffers. Output is done when
300   ApiFormatBase::closePrinter is called.
301 * Much of the logic in ApiQueryRevisions has been split into ApiQueryRevisionsBase.
302 * The 'revids' parameter supplied by ApiPageSet will now count deleted
303   revisions as "good" if the user has the 'deletedhistory' right. New methods
304   ApiPageSet::getLiveRevisionIDs() and ApiPageSet::getDeletedRevisionIDs() are
305   provided to access just the live or just the deleted revids.
306 * Added ApiPageSet::setGeneratorData() and ApiPageSet::populateGeneratorData()
307   to allow generators to include data in the action=query result.
308 * New hooks 'ApiMain::moduleManager' and 'ApiQuery::moduleManager', can be
309   used for conditional registration of API modules.
310 * Added ApiBase::lacksSameOriginSecurity() to allow modules to easily check if
311   the current request was sent with the 'callback' parameter (or any future
312   method that breaks the same-origin policy).
313 * Profiling methods in ApiBase are deprecated and no longer need to be called.
314 * ApiResult was greatly overhauled. See inline documentation for details.
315 * ApiResult will automatically convert objects to strings or arrays (depending
316   on whether a __toString() method exists on the object), and will refuse to
317   add unsupported value types.
318   * An informal interface, ApiSerializable, exists to override the default
319     object conversion.
320 * ApiResult/ApiFormatBase "raw mode" is deprecated.
321 * ApiFormatXml now assumes defaults and so on instead of throwing errors when
322   metadata isn't set.
323 * (T35235) LogFormatter subclasses are now responsible for formatting log event
324   parameters for the API.
325 * Many modules have changed result data formats. While this shouldn't affect
326   clients not using the experimental formatversion=2, code using
327   ApiResult::getResultData() without the transformations for backwards
328   compatibility may need updating, as will code that wasn't following the old
329   conventions for API boolean output.
330 * The following methods have been deprecated and may be removed in a future
331   release:
332   * ApiBase::getDescription
333   * ApiBase::getParamDescription
334   * ApiBase::getExamples
335   * ApiBase::makeHelpMsg
336   * ApiBase::makeHelpArrayToString
337   * ApiBase::makeHelpMsgParameters
338   * ApiBase::getModuleProfileName
339   * ApiBase::profileIn
340   * ApiBase::profileOut
341   * ApiBase::safeProfileOut
342   * ApiBase::getProfileTime
343   * ApiBase::profileDBIn
344   * ApiBase::profileDBOut
345   * ApiBase::getProfileDBTime
346   * ApiBase::getResultData
347   * ApiFormatBase::setUnescapeAmps
348   * ApiFormatBase::getWantsHelp
349   * ApiFormatBase::setHelp
350   * ApiFormatBase::formatHTML
351   * ApiFormatBase::setBufferResult
352   * ApiFormatBase::getDescription
353   * ApiFormatBase::getNeedsRawData
354   * ApiMain::setHelp
355   * ApiMain::reallyMakeHelpMsg
356   * ApiMain::makeHelpMsgHeader
357   * ApiResult::setRawMode
358   * ApiResult::getIsRawMode
359   * ApiResult::getData
360   * ApiResult::setElement
361   * ApiResult::setContent
362   * ApiResult::setIndexedTagName_recursive
363   * ApiResult::setIndexedTagName_internal
364   * ApiResult::setParsedLimit
365   * ApiResult::beginContinuation
366   * ApiResult::setContinueParam
367   * ApiResult::setGeneratorContinueParam
368   * ApiResult::endContinuation
369   * ApiResult::size
370   * ApiResult::convertStatusToArray
371   * ApiQueryImageInfo::getPropertyDescriptions
372   * ApiQueryLogEvents::addLogParams
373 * The following classes have been deprecated and may be removed in a future
374   release:
375   * ApiQueryDeletedrevs
377 === Languages updated in 1.25 ===
379 MediaWiki supports over 350 languages. Many localisations are updated
380 regularly. Below only new and removed languages are listed, as well as
381 changes to languages because of Bugzilla reports.
383 * Languages added:
384 ** awa (अवधी / Awadhi), thanks to translator 1AnuraagPandey;
385 ** bgn (بلوچی رخشانی / Western Balochi), thanks to translators
386    Baloch Afghanistan, Ibrahim khashrowdi and Rachitrali;
387 ** ses (Koyraboro Senni), thanks to translator Songhay.
388 * (T66440) Kazakh (kk) wikis should no longer forcefully reset the user's
389   interface language to kk where unexpected.
390 * The Chinese conversion table was substantially updated to fix a lot of
391   bugs and ensure better reading experience for different variants.
393 === Other changes in 1.25 ===
394 * (T45591) Links to MediaWiki.org translatable help were added to indicators,
395   mostly in special pages. Local custom target titles can be placed in the
396   relevant '(namespace-X|action name|special page name)-helppage' system
397   message. Extensions can use the addHelpLink() function to do the same.
398 * The skin autodiscovery mechanism, deprecated in MediaWiki 1.23, has been
399   removed. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for
400   migration guide for creators and users of custom skins that relied on it.
401 * Javascript variables 'wgFileCanRotate' and 'wgFileExtensions' now only
402   available on Special:Upload.
403 * (T58257) Set site logo from mediawiki.skinning.interface module instead of
404   inline styles in the HTML.
405 * Removed ApiQueryUsers::getAutoGroups(). (deprecated since 1.20)
406 * Removed XmlDumpWriter::schemaVersion(). (deprecated since 1.20)
407 * Removed LogEventsList::getDisplayTitle(). (deprecated since 1.20)
408 * Removed Preferences::trySetUserEmail(). (deprecated since 1.20)
409 * Removed mw.user.name() and mw.user.anonymous() methods. (deprecated since 1.20)
410 * Removed 'ok' and 'err' parameters in the mediawiki.api modules. (deprecated
411   since 1.20)
412 * Removed 'async' parameter from the  mw.Api#getCategories() method. (deprecated
413   since 1.20)
414 * Removed 'jquery.json' module. (deprecated since 1.24)
415   Use the 'json' module and global JSON object instead.
416 * Deprecated OutputPage::readOnlyPage() and OutputPage::rateLimited().
417   Also, the former will now throw an MWException if called with one or more
418   arguments.
419 * Removed hitcounters and associated code.
420 * The "temp" zone of the upload respository is now considered private. If it
421   already exists (such as under the images/ directory), please make sure that
422   the directory is not web readable (e.g. via a .htaccess file).
423 * BREAKING CHANGE: In the XML dump format used by Special:Export and
424   dumpBackup.php, the <model> and <format> tags now apprear before the <text>
425   tag, instead of after the <text> and <sha1> tags.
426   The new schema version is 0.10, the new schema URI is:
427   https://www.mediawiki.org/xml/export-0.10.xsd
428 * MWFunction::call() and MWFunction::callArray() were removed, having being
429   deprecated in 1.22.
430 * Deprecated the getInternalLinkAttributes, getInternalLinkAttributesObj,
431   and getInternalLinkAttributes methods in Linker, and removed
432   getExternalLinkAttributes method, which was deprecated in MediaWiki 1.18.
433 * Removed Sites class, which was deprecated in 1.21 and replaced by SiteSQLStore.
434 * Added wgRelevantArticleId to the client-side config, for use on special pages.
435 * Deprecated the TitleIsCssOrJsPage hook. Superseded by the
436   ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
437 * Deprecated the TitleIsWikitextPage hook. Superseded by the
438   ContentHandlerDefaultModelFor hook since MediaWiki 1.21.
439 * Changed parsing of variables in schema (.sql) files:
440 ** The substituted values are no longer parsed. (Formerly, several passes
441    were made for each variable, so depending on the order in which variables
442    were defined, variables might have been found inside encoded values. This
443    is no longer the case.)
444 ** Variables are no longer string encoded when the /*$var*/ syntax is used.
445    If string encoding is necessary, use the '{$var}' syntax instead.
446 ** Variable names must only consist of one or more of the characters
447    "A-Za-z0-9_".
448 ** In source text of the form '{$A}'{$B}' or `{$A}`{$B}`, where variable A
449    does not exist yet variable B does, the latter may not be replaced.
450    However, this difference is unlikely to arise in practice.
451 * (T67278) RFC, PMID, and ISBN "magic links" must be surrounded by non-word
452   characters on both sides.
453 * The FormatAutocomments hook will now receive $pre and $post as booleans,
454   rather than as strings that must be prepended or appended to $comment.
455 * (T30950, T31025) RFC, PMID, and ISBN "magic links" can no longer contain
456   newlines; but they can contain &nbsp; and other non-newline whitespace.
457 * The 'mediawiki.action.edit' ResourceLoader module no longer generates the edit
458   toolbar, which has been moved to a separate 'mediawiki.toolbar' module. If you
459   relied on this behavior, update your scripts' dependencies.
460 * HTMLForm's 'vform' display style has been separated to a subclass. Therefore:
461   * HTMLForm::isVForm() is now deprecated.
462   * You can no longer do this:
463       $form = new HTMLForm( … );
464       $form->setDisplayFormat( 'vform' ); // throws exception
465     Instead, do this:
466       $form = HTMLForm::factory( 'vform', … );
467 * Deprecated Revision methods getRawUser(), getRawUserText() and getRawComment().
468 * BREAKING CHANGE: mediawiki.user.generateRandomSessionId:
469   The alphabet of the prior string returned was A-Za-z0-9 and now it is 0-9A-F
470 * (T87504) Avoid serving SVG background-images in CSS for Opera 12, which
471   renders them incorrectly when combined with border-radius or background-size.
472 * Removed maintenance script dumpSisterSites.php.
473 * DatabaseBase class constructors must be called using the array argument style.
474   Ideally, DatabaseBase:factory() should be used instead in most cases.
475 * Deprecated ParserOutput::addSecondaryDataUpdate and ParserOutput::getSecondaryDataUpdates.
476   This is a hard deprecation, with getSecondaryDataUpdates returning an empty array and
477   addSecondaryDataUpdate throwing an exception. These functions will be removed in 1.26,
478   since they interfere with caching of ParserOutput objects.
479 * Introduced new hook 'SecondaryDataUpdates' that allows extensions to inject custom updates.
480 * Introduced new hook 'OpportunisticLinksUpdate' that allows extensions to perform
481   updates when a page is re-rendered.
482 * EditPage::attemptSave has been modified not to call handleStatus itself and
483   instead just returns the Status object. Extension calling it should be aware of
484   this.
485 * Removed class DBObject. (unused since 1.10)
486 * wfDiff() is deprecated.
487 * The -m (maximum replication lag) option of refreshLinks.php was removed.
488   It had no effect since MediaWiki 1.18 and should be removed from any cron
489   jobs or similar scripts you may have set up.
490 * (T85864) The following messages no longer support raw html: redirectto,
491   thisisdeleted, viewdeleted, editlink, retrievedfrom, version-poweredby-others,
492   retrievedfrom, thisisdeleted, viewsourcelink, lastmodifiedat, laggedslavemode,
493   protect-summary-cascade
494 * All BloomCache related code has been removed. This was largely experimental.
495 * $wgResourceModuleSkinStyles no longer supports per-module local or remote paths. They
496   can only be set for the entire skin.
497 * Removed global function swap(). (deprecated since 1.24)
498 * Deprecated the ".php5" file extension entry points and the $wgScriptExtension
499   configuration variable. Refer to the ".php" files instead. If you want
500   ".php5" URLs to continue to work, set up redirects. In Apache, this can be
501   done by enabling mod_rewrite and adding the following rules to your
502   configuration:
504     RewriteEngine On
505     RewriteBase /
506     RewriteRule ^(.*)\.php5 $1.php [R=301,L]
508 * The global importScriptURI and importStylesheetURI functions, as well as the
509   loadedScripts object, from wikibits.js (deprecated since 1.17) now emit
510   warnings through mw.log.warn when accessed.
513 == Compatibility ==
515 MediaWiki 1.25 requires PHP 5.3.3 or later. There is experimental support for
516 HHVM 3.3.0.
518 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
519 support for them is somewhat less mature. There is experimental support for
520 Oracle and Microsoft SQL Server.
522 The supported versions are:
524 * MySQL 5.0.3 or later
525 * PostgreSQL 8.3 or later
526 * SQLite 3.3.7 or later
527 * Oracle 9.0.1 or later
528 * Microsoft SQL Server 2005 (9.00.1399)
530 == Upgrading ==
532 1.25 has several database changes since 1.24, and will not work without schema
533 updates. Note that due to changes to some very large tables like the revision
534 table, the schema update may take quite long (minutes on a medium sized site,
535 many hours on a large site).
537 If upgrading from before 1.11, and you are using a wiki as a commons
538 repository, make sure that it is updated as well. Otherwise, errors may arise
539 due to database schema changes.
541 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
542 new database fields are filled with data.
544 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
545 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
546 with MediaWiki 1.21.
548 Don't forget to always back up your database before upgrading!
550 See the file UPGRADE for more detailed upgrade instructions.
552 For notes on 1.24.x and older releases, see HISTORY.
554 == Online documentation ==
556 Documentation for both end-users and site administrators is available on
557 MediaWiki.org, and is covered under the GNU Free Documentation License (except
558 for pages that explicitly state that their contents are in the public domain):
560         https://www.mediawiki.org/wiki/Documentation
562 == Mailing list ==
564 A mailing list is available for MediaWiki user support and discussion:
566         https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
568 A low-traffic announcements-only list is also available:
570         https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
572 It's highly recommended that you sign up for one of these lists if you're
573 going to run a public MediaWiki, so you can be notified of security fixes.
575 == IRC help ==
577 There's usually someone online in #mediawiki on irc.freenode.net.