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