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