Fully replace Title::moveTo() with MovePage
[mediawiki.git] / RELEASE-NOTES-1.25
blob161ba40612455f950b49352e5813d5402acfc8c2
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 * Edit tokens returned from User::getEditToken may change on every call. Token
16   validity must be checked by passing the user-supplied token to
17   User::matchEditToken rather than by testing for equality with a
18   newly-generated token.
20 === New features in 1.25 ===
21 * (bug 62861) Updated plural rules to CLDR 26. Includes incompatible changes
22   for plural forms in Russian, Prussian, Tagalog, Manx and several languages
23   that fall back to Russian.
24 * (bug 58139) ResourceLoaderFileModule now supports language fallback
25   for 'languageScripts'.
26 * Added a new hook, "ContentAlterParserOutput", to allow extensions to modify the
27   parser output for a content object before links update.
28 * (bug 35785) Enhanced recent changes and extended watchlist are now default.
29   Documentation: https://meta.wikimedia.org/wiki/Help:Enhanced_recent_changes
30   and https://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions.
31 * (bug 67341) SVG images will no longer be base64-encoded when being embedded
32   in CSS. This results in slight size increase before gzip compression (due to
33   percent-encoding), but up to 20% decrease after it.
34 * Upgrade jStorage to v0.4.12.
35 * MediaWiki now natively supports page status indicators: icons (or short text
36   snippets) usually displayed in the top-right corner of the page. They have
37   been in use on Wikipedia for a long time, implemented using templates and CSS
38   absolute positioning.
39   - Basic wikitext syntax: <indicator name="foo">[[File:Foo.svg|20px]]</indicator>
40   - Usage instructions: https://www.mediawiki.org/wiki/Help:Page_status_indicators
41   - Adjusting custom skins to support indicators:
42     https://www.mediawiki.org/wiki/Manual:Skinning#Page_status_indicators
43 * Edit tokens may now be time-limited: passing a maximum age to
44   User::matchEditToken will reject any older tokens.
46 === Bug fixes in 1.25 ===
47 * (bug 71003) No additional code will be generated to try to load CSS-embedded
48   SVG images in Internet Explorer 6 and 7, as they don't support them anyway.
49 * (bug 67021) On Special:BookSources, corrected validation of ISBNs (both
50   10- and 13-digit forms) containing "X".
51 * Page moving was refactored into a MovePage class. As part of that:
52 ** The AbortMove hook was removed.
53 ** MovePageIsValidMove is for extensions to specify whether a page
54    cannot be moved for technical reasons, and should not be overriden.
55 ** MovePageCheckPermissions is for checking whether the given user is
56    allowed to make the move.
57 ** Title::moveNoAuth() was deprecated. Use the MovePage class instead.
58 ** Title::moveTo() was deprecated. Use the MovePage class instead.
59 ** Title::isValidMoveOperation() broken down into MovePage::isValidMove()
60    and MovePage::checkPermissions().
62 === Action API changes in 1.25 ===
63 * (bug 65403) XML tag highlighting is now only performed for formats
64   "xmlfm" and "wddxfm".
65 * action=paraminfo supports generalized submodules (modules=query+value),
66   querymodules and formatmodules are deprecated
67 * action=paraminfo no longer outputs descriptions and other help text by
68   default. If needed, it may be requested using the new 'helpformat' parameter.
69 * action=help has been completely rewritten, and outputs help in HTML
70   rather than plain text.
71 * Hitting api.php without specifying an action now displays only the help for
72   the main module, with links to submodule help.
73 * API help is no longer displayed on errors.
74 * Internationalized messages returned by the API will be in the wiki's content
75   language by default. 'uselang' is now a recognized API parameter;
76   "uselang=user" may be used to select the language from the current user's
77   preferences.
78 * Default output format for the API is now jsonfm.
79 * Simplified continuation will return a "batchcomplete" property in the result
80   when a batch of pages is complete.
81 * Pretty-printed HTML output now has nicer formatting and (if available)
82   better syntax highlighting.
84 === Action API internal changes in 1.25 ===
85 * ApiHelp has been rewritten to support i18n and paginated HTML output.
86   Most existing modules should continue working without changes, but should do
87   the following:
88   * Add an i18n message "apihelp-{$moduleName}-description" to replace getDescription().
89   * Add i18n messages "apihelp-{$moduleName}-param-{$param}" for each parameter
90     to replace getParamDescription(). If necessary, the settings array returned
91     by getParams() can use the new ApiBase::PARAM_HELP_MSG key to override the
92     message.
93   * Implement getExamplesMessages() to replace getExamples().
94 * Modules with submodules (like action=query) must have their submodules
95   override ApiBase::getParent() to return the correct parent object.
96 * The 'APIGetDescription' and 'APIGetParamDescription' hooks are deprecated,
97   and will have no effect for modules using i18n messages. Use
98   'APIGetDescriptionMessages' and 'APIGetParamDescriptionMessages' instead.
99 * Api formatters will no longer be asked to display the help screen on errors.
100 * ApiMain::getCredits() was removed. The credits are available in the
101   'api-credits' i18n message.
102 * ApiFormatBase has been changed to support i18n and syntax highlighting via
103   extensions with the new 'ApiFormatHighlight' hook. Core syntax highlighting
104   has been removed.
105 * ApiFormatBase now always buffers. Output is done when
106   ApiFormatBase::closePrinter is called.
107 * The following methods have been deprecated and may be removed in a future
108   release:
109   * ApiBase::getDescription
110   * ApiBase::getParamDescription
111   * ApiBase::getExamples
112   * ApiBase::makeHelpMsg
113   * ApiBase::makeHelpArrayToString
114   * ApiBase::makeHelpMsgParameters
115   * ApiFormatBase::setUnescapeAmps
116   * ApiFormatBase::getWantsHelp
117   * ApiFormatBase::setHelp
118   * ApiFormatBase::formatHTML
119   * ApiFormatBase::setBufferResult
120   * ApiFormatBase::getDescription
121   * ApiMain::setHelp
122   * ApiMain::reallyMakeHelpMsg
123   * ApiMain::makeHelpMsgHeader
124   * ApiQueryImageInfo::getPropertyDescriptions
126 === Languages updated in 1.25 ===
128 MediaWiki supports over 350 languages. Many localisations are updated
129 regularly. Below only new and removed languages are listed, as well as
130 changes to languages because of Bugzilla reports.
132 === Other changes in 1.25 ===
133 * The skin autodiscovery mechanism, deprecated in MediaWiki 1.23, has been
134   removed. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for
135   migration guide for creators and users of custom skins that relied on it.
136 * Javascript variable 'wgFileCanRotate' now only available on Special:Upload.
137 * (bug 56257) Set site logo from mediawiki.skinning.interface module instead of
138   inline styles in the HTML.
139 * Removed ApiQueryUsers::getAutoGroups(). (deprecated since 1.20)
140 * Removed XmlDumpWriter::schemaVersion(). (deprecated since 1.20)
141 * Removed LogEventsList::getDisplayTitle(). (deprecated since 1.20)
142 * Removed Preferences::trySetUserEmail(). (deprecated since 1.20)
143 * Removed mw.user.name() and mw.user.anonymous() methods. (deprecated since 1.20)
144 * Removed 'ok' and 'err' parameters in the mediawiki.api modules. (deprecated
145   since 1.20)
146 * Removed 'async' parameter from the  mw.Api#getCategories() method. (deprecated
147   since 1.20)
148 * Removed 'jquery.json' module. (deprecated since 1.24)
149   Use the 'json' module and global JSON object instead.
150 * Deprecated OutputPage::readOnlyPage() and OutputPage::rateLimited().
151   Also, the former will now throw an MWException if called with one or more
152   arguments.
153 * Removed hitcounters and associated code.
154 * The "temp" zone of the upload respository is now considered private. If it
155   already exists (such as under the images/ directory), please make sure that
156   the directory is not web readable (e.g. via a .htaccess file).
158 == Compatibility ==
160 MediaWiki 1.25 requires PHP 5.3.2 or later. There is experimental support for
161 HHVM 3.3.0.
163 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
164 support for them is somewhat less mature. There is experimental support for
165 Oracle and Microsoft SQL Server.
167 The supported versions are:
169 * MySQL 5.0.2 or later
170 * PostgreSQL 8.3 or later
171 * SQLite 3.3.7 or later
172 * Oracle 9.0.1 or later
173 * Microsoft SQL Server 2005 (9.00.1399)
175 == Upgrading ==
177 1.25 has several database changes since 1.24, and will not work without schema
178 updates. Note that due to changes to some very large tables like the revision
179 table, the schema update may take quite long (minutes on a medium sized site,
180 many hours on a large site).
182 If upgrading from before 1.11, and you are using a wiki as a commons
183 repository, make sure that it is updated as well. Otherwise, errors may arise
184 due to database schema changes.
186 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
187 new database fields are filled with data.
189 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
190 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
191 with MediaWiki 1.21.
193 Don't forget to always back up your database before upgrading!
195 See the file UPGRADE for more detailed upgrade instructions.
197 For notes on 1.23.x and older releases, see HISTORY.
199 == Online documentation ==
201 Documentation for both end-users and site administrators is available on
202 MediaWiki.org, and is covered under the GNU Free Documentation License (except
203 for pages that explicitly state that their contents are in the public domain):
205         https://www.mediawiki.org/wiki/Documentation
207 == Mailing list ==
209 A mailing list is available for MediaWiki user support and discussion:
211         https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
213 A low-traffic announcements-only list is also available:
215         https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
217 It's highly recommended that you sign up for one of these lists if you're
218 going to run a public MediaWiki, so you can be notified of security fixes.
220 == IRC help ==
222 There's usually someone online in #mediawiki on irc.freenode.net.