Merge "CologneBlue rewrite: kill mWatchLinkNum, watchThisPage() is only called once...
[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" (v0.3.0, http://jStorage.info/).
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 * Added $wgCopyUploadProxy global to define which proxy to use for copy
151 uploads.
152 * (bug 40448) mediawiki.legacy.mwsuggest has been replaced with a new module,
153 mediawiki.searchSuggest, based on SimpleSeach from Extension:Vector.
154
155 === Bug fixes in 1.20 ===
156 * (bug 30245) Use the correct way to construct a log page title.
157 * (bug 34237) Regenerate an empty user_token and save to the database
158 when we try to set the user's cookies for login.
159 * (bug 32210) New edit emails for watched pages always provide a link to the
160 edit which triggered the mail.
161 * (bug 12021) Added user talk link on Special:Listusers.
162 * (bug 34445) section edit and TOC hide/show links are excluded from selection and
163 copy/paste on supporting browsers.
164 * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob
165 history compression method.
166 * (bug 34702) Localised parentheses are now used in more special pages.
167 * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR.
168 * (bug 34762) Calling close() on a DatabaseBase object now clears the connection.
169 * (bug 34863) Show deletion log extract on non-existent file pages if applicable.
170 * (bug 28019) Let ?preloadtitle=foo be passed on to target of
171 Special:MyPage and Special:MyTalk.
172 * (bug 34929) Show the correct diff when a section edit is rejected by the spam
173 filter.
174 * (bug 15816) Add a switch for SETting the search_path (Postgres).
175 * (bug 34521) Returning to the previous page after logging in loses any array-
176 valued parameters in the query string.
177 * (bug 34735) Updated compressOld.php documentation to mention the different
178 usages of -s and -n parameters depending on compression type.
179 * (bug 13896) Rendering of devanagari numbers in automatic '#' number lists.
180 * (bug 33689) Upgrade to 1.19 on Postgres fails due to incomplete query when.
181 trying to defer foreign key for externallinks.
182 * (bug 32748) Printer friendly version of article decode Unicode chars as a
183 pretty IRI in footer.
184 * Removed white border around thumbnails in galleries.
185 * (bug 31236) "Next" and "Previous" buttons are shown incorrectly in
186 an RTL environment.
187 * (bug 35749) Updated maintenance/checkSyntax.php to use Git instead of
188 Subversion when invoked with the --modified option.
189 * (bug 35069) On history pages, the " . . " separator after the number of
190 characters changed in a revision is now suppressed if no text would follow.
191 * (bug 18704) Add a unique CSS class or ID to the tagfilter table row at RecentChanges
192 * (bug 33564) transwiki import sometimes result in invalid title.
193 * (bug 35572) Blocks appear to succeed even if query fails due to wrong DB structure
194 * (bug 31757) Add a word-separator between help-messages in HTMLForm
195 * (bug 30410) Removed deprecated $wgFilterCallback and the 'filtered' API error.
196 * (bug 32604) Some messages needs escaping of wikitext inside username.
197 * (bug 36537) Rename wfArrayToCGI to wfArrayToCgi for consistency with wfCgiToArray.
198 * (bug 25946) The message on the top of Special:RecentChanges is now displayed.
199 in user language instead of content language.
200 * (bug 35264) Wrong type used for <ns> in export.xsd
201 * (bug 24985) Use $wgTmpDirectory as the default temp directory so that people
202 who don't have access to /tmp can specify an alternative.
203 * (bug 27283) SqlBagOStuff breaks PostgreSQL transactions.
204 * (bug 35727) mw.Api ajax() should put token parameter last.
205 * (bug 37708) mw.Uri.clone() should make a deep copy.
206 * (bug 38024) ResourceLoader should not create empty stylesheets for modules
207 that don't have stylesheets.
208 * (bug 36812) Special:ActiveUsers "Hide bots" should hide users from any group
209 having the "bot" user right, instead of just the default "bot" user group.
210 * (bug 35082) mw.util.addPortletLink incorrectly adds link to mutiple <ul> tags.
211 * (bug 36495) Sanitizer::fixDeprecatedAttributes should convert "align"
212 attribute to margin or float instead of text-align (for non-table-cells).
213 * (bug 36991) jquery.tablesorter should extract date sort format from date
214 string instead of global config. Dates like "April 1 2012" and "1 April 2012"
215 now sort correctly regardless of the content language's DefaultDateFormat.
216 * (bug 31895) mw.loader mode now correct when triggered from a $.fn.ready
217 handler that is bound before mediawiki.js's handler (e.g. browser-userscripts
218 like greasemonkey).
219 * (bug 38152) jquery.tablesorter: Use .data() instead of .attr(), so that live
220 values are used instead of just the fixed values from when the tablesorter
221 was initialized.
222 * (bug 38093) Gender of changed user groups missing in Special:Log/rights
223 * (bug 35893) Special:Block needs to load mediawiki.special.block.js.
224 * (bug 37331) ResourceLoader modules sometimes execute twice in Firefox
225 * (bug 31644) GlobalUsage, CentralAuth and AbuseLog extensions should not use
226 insecure links to foreign wikis in the WikiMap.
227 * (bug 36073) Avoid duplicate element IDs on File pages.
228 * (bug 25095) Special:Categories should also include the first relevant item
229 when "from" is filled.
230 * (bug 35526) jquery.tablesorter now uses a stable sort.
231 * (bug 38953) --memory-limit switch not working for runJobs.php.
232 * (bug 33037) Make subpage of Special:newfiles control how many files
233 are returned, like in previous versions.
234 * (bug 36524) "Show" options on Special:RecentChanges and Special:RecentChangesLinked
235 are now remembered between successive clicks.
236 * (bug 26069) Page title is no longer "Error" for all error pages.
237 * (bug 39297) Show warning if thumbnail of animated image will not be animated.
238 * (bug 38249) Parser will throw an exception instead of outputting gibberish if
239 PCRE is compiled without support for unicode properties.
240 * (bug 30390) Suggested file name on Special:Upload should not contain
241 illegal characters.
242 * EXIF below sea level GPS altitude data is now shown correctly.
243 * (bug 39284) jquery.tablesorter should not consider "."" or "?"" to be a currency.
244 * (bug 39273) "Show changes" should not be incorrectly displayed in the Live Preview state.
245 * Made body-content lang attribute honor the variant language when it is set.
246 * (bug 36761) "Mark pages as visited" now submits previously established filter options.
247 * (bug 39635) PostgreSQL LOCK IN SHARE MODE option is a syntax error.
248 * (bug 36329) Accesskey tooltips for Firefox 14 on Mac should use "ctrl-option-" prefix.
249 * (bug 32552) Drop unused database field cat_hidden from table category.
250 * (bug 40214) Category pages no longer use deprecated "width" HTML attribute.
251 * (bug 39941) Add missing stylesheets to the installer pages
252 * In HTML5 mode, allow new input element types values (such as color, range..)
253 * (bug 36151) mw.Title: Don't limit extension in title parsing.
254 * (bug 38158) jquery.byteLimit sometimes causes an unexpected 0 maxLength being enforced.
255 * (bug 38163) jquery.byteLimit incorrectly limits input when using methods other than
256 basic per-char typing.
257 * (bug 34495) patrol log now credit the user patrolling (instead of patrolled
258 user).
259 * (bug 31676) ResourceLoader should work around IE stylesheet limit.
260 * (bug 40498) ResourceLoader should not output an empty "@media print { }" block.
261 * (bug 40500) ResourceLoader should not ignore media-type for urls in debug mode.
262
263 === API changes in 1.20 ===
264 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
265 * (bug 34313) MediaWiki API intro message about "HTML format" should mention
266 the format parameter.
267 * (bug 32384) Allow descending order for list=watchlistraw.
268 * (bug 31883) Limit of bkusers of list=blocks and titles of action=query is
269 not documented in API help.
270 * (bug 32492) API now allows editing using pageid.
271 * (bug 32497) API now allows changing of protection level using pageid.
272 * (bug 32498) API now allows comparing pages using pageids.
273 * (bug 30975) API import of pages with invalid characters in this wiki leads to Fatal Error.
274 * (bug 30488) API now allows listing of backlinks/embeddedin/imageusage per pageid.
275 * (bug 34927) Output media_type for list=filearchive.
276 * (bug 28814) add properties to output of action=parse.
277 * (bug 33224) add variants of content language to meta=siteinfo.
278 * (bug 32643) action=purge with forcelinkupdate no longer crashes when ratelimit is reached.
279 * The paraminfo module now also contains result properties for most modules.
280 * (bug 32348) Allow descending order for list=alllinks.
281 * (bug 31777) Upload unknown error ``fileexists-forbidden''.
282 * (bug 32382) Allow descending order for list=iwbacklinks.
283 * (bug 32381) Allow descending order for list=backlinks, list=embeddedin and list=imageusage.
284 * (bug 32383) Allow descending order for list=langbacklinks.
285 * API meta=siteinfo can now return the list of known variable IDs.
286 * (bug 35980) list=deletedrevs now honors drdir correctly in "all" mode (mode #3).
287 * (bug 29290) API avoids mangling fields in continuation parameters
288 * (bug 36987) API avoids mangling fields in continuation parameters
289 * (bug 30836) siteinfo prop=specialpagealiases will no longer return nonexistent special pages
290 * (bug 38190) Add "required" flag to some token params for hint in api docs.
291 * (bug 27567) Add file repo support to prop=duplicatefiles.
292 * (bug 27610) Add archivename for non-latest image version to list=filearchive
293 * (bug 38231) Add xml parse tree to action=parse.
294 * Watchlist notification timestamp may be queried by page and may be updated via the API.
295 * (bug 38904) prop=revisions&rvstart=... no longer blows up when continuing.
296 * (bug 39032) ApiQuery generates help in constructor.
297 * (bug 11142) Improve file extension blacklist error reporting in API upload.
298 * (bug 39665) Cache AllowedGenerator array so it doesn't autoload all query classes
299 on every request.
300
301 === Languages updated in 1.20 ===
302
303 MediaWiki supports over 350 languages. Many localisations are updated
304 regularly. Below only new and removed languages are listed, as well as
305 changes to languages because of Bugzilla reports.
306
307 * Emilian (egl) added.
308 * Tornedalen Finnish (fit) added.
309 * Mizo (lus) added.
310 * Santali (sat) added.
311 * (bug 34192) Namespace gender aliases for Albanian languages (sq & aln).
312 * (bug 35541) Namespace gender aliases for Croatian (hr).
313 * (bug 36012) Space in $separatorTransformTable should be non-breaking in
314 Portuguese, Esperanto and Udmurt.
315 * Turoyo (tru) added.
316 * Cyrillic-Latin language converter added for Uzbek (uz).
317
318 === Other changes in 1.20 ===
319 * The user_token field is now left empty until a user attempts to login and
320 cookies need to be set. It is also now possible to reset every user's
321 user_token simply by clearing the values in the user_token column.
322 * Removed ./tests/qunit/index.html from core. It wasn't actively maintained and
323 has been made obsolete when [[Special:JavaScriptTest/qunit]] was introduced,
324 which actually uses ResourceLoader, LocalSettings and the Skin.
325 * Removed $wgDBtransactions global. This was only checked in one class
326 and only applies to MyISAM or similar DBs. Those should only be used
327 for archived sites anyway. We can't get edit conflicts on such sites,
328 so the WikiPage code wasn't useful there either.
329 * Deprecated mw.user.name in favour of mw.user.getName.
330 * Deprecated mw.user.anonymous in favour of mw.user.isAnon.
331 * Deprecated DatabaseBase functions newFromParams(), newFromType(), set(),
332 quote_ident(), and escapeLike() were removed.
333 * Use of __DIR__ instead of dirname( __FILE__ ).
334 * OutputPage::wrapWikiMsg() no longer supports the 'options' parameter. It was
335 not used and complicated migration to Message class.
336 * Live preview functionality has been improved and moved into the
337 'mediawiki.action.edit.preview' module. The old 'mediawiki.legacy.preview' module
338 has been removed.
339 * (bug 40448) Removed mediawiki.legacy.mwsuggest module, and removed the
340 following that has become obsolete:
341 - globals $wgEnableMWSuggest and $wgMWSuggestTemplate.
342 - mw.config.values wgMWSuggestTemplate and wgSearchNamespaces.
343 - method SearchEngine::getMWSuggestTemplate().
344
345 == Compatibility ==
346
347 MediaWiki 1.20 requires PHP 5.3.2. PHP 4 is no longer supported.
348
349 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
350 support for them is somewhat less mature. There is experimental support for IBM
351 DB2 and Oracle.
352
353 The supported versions are:
354
355 * MySQL 5.0.2 or later
356 * PostgreSQL 8.3 or later
357 * SQLite 3.3.7 or later
358 * Oracle 9.0.1 or later
359
360 == Upgrading ==
361
362 1.20 has several database changes since 1.19, and will not work without schema
363 updates.
364
365 If upgrading from before 1.11, and you are using a wiki as a commons
366 repository, make sure that it is updated as well. Otherwise, errors may arise
367 due to database schema changes.
368
369 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
370 new database fields are filled with data.
371
372 If you are upgrading from MediaWiki 1.4.x or earlier, some major database
373 changes are made, and there is a slightly higher chance that things could
374 break. Don't forget to always back up your database before upgrading!
375
376 See the file UPGRADE for more detailed upgrade instructions.
377
378 For notes on 1.19.x and older releases, see HISTORY.
379
380 == Online documentation ==
381
382 Documentation for both end-users and site administrators is available on
383 MediaWiki.org, and is covered under the GNU Free Documentation License (except
384 for pages that explicitly state that their contents are in the public domain):
385
386 https://www.mediawiki.org/wiki/Documentation
387
388 == Mailing list ==
389
390 A mailing list is available for MediaWiki user support and discussion:
391
392 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
393
394 A low-traffic announcements-only list is also available:
395
396 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
397
398 It's highly recommended that you sign up for one of these lists if you're
399 going to run a public MediaWiki, so you can be notified of security fixes.
400
401 == IRC help ==
402
403 There's usually someone online in #mediawiki on irc.freenode.net.