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