Merge "Correct deprecation warning for $.quoteString"
[mediawiki.git] / RELEASE-NOTES-1.24
blob9c605d04e381a1ac212b3713bc607ecdcbbcf27b
1 Security reminder: If you have PHP's register_globals option set, you should
2 turn it off. Although MediaWiki will work with it enabled, it exposes your
3 server to potential security vulnerabilities.
5 == MediaWiki 1.24 ==
7 THIS IS NOT A RELEASE YET
9 MediaWiki 1.24 is an alpha-quality branch and is not recommended for use in
10 production.
12 === Configuration changes in 1.24 ===
13 * The server's canonical hostname is available as $wgServerName, which is
14   exposed in both mw.config and ApiQuerySiteInfo.
15 * Introduced $wgPagePropsHaveSortkey as a backwards-compatibility switch,
16   for using the old schema of the page_props table, in case the respective
17   schema update was not applied.
18 * $wgSearchEverythingOnlyLoggedIn was removed as the 'searcheverything'
19   user option was removed. Use $wgNamespacesToBeSearchedDefault instead or
20   if you used to have $wgDefaultUserOptions['searcheverything'] = 1.
21 * $wgMasterWaitTimeout has been deprecated.
22 * $wgDBClusterTimeout has been removed.
23 * $wgProxyKey has been removed. It is no longer used by MediaWiki core.
24   Ensure $wgSecretKey is set in LocalSettings.php.
25 * $wgExtraInterlanguageLinkPrefixes is a new configuration variable that
26   contains an array of interwiki prefixes that should be treated as language
27   prefixes (i.e. turned into interlanguage links when $wgInterwikiMagic is set
28   to true).
29 * $wgParserTestRemote has been removed.
31 === New features in 1.24 ===
32 * Added a new hook, "WhatLinksHereProps", to allow extensions to annotate
33   WhatLinksHere entries.
34 * Added a new hook, "ContentGetParserOutput", to customize parser output for
35   a given content object.
36 * Deprecated the hook "ShowRawCssJs", use "ContentGetParserOutput" instead.
37 * HTMLForm's HTMLTextField now supports the 'url' type.
38 * HTMLForm fields may now be dynamically hidden based on the values of other
39   fields in the form.
40 * HTMLForm now supports multiple copies of an input field or set of input
41   fields, e.g. the form may request "one or more usernames" without having to
42   have the user enter delimited list of names into a text field.
43 * Added a new hook, "SidebarBeforeOutput", to allow to edit the structure of
44   the sidebar just before its display.
45 * (bug 49156) Added the mediawiki.cookie ResourceLoader module, which wraps
46   jquery.cookie so that getting/setting a cookie is syntactically and
47   functionally similar to using the WebRequest::getCookie() and
48   WebResponse::setcookie() methods.
49 * (bug 44740) jQuery upgraded from 1.8.3 to 1.11.1. A new configuration option,
50   $wgIncludejQueryMigrate, also loads the jQuery Migrate hack to let extensions
51   and gadgets use the long-deprecated functions that were removed in jQuery 1.9.
52   This option is turned off by default, and will be removed in MediaWiki 1.25.
53 * (bug 47076) jQuery UI upgraded from 1.8.24 to 1.9.2.
54 * Changes to content typography (fonts, etc.). See
55   https://www.mediawiki.org/wiki/Typography_refresh for further information.
56 * WikitextContent will now render redirects with the expected "redirect"
57   header, rather than as an ordered list. Code calling Article::viewRedirect
58   can probably be changed to no longer special-case redirects.
59 * Header font set to a serif font stack. See
60   https://www.mediawiki.org/wiki/Typography_refresh for further information.
61 * (bug 65567) Added a new hook, "BeforeHttpsRedirect", to allow cancellation of
62   the HTTP to HTTPS redirect due to forceHTTPS cookie, userRequires, etc. This
63   is only for page views, since this hook doesn't affect UserLogin, OAuth,
64   CentralAuth, etc. ATTENTION: This hook is likely to be removed soon due to
65   overall design of the system.
66 * (bug 17367) It is now possible to add pages to your watchlist from
67   Special:UnwatchedPages without reloading the special page.
68 * New methods setVolatile and isVolatile are added to PPFrame, so that
69   extensions such as Cite.php can mark that their output is volatile and
70   shouldn't be cached.
71 * (bug 52817) Advanced search options are now saved on the search page itself,
72   rather than in a dedicated pane in the preferences panel.
73 * (bug 44591) The dropdown actions menu (little triangle next to page tabs) in
74   the Vector skin has gained a label that should make it more discoverable.
75 * MWCryptHKDF added for fast, cryptographically secure random number generation
76   that won't deplete openssl's entropy pool.
77 * ResourceLoader: File modules can now provide a skip function that uses an
78   inline feature test to bypass loading of the module.
79 * (bug 20210) Special pages may now provide autocompletion of their subpage
80   names in search suggestions. Right now the only useful implementation is in
81   Special:Log, but more are to come.
82 * Special:MostLinkedTemplates is no longer limited to transclusions from the
83   Template namespace.
84 * Skins can now use 'remoteSkinPath' when defining ResourceLoader modules.
85   This works the same as 'remoteExtPath' but is relative to the skins/ folder
86   instead of the extensions/ folder.
87 * Added the json2.js polyfill for the ES5 JSON.stringify and JSON.parse methods.
88   Exposed as module "json" with a skip function to optimise loading.
89 * Extensions and skins may now use 'namemsg' in $wgExtensionCredits in addition
90   to 'name', to allow for the name to be localizable. 'name' should still be
91   specified for backwards-compatibility and to define the path Special:Version
92   uses to find extension license information.
93 * Browser tests are now included to verify basic wiki functionality in developer
94   environments. For details on running tests, see tests/browser/README.mediawiki.
95 * Upgrade jStorage to v0.4.10.
96 * {{!}} is now a magic word that produces the | character. This removes the need
97   for Template:! for purposes such as passing pipes inside of parameters.
98 * (bug 20790) The block log snippet on Special:Contributions and while
99   editing user and user talk pages now works for IP range blocks.
100 * (bug 9360) Added ability to change the page language for MediaWiki pages using
101   Special:PageLanguage. All pages are set to wiki language by default.
102   The feature needs to be enabled with $wgPageLanguageUseDB=true and
103   permission needs to be set for 'pagelang'.
104 * Upgrade Moment.js to v2.7.0.
106 === Bug fixes in 1.24 ===
107 * (bug 49116) Footer copyright notice is now always displayed in user language
108   rather than content language (same as copyright notice for editing interface).
109 * (bug 62258) A bug was fixed in File::getUnscaledThumb when a height
110   restriction was present in the parameters. Images with both the "frame"
111   option and a size specification set will now always ignore the provided
112   size and display an unscaled image, as the documentation has always
113   claimed it would.
114 * (bug 39035) Improved Vector skin performance by removing collapsibleNav,
115   which used to collapse some sidebar elements by default.
116   This removes -list id suffixes like p-lang-list: instead of using things like
117   #p-lang-list, you can do #p-lang .body ul.
118 * (bug 890) Links in Special:RecentChanges and Special:Watchlist no longer
119   follow redirects to their target pages.
120 * Parser now dies early if called recursively, instead of producing subtle bugs.
121 * (bug 14323) Redirect pages, when viewed with redirect=no, no longer hide the
122   remaining page content.
123 * (bug 52587) Maintenance script deleteBatch.php no longer follows redirects
124   in the file namespace and delete the file on the target page. It will still
125   however delete the redirect page.
126 * (bug 22683) {{msgnw:}} and other uses of PPFrame::RECOVER_ORIG will correctly
127   recover the original code of extension tags.
128 * (bug 65757) MSSQL: Update script drops unnamed constraints to be prepared
129   for future updates. Because it's doing so heuristically, it may fail or drop
130   wrong constraints.
132 === Web API changes in 1.24 ===
133 * action=parse API now supports prop=modules, which provides the list of
134   ResourceLoader modules that should be used to enhance the parsed content.
135 * action=query&meta=siteinfo&siprop=interwikimap returns a new "protorel"
136   field which is true iff protocol-relative urls can be used to access
137   a particular interwiki map entry.
138 * ApiQueryLogEvents now provides logpage, which is the page ID from the
139   logging table, if ids are requested and the user has the permissions.
140 * action=edit now requires that appendtext, prependtext, or section=new be used
141   when using the 'redirect' parameter, to prevent clients accidentally
142   overwriting the target page with the content of the redirect.
143 * action=logevents will now return an error if both letitle and leprefix are
144   specified.
145 * action=logevents has a new parameter, lenamespace, to allow filtering by
146   namespace.
147 * action=expandtemplates has a new parameter, prop, and a new output format.
148   The old format is still used if prop isn't provided, but this is deprecated.
149 * meta=userinfo can now return the count of unread pages on the watchlist.
150 * list=watchlist can now filter by unread status.
151 * The deprecated action=parse&prop=languageshtml has been removed.
152 * (bug 48071) action=setnotificationtimestamp no longer throws PHP or database
153   errors when no pages are given.
154 * (bug 60734) Actions that use ApiPageSet (e.g. purge, watch,
155   setnotificationtimestamp) will now include continuation information when
156   using a generator.
158 === Languages updated in 1.24 ===
160 MediaWiki supports over 350 languages. Many localisations are updated
161 regularly. Below only new and removed languages are listed, as well as
162 changes to languages because of Bugzilla reports.
164 === Other changes in 1.24 ===
165 * The deprecated jquery.delayedBind ResourceLoader module was removed.
166 * The deprecated function mw.util.toggleToc was removed.
167 * The Special:Search hooks SpecialSearchGo and SpecialSearchResultsAppend
168   were removed as they were unused.
169 * (bug 65477) User::pingLimiter() now has an additional profile point varying
170   by action being used.
171 * mediawiki.util.$content no longer supports old versions of the Vector,
172   Monobook, Modern and CologneBlue skins that don't yet implement the "mw-body"
173   and/or "mw-body-primary" class name in their html.
174 * Added pp_sortkey column to page_props table, so pages can be efficiently
175   queried and sorted by property value (bug 58032).
176   See $wgPagePropsHaveSortkey if you want to postpone the schema change.
177 * BREAKING CHANGE: The Modern and Cologne Blue skins were moved out of MediaWiki
178   core to their own respective repositories. See also
179   https://www.mediawiki.org/wiki/Skin:Modern and
180   https://www.mediawiki.org/wiki/Skin:CologneBlue.
181 * BREAKING CHANGE: Skins built for MediaWiki 1.15 and earlier that do not use
182   the "headelement" template key are no longer supported. Setting
183   $useHeadElement = false; is no longer supported and will not cause old keys
184   like "headlinks", "skinnameclass", etc. to be defined.
185 * The deprecated 'SpecialVersionExtensionTypes' hook was removed.
186 * (bug 63891) Add 'X-Robots-Tag: noindex' header in action=render pages.
187 * SpecialPage no longer supports the syntax for invoking wfSpecial*() functions.
188   Special pages should subclass SpecialPage and implement the execute() method.
189 * (bug 63755) The deprecated constants RC_MOVE and RC_MOVE_OVER_REDIRECT were
190   removed.
191 * Special:MostLinkedTemplates has been renamed to Special:MostTranscludedPages.
192 * The skin autodiscovery mechanism has been deprecated and will be removed in
193   MediaWiki 1.25. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery
194   for migration guide for creators and users of custom skins that relied on it.
195 * ResourceLoaderFileModule#getAllStyleFiles now returns all style files and all
196   skin style files used by the module.
197 * Removed getLang() from IContextSource and subclasses. (deprecated since 1.19)
198 * Removed setLang() from subclasses of IContextSource. (deprecated since 1.19)
199 * Removed WebRequest::escapeAppendQuery(). (deprecated since 1.20)
200 * Removed info(), purge(), revert() and rollback() from the Article class; they
201   have since become subclasses of the Action class. (deprecated since 1.19)
202 * SearchEngineReplacePrefixesComplete hook was removed.
203 * The "jquery.json" module has been deprecated. Use the "json" module instead.
204 * Removed HTMLForm::addJS(). (deprecated since 1.18)
205 * Removed LogEventsList::showHeader(). (deprecated since 1.19)
206 * Removed ImageGalleryBase::useSkin(). (deprecated since 1.18)
207 * Removed DatabaseMysqlBase::getLagFromProcesslist(). (deprecated since 1.19)
208 * Removed LoadBalancer::closeConnecton(). (deprecated since 1.18)
209 * Removed ApiBase::createContext(). (deprecated since 1.19)
210 * BREAKING CHANGE: The undocumented Special{$this->getName()}BeforeFormDisplay
211   set of hooks has been removed and replaced by a single new hook
212   SpecialPageBeforeFormDisplay.
213 * (bug 65781) Removed block warning on included {{Special:Contributions}}
215 ==== Renamed classes ====
216 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
217 * CLDRPluralRuleConverter_Fragment to CLDRPluralRuleConverterFragment
218 * CLDRPluralRuleConverter_Operator to CLDRPluralRuleConverterOperator
219 * CLDRPluralRuleEvaluator_Range to CLDRPluralRuleEvaluatorRange
220 * CSSJanus_Tokenizer to CSSJanusTokenizer
221 * MediaWiki_I18N to MediaWikiI18N
222 * Parser_DiffTest to ParserDiffTest
223 * RevDel_ArchiveItem to RevDelArchiveItem
224 * RevDel_ArchiveList to RevDelArchiveList
225 * RevDel_ArchivedFileItem to RevDelArchivedFileItem
226 * RevDel_ArchivedFileList to RevDelArchivedFileList
227 * RevDel_ArchivedRevisionItem to RevDelArchivedRevisionItem
228 * RevDel_FileItem to RevDelFileItem
229 * RevDel_FileList to RevDelFileList
230 * RevDel_Item to RevDelItem
231 * RevDel_List to RevDelList
232 * RevDel_LogItem to RevDelLogItem
233 * RevDel_LogList to RevDelLogList
234 * RevDel_RevisionItem to RevDelRevisionItem
235 * RevDel_RevisionList to RevDelRevisionList
236 * WebInstaller_Complete to WebInstallerComplete
237 * WebInstaller_Copying to WebInstallerCopying
238 * WebInstaller_DBConnect to WebInstallerDBConnect
239 * WebInstaller_DBSettings to WebInstallerDBSettings
240 * WebInstaller_Document to WebInstallerDocument
241 * WebInstaller_ExistingWiki to WebInstallerExistingWiki
242 * WebInstaller_Install to WebInstallerInstall
243 * WebInstaller_Language to WebInstallerLanguage
244 * WebInstaller_Name to WebInstallerName
245 * WebInstaller_Options to WebInstallerOptions
246 * WebInstaller_Readme to WebInstallerReadme
247 * WebInstaller_ReleaseNotes to WebInstallerReleaseNotes
248 * WebInstaller_Restart to WebInstallerRestart
249 * WebInstaller_Upgrade to WebInstallerUpgrade
250 * WebInstaller_UpgradeDoc to WebInstallerUpgradeDoc
251 * WebInstaller_Welcome to WebInstallerWelcome
253 ==== Removed classes ====
254 * IPBlockForm - Use SpecialBlock directly
255 * WatchlistEditor - Use SpecialEditWatchlist directly
256 * FormatExif - Use FormatMetadata directly
258 == Compatibility ==
260 MediaWiki 1.24 requires PHP 5.3.2 or later.
262 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
263 support for them is somewhat less mature. There is experimental support for
264 Oracle and Microsoft SQL Server.
266 The supported versions are:
268 * MySQL 5.0.2 or later
269 * PostgreSQL 8.3 or later
270 * SQLite 3.3.7 or later
271 * Oracle 9.0.1 or later
272 * Microsoft SQL Server 2005 (9.00.1399)
274 == Upgrading ==
276 1.24 has several database changes since 1.23, and will not work without schema
277 updates. Note that due to changes to some very large tables like the revision
278 table, the schema update may take quite long (minutes on a medium sized site,
279 many hours on a large site).
281 If upgrading from before 1.11, and you are using a wiki as a commons
282 repository, make sure that it is updated as well. Otherwise, errors may arise
283 due to database schema changes.
285 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
286 new database fields are filled with data.
288 If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to
289 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed
290 with MediaWiki 1.21.
292 Don't forget to always back up your database before upgrading!
294 See the file UPGRADE for more detailed upgrade instructions.
296 For notes on 1.23.x and older releases, see HISTORY.
298 == Online documentation ==
300 Documentation for both end-users and site administrators is available on
301 MediaWiki.org, and is covered under the GNU Free Documentation License (except
302 for pages that explicitly state that their contents are in the public domain):
304         https://www.mediawiki.org/wiki/Documentation
306 == Mailing list ==
308 A mailing list is available for MediaWiki user support and discussion:
310         https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
312 A low-traffic announcements-only list is also available:
314         https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
316 It's highly recommended that you sign up for one of these lists if you're
317 going to run a public MediaWiki, so you can be notified of security fixes.
319 == IRC help ==
321 There's usually someone online in #mediawiki on irc.freenode.net.