Merge "Upgrade jQuery to 1.8.1 now that the remaining bug fixes have been merged"
[lhc/web/wiklou.git] / RELEASE-NOTES-1.20
1 = MediaWiki release notes =
2
3 Security reminder: MediaWiki does not require PHP's register_globals
4 setting since version 1.2.0. If you have it on, turn it '''off''' if you can.
5
6 == MediaWiki 1.20 ==
7
8 THIS IS NOT A RELEASE YET
9
10 MediaWiki 1.20 is an alpha-quality branch and is not recommended for use in
11 production.
12
13 === PHP 5.3 now required ===
14 Since 1.20, the lowest supported version of PHP is now 5.3.2. Please
15 upgrade PHP if you have not done so prior to upgrading MediaWiki.
16
17 === Configuration changes in 1.20 ===
18 * $wgGitRepositoryViewers defines a mapping from Git remote repository to the
19 Gitweb instance URL used in Special:Version.
20 * `$wgUsePathInfo = true;` is no longer needed to make $wgArticlePath work on servers
21 using like nginx, lighttpd, and apache over fastcgi. MediaWiki now always extracts
22 path info from REQUEST_URI if it's available.
23 * The user right 'upload_by_url' is no longer given to sysops by default.
24 This only affects installations which have $wgAllowCopyUploads set to true.
25 * Removed f-prot support from $wgAntivirusSetup.
26 * New variable $wgDBerrorLogTZ to provide dates in the error log in a
27 different timezone than the wiki timezone set by $wgLocaltimezone.
28 * New variables $wgDBssl and $wgDBcompress to enable SSL and compression for database
29 connections, if either are available for the selected DB type.
30
31 === New features in 1.20 ===
32 * Added TitleIsAlwaysKnown hook which gets called when determining if a page exists.
33 * Added NamespaceIsMovable hook which gets called when determining if pages in a
34 certain namespace can be moved.
35 * Added SpecialPageBeforeExecute hook which gets called before SpecialPage::execute.
36 * Added SpecialPageAfterExecute hook which gets called after SpecialPage::execute.
37 * Added ORMTable, ORMRow and ORMResult classes for additional abstraction of
38 database interaction.
39 * Added CacheHelper and associated SpecialCachedPage and CachedAction helper classes.
40 * (bug 32341) Add upload by URL domain limitation.
41 * &useskin=default will now always display the default skin. Useful for users with a
42 preference for the non-default skin to look at something using the default skin.
43 * (bug 27619) Remove preference option to display broken links as link?
44 * (bug 34896) jQuery JSON plugin upgraded to v2.3 (2011-09-17).
45 * (bug 34302) Add CSS classes to email fields in user preferences.
46 * Introduced $wgDebugDBTransactions to trace transaction status (currently PostgreSQL only).
47 * (bug 23795) Add parser itself to ParserMakeImageParams hook.
48 * Introduce a cryptographic random number generator source api for use when
49 generating various tokens.
50 * (bug 30963) Option on Special:Prefixindex and Special:Allpages to not show redirects.
51 * (bug 18062) New message when edit or create the local page of a shared file.
52 * (bug 22870) Separate interface message when creating a page.
53 * (bug 17615) nosummary option should be reassigned on preview/captcha.
54 * (bug 34355) Add a variable and parser function for the namespace number.
55 * (bug 35649) Special:Version now shows hashes of extensions checked out from git.
56 * (bug 35728) Git revisions are now linked on Special:Version.
57 * "Show Changes" on default messages shows now diff against default message text
58 * (bug 23006) create #speciale parser function.
59 * generateSitemap can now optionally skip redirect pages.
60 * (bug 27757) New API command just for retrieving tokens (not page-based).
61 * Added GitViewers hook for extensions using external git repositories to have a web-based
62 repository viewer linked to from Special:Version.
63 * Memcached debug logs can now be sent to their own file logs by setting
64 $wgDebugLogFile['memcached'] to some filepath.
65 * (bug 35685) api.php URL and other entry point URLs are now listed on
66 Special:Version
67 * Edit notices can now be translated.
68 * jQuery upgraded to 1.8.1
69 * jQuery UI upgraded to 1.8.23.
70 * QUnit upgraded from v1.2.0 to v1.10.0.
71 * (bug 37604) jquery.cookie upgraded to 2011 version.
72 * (bug 22887) Add warning and tracking category for preprocessor errors
73 * (bug 31704) Allow selection of associated namespace on the watchlist
74 * (bug 5445) Now remove autoblocks when a user is unblocked.
75 * Added $wgLogExceptionBacktrace, on by default, to allow logging of exception
76 backtraces.
77 * Added device detection for determining device capabilities.
78 * QUnit.newMwEnvironment now supports passing a custom setup and/or teardown function.
79 Arguments signature has changed. First arguments is now an options object of which
80 'config' can be a property. Previously 'config' itself was the first and only argument.
81 * New getCreator and getOldestRevision methods added to WikiPage class
82 * (bug 4220) the XML dump format schema now have unique identity constraints
83 for page and revision identifiers. Patch by Elvis Stansvik.
84 * cleanupSpam.php now can delete spam pages if --delete was specified instead of blanking
85 them.
86 * Added new hook ChangePasswordForm to allow adding of additional fields in Special:ChangePassword
87 * Added new function getDomain to AuthPlugin for getting a user's domain
88 * (bug 23427) New magic word {{PAGEID}} which gives the current page ID.
89 Will be null on previewing a page being created.
90 * (bug 37627) UserNotLoggedIn() exception to show a generic error page whenever
91 a user is not logged in.
92 * Watched status in changes lists are no longer indicated by <strong></strong>
93 tags with class "mw-watched". Instead, each line now has a class
94 "mw-changeslist-line-watched" or "mw-changeslist-line-not-watched", and the
95 title itself is surrounded by <span></span> tags with class "mw-title".
96 * Added ContribsPager::reallyDoQuery hook allowing extensions to data to MyContribs
97 * Added new hook ParserAfterParse to allow extensions to affect parsed output
98 after the parse is complete but before block level processing, link holder
99 replacement, and so on.
100 * (bug 34678) Added InternalParseBeforeSanitize hook which gets called during Parser's
101 internalParse method just before the parser removes unwanted/dangerous HTML tags.
102 * Added new hook AfterFinalPageOutput to allow modifications to buffered page output before sent
103 to the client.
104 * (bug 36783) Implement jQuery Promise interface in mediawiki.api module.
105 * Make dates in sortable tables sort according to the page content language
106 instead of the site content language
107 * (bug 37926) Deleterevision will no longer allow users to delete log entries,
108 the new deletelogentry permission is required for this.
109 * (bug 14237) Allow PAGESINCATEGORY to distinguish between 'all', 'pages', 'files'
110 and 'subcats'
111 * (bug 38362) Make Special:Listuser includeable on wiki pages.
112 * Added support in jquery.localize for placeholder attributes.
113 * (bug 38151) Implemented mw.user.getRights for getting and caching the current
114 user's user rights.
115 * Session storage can now configured independently of general object cache
116 storage, by using $wgSessionCacheType. $wgSessionsInMemcached has been
117 renamed to $wgSessionsInObjectCache, with the old name retained for backwards
118 compatibility. When this feature is enabled, the expiry time can now be
119 configured with $wgObjectCacheSessionExpiry.
120 * Added a Redis client for object caching.
121 * Implemented mw.user.getGroups for getting and caching user groups.
122 * (bug 37830) Added $wgRequirePasswordforEmailChange to control whether password
123 confirmation is required for changing an email address or not.
124 * HTMLForm mutators can now be chained (they return $this)
125 * A new message, "api-error-filetype-banned-type", is available for formatting
126 API upload errors due to the file extension blacklist.
127 * New hook 'ParserTestGlobals' allows to set globals before running parser tests.
128 * Allow importing pages as subpage.
129 * Add lang and hreflang attributes to language links on Login page.
130 * (bug 22749) Create Special:MostInterwikis.
131 * Show change tags when transclude Special:Recentchanges(linked) or Special:Newpages.
132 * (bug 23226) Add |class= parameter to image links in order to add class(es) to HTML img tag.
133 * (bug 39431) SVG animated status is now shown in long description
134 * (bug 39376) jquery.form upgraded to 3.14.
135 * SVG files will now show the actual width in the SVG's specified units
136 in the metadata box.
137 * Added ResourceLoader module "jquery.jStorage".
138 * (bug 39273) Added AJAX support for "Show changes" (diff) in LivePreview.
139 * Added ResourceLoader module "jquery.badge".
140 * mw.util.$content now points to the overall content area in the skin rather than just
141 page text content area. If you need the old behaviour please use $( '#mw-content-text').
142 * jsMessage has been replaced with a floating bubble notification system complete
143 with auto-hide, multi-message support, and message replacement tags.
144 * jquery.messageBox which appears to be unused by both core and extensions has
145 been removed.
146 * (bug 34939) Made link parsing insensitive ([HttP://])
147 * (bug 40072) Add CSS classes to items in output of ChangesList pages.
148
149 === Bug fixes in 1.20 ===
150 * (bug 30245) Use the correct way to construct a log page title.
151 * (bug 34237) Regenerate an empty user_token and save to the database
152 when we try to set the user's cookies for login.
153 * (bug 32210) New edit emails for watched pages always provide a link to the
154 edit which triggered the mail.
155 * (bug 12021) Added user talk link on Special:Listusers.
156 * (bug 34445) section edit and TOC hide/show links are excluded from selection and
157 copy/paste on supporting browsers.
158 * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob
159 history compression method.
160 * (bug 34702) Localised parentheses are now used in more special pages.
161 * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR.
162 * (bug 34762) Calling close() on a DatabaseBase object now clears the connection.
163 * (bug 34863) Show deletion log extract on non-existent file pages if applicable.
164 * (bug 28019) Let ?preloadtitle=foo be passed on to target of
165 Special:MyPage and Special:MyTalk.
166 * (bug 34929) Show the correct diff when a section edit is rejected by the spam
167 filter.
168 * (bug 15816) Add a switch for SETting the search_path (Postgres).
169 * (bug 34521) Returning to the previous page after logging in loses any array-
170 valued parameters in the query string.
171 * (bug 34735) Updated compressOld.php documentation to mention the different
172 usages of -s and -n parameters depending on compression type.
173 * (bug 13896) Rendering of devanagari numbers in automatic '#' number lists.
174 * (bug 33689) Upgrade to 1.19 on Postgres fails due to incomplete query when.
175 trying to defer foreign key for externallinks.
176 * (bug 32748) Printer friendly version of article decode Unicode chars as a
177 pretty IRI in footer.
178 * Removed white border around thumbnails in galleries.
179 * (bug 31236) "Next" and "Previous" buttons are shown incorrectly in
180 an RTL environment.
181 * (bug 35749) Updated maintenance/checkSyntax.php to use Git instead of
182 Subversion when invoked with the --modified option.
183 * (bug 35069) On history pages, the " . . " separator after the number of
184 characters changed in a revision is now suppressed if no text would follow.
185 * (bug 18704) Add a unique CSS class or ID to the tagfilter table row at RecentChanges
186 * (bug 33564) transwiki import sometimes result in invalid title.
187 * (bug 35572) Blocks appear to succeed even if query fails due to wrong DB structure
188 * (bug 31757) Add a word-separator between help-messages in HTMLForm
189 * (bug 30410) Removed deprecated $wgFilterCallback and the 'filtered' API error.
190 * (bug 32604) Some messages needs escaping of wikitext inside username.
191 * (bug 36537) Rename wfArrayToCGI to wfArrayToCgi for consistency with wfCgiToArray.
192 * (bug 25946) The message on the top of Special:RecentChanges is now displayed.
193 in user language instead of content language.
194 * (bug 35264) Wrong type used for <ns> in export.xsd
195 * (bug 24985) Use $wgTmpDirectory as the default temp directory so that people
196 who don't have access to /tmp can specify an alternative.
197 * (bug 27283) SqlBagOStuff breaks PostgreSQL transactions.
198 * (bug 35727) mw.Api ajax() should put token parameter last.
199 * (bug 37708) mw.Uri.clone() should make a deep copy.
200 * (bug 38024) ResourceLoader should not create empty stylesheets for modules
201 that don't have stylesheets.
202 * (bug 36812) Special:ActiveUsers "Hide bots" should hide users from any group
203 having the "bot" user right, instead of just the default "bot" user group.
204 * (bug 35082) mw.util.addPortletLink incorrectly adds link to mutiple <ul> tags.
205 * (bug 36495) Sanitizer::fixDeprecatedAttributes should convert "align"
206 attribute to margin or float instead of text-align (for non-table-cells).
207 * (bug 36991) jquery.tablesorter should extract date sort format from date
208 string instead of global config. Dates like "April 1 2012" and "1 April 2012"
209 now sort correctly regardless of the content language's DefaultDateFormat.
210 * (bug 31895) mw.loader mode now correct when triggered from a $.fn.ready
211 handler that is bound before mediawiki.js's handler (e.g. browser-userscripts
212 like greasemonkey).
213 * (bug 38152) jquery.tablesorter: Use .data() instead of .attr(), so that live
214 values are used instead of just the fixed values from when the tablesorter
215 was initialized.
216 * (bug 38093) Gender of changed user groups missing in Special:Log/rights
217 * (bug 35893) Special:Block needs to load mediawiki.special.block.js.
218 * (bug 37331) ResourceLoader modules sometimes execute twice in Firefox
219 * (bug 31644) GlobalUsage, CentralAuth and AbuseLog extensions should not use
220 insecure links to foreign wikis in the WikiMap.
221 * (bug 36073) Avoid duplicate element IDs on File pages.
222 * (bug 25095) Special:Categories should also include the first relevant item
223 when "from" is filled.
224 * (bug 35526) jquery.tablesorter now uses a stable sort.
225 * (bug 38953) --memory-limit switch not working for runJobs.php.
226 * (bug 33037) Make subpage of Special:newfiles control how many files
227 are returned, like in previous versions.
228 * (bug 36524) "Show" options on Special:RecentChanges and Special:RecentChangesLinked
229 are now remembered between successive clicks.
230 * (bug 26069) Page title is no longer "Error" for all error pages.
231 * (bug 39297) Show warning if thumbnail of animated image will not be animated.
232 * (bug 38249) Parser will throw an exception instead of outputting gibberish if
233 PCRE is compiled without support for unicode properties.
234 * (bug 30390) Suggested file name on Special:Upload should not contain
235 illegal characters.
236 * EXIF below sea level GPS altitude data is now shown correctly.
237 * (bug 39284) jquery.tablesorter should not consider "."" or "?"" to be a currency.
238 * (bug 39273) "Show changes" should not be incorrectly displayed in the Live Preview state.
239 * Made body-content lang attribute honor the variant language when it is set.
240 * (bug 36761) "Mark pages as visited" now submits previously established filter options.
241 * (bug 39635) PostgreSQL LOCK IN SHARE MODE option is a syntax error.
242 * (bug 36329) Accesskey tooltips for Firefox 14 on Mac should use "ctrl-option-" prefix.
243 * (bug 32552) Drop unused database field cat_hidden from table category.
244
245 === API changes in 1.20 ===
246 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
247 * (bug 34313) MediaWiki API intro message about "HTML format" should mention
248 the format parameter.
249 * (bug 32384) Allow descending order for list=watchlistraw.
250 * (bug 31883) Limit of bkusers of list=blocks and titles of action=query is
251 not documented in API help.
252 * (bug 32492) API now allows editing using pageid.
253 * (bug 32497) API now allows changing of protection level using pageid.
254 * (bug 32498) API now allows comparing pages using pageids.
255 * (bug 30975) API import of pages with invalid characters in this wiki leads to Fatal Error.
256 * (bug 30488) API now allows listing of backlinks/embeddedin/imageusage per pageid.
257 * (bug 34927) Output media_type for list=filearchive.
258 * (bug 28814) add properties to output of action=parse.
259 * (bug 33224) add variants of content language to meta=siteinfo.
260 * (bug 32643) action=purge with forcelinkupdate no longer crashes when ratelimit is reached.
261 * The paraminfo module now also contains result properties for most modules.
262 * (bug 32348) Allow descending order for list=alllinks.
263 * (bug 31777) Upload unknown error ``fileexists-forbidden''.
264 * (bug 32382) Allow descending order for list=iwbacklinks.
265 * (bug 32381) Allow descending order for list=backlinks, list=embeddedin and list=imageusage.
266 * (bug 32383) Allow descending order for list=langbacklinks.
267 * API meta=siteinfo can now return the list of known variable IDs.
268 * (bug 35980) list=deletedrevs now honors drdir correctly in "all" mode (mode #3).
269 * (bug 29290) API avoids mangling fields in continuation parameters
270 * (bug 36987) API avoids mangling fields in continuation parameters
271 * (bug 30836) siteinfo prop=specialpagealiases will no longer return nonexistent special pages
272 * (bug 38190) Add "required" flag to some token params for hint in api docs.
273 * (bug 27567) Add file repo support to prop=duplicatefiles.
274 * (bug 27610) Add archivename for non-latest image version to list=filearchive
275 * (bug 38231) Add xml parse tree to action=parse.
276 * Watchlist notification timestamp may be queried by page and may be updated via the API.
277 * (bug 38904) prop=revisions&rvstart=... no longer blows up when continuing.
278 * (bug 39032) ApiQuery generates help in constructor.
279 * (bug 11142) Improve file extension blacklist error reporting in API upload.
280 * (bug 39665) Cache AllowedGenerator array so it doesn't autoload all query classes
281 on every request.
282
283 === Languages updated in 1.20 ===
284
285 MediaWiki supports over 350 languages. Many localisations are updated
286 regularly. Below only new and removed languages are listed, as well as
287 changes to languages because of Bugzilla reports.
288
289 * Emilian (egl) added.
290 * Tornedalen Finnish (fit) added.
291 * Mizo (lus) added.
292 * Santali (sat) added.
293 * (bug 34192) Namespace gender aliases for Albanian languages (sq & aln).
294 * (bug 35541) Namespace gender aliases for Croatian (hr).
295 * (bug 36012) Space in $separatorTransformTable should be non-breaking in
296 Portuguese, Esperanto and Udmurt.
297 * Turoyo (tru) added.
298 * Cyrillic-Latin language converter added for Uzbek (uz).
299
300 === Other changes in 1.20 ===
301 * The user_token field is now left empty until a user attempts to login and
302 cookies need to be set. It is also now possible to reset every user's
303 user_token simply by clearing the values in the user_token column.
304 * Removed ./tests/qunit/index.html from core. It wasn't actively maintained and
305 has been made obsolete when [[Special:JavaScriptTest/qunit]] was introduced,
306 which actually uses ResourceLoader, LocalSettings and the Skin.
307 * Removed $wgDBtransactions global. This was only checked in one class
308 and only applies to MyISAM or similar DBs. Those should only be used
309 for archived sites anyway. We can't get edit conflicts on such sites,
310 so the WikiPage code wasn't useful there either.
311 * Deprecated mw.user.name in favour of mw.user.getName.
312 * Deprecated mw.user.anonymous in favour of mw.user.isAnon.
313 * Deprecated DatabaseBase functions newFromParams(), newFromType(), set(),
314 quote_ident(), and escapeLike() were removed.
315 * Use of __DIR__ instead of dirname( __FILE__ ).
316 * OutputPage::wrapWikiMsg() no longer supports the 'options' parameter. It was
317 not used and complicated migration to Message class.
318
319 == Compatibility ==
320
321 MediaWiki 1.20 requires PHP 5.3.2. PHP 4 is no longer supported.
322
323 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
324 support for them is somewhat less mature. There is experimental support for IBM
325 DB2 and Oracle.
326
327 The supported versions are:
328
329 * MySQL 5.0.2 or later
330 * PostgreSQL 8.3 or later
331 * SQLite 3.3.7 or later
332 * Oracle 9.0.1 or later
333
334 == Upgrading ==
335
336 1.20 has several database changes since 1.19, and will not work without schema
337 updates.
338
339 If upgrading from before 1.11, and you are using a wiki as a commons
340 repository, make sure that it is updated as well. Otherwise, errors may arise
341 due to database schema changes.
342
343 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
344 new database fields are filled with data.
345
346 If you are upgrading from MediaWiki 1.4.x or earlier, some major database
347 changes are made, and there is a slightly higher chance that things could
348 break. Don't forget to always back up your database before upgrading!
349
350 See the file UPGRADE for more detailed upgrade instructions.
351
352 For notes on 1.19.x and older releases, see HISTORY.
353
354 == Online documentation ==
355
356 Documentation for both end-users and site administrators is available on
357 MediaWiki.org, and is covered under the GNU Free Documentation License (except
358 for pages that explicitly state that their contents are in the public domain):
359
360 https://www.mediawiki.org/wiki/Documentation
361
362 == Mailing list ==
363
364 A mailing list is available for MediaWiki user support and discussion:
365
366 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
367
368 A low-traffic announcements-only list is also available:
369
370 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
371
372 It's highly recommended that you sign up for one of these lists if you're
373 going to run a public MediaWiki, so you can be notified of security fixes.
374
375 == IRC help ==
376
377 There's usually someone online in #mediawiki on irc.freenode.net.