48995c05791003d33949f684268f01833b5055fe
[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) Update jQuery JSON plugin 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.
69 * jQuery UI upgraded to 1.8.22.
70 * (bug 35705) QUnit upgraded from v1.2.0 to v1.8.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 * Added new hook AfterFinalPageOutput to allow modifications to buffered page output before sent
91 to the client.
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 * (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 * jsMessage: Redesigned in Vector/Monobook as floating bubble with auto-hide.
128 * New hook 'ParserTestGlobals' allows to set globals before running parser tests.
129 * Allow importing pages as subpage.
130 * Add lang and hreflang attributes to language links on Login page.
131 * (bug 22749) Create Special:MostInterwikis.
132
133 === Bug fixes in 1.20 ===
134 * (bug 30245) Use the correct way to construct a log page title.
135 * (bug 34237) Regenerate an empty user_token and save to the database
136 when we try to set the user's cookies for login.
137 * (bug 32210) New edit emails for watched pages always provide a link to the
138 edit which triggered the mail.
139 * (bug 12021) Added user talk link on Special:Listusers.
140 * (bug 34445) section edit and TOC hide/show links are excluded from selection and
141 copy/paste on supporting browsers.
142 * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob
143 history compression method.
144 * (bug 34702) Localised parentheses are now used in more special pages.
145 * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR.
146 * (bug 34762) Calling close() on a DatabaseBase object now clears the connection.
147 * (bug 34863) Show deletion log extract on non-existent file pages if applicable.
148 * (bug 28019) Let ?preloadtitle=foo be passed on to target of
149 Special:MyPage and Special:MyTalk.
150 * (bug 34929) Show the correct diff when a section edit is rejected by the spam
151 filter.
152 * (bug 15816) Add a switch for SETting the search_path (Postgres).
153 * (bug 34521) Returning to the previous page after logging in loses any array-
154 valued parameters in the query string.
155 * (bug 34735) Updated compressOld.php documentation to mention the different
156 usages of -s and -n parameters depending on compression type.
157 * (bug 13896) Rendering of devanagari numbers in automatic '#' number lists.
158 * (bug 33689) Upgrade to 1.19 on Postgres fails due to incomplete query when.
159 trying to defer foreign key for externallinks.
160 * (bug 32748) Printer friendly version of article decode Unicode chars as a
161 pretty IRI in footer.
162 * Removed white border around thumbnails in galleries.
163 * (bug 31236) "Next" and "Previous" buttons are shown incorrectly in
164 an RTL environment.
165 * (bug 35749) Updated maintenance/checkSyntax.php to use Git instead of
166 Subversion when invoked with the --modified option.
167 * (bug 35069) On history pages, the " . . " separator after the number of
168 characters changed in a revision is now suppressed if no text would follow.
169 * (bug 18704) Add a unique CSS class or ID to the tagfilter table row at RecentChanges
170 * (bug 33564) transwiki import sometimes result in invalid title.
171 * (bug 35572) Blocks appear to succeed even if query fails due to wrong DB structure
172 * (bug 31757) Add a word-separator between help-messages in HTMLForm
173 * (bug 30410) Removed deprecated $wgFilterCallback and the 'filtered' API error.
174 * (bug 32604) Some messages needs escaping of wikitext inside username.
175 * (bug 36537) Rename wfArrayToCGI to wfArrayToCgi for consistency with wfCgiToArray.
176 * (bug 25946) The message on the top of Special:RecentChanges is now displayed.
177 in user language instead of content language.
178 * (bug 35264) Wrong type used for <ns> in export.xsd
179 * (bug 24985) Use $wgTmpDirectory as the default temp directory so that people
180 who don't have access to /tmp can specify an alternative.
181 * (bug 27283) SqlBagOStuff breaks PostgreSQL transactions.
182 * (bug 35727) mw.Api ajax() should put token parameter last.
183 * (bug 37708) mw.Uri.clone() should make a deep copy.
184 * (bug 38024) ResourceLoader should not create empty stylesheets for modules
185 that don't have stylesheets.
186 * (bug 36812) Special:ActiveUsers "Hide bots" should hide users from any group
187 having the "bot" user right, instead of just the default "bot" user group.
188 * (bug 35082) mw.util.addPortletLink incorrectly adds link to mutiple <ul> tags.
189 * (bug 36495) Sanitizer::fixDeprecatedAttributes should convert "align"
190 attribute to margin or float instead of text-align (for non-table-cells).
191 * (bug 36991) jquery.tablesorter should extract date sort format from date
192 string instead of global config. Dates like "April 1 2012" and "1 April 2012"
193 now sort correctly regardless of the content language's DefaultDateFormat.
194 * (bug 31895) mw.loader mode now correct when triggered from a $.fn.ready
195 handler that is bound before mediawiki.js's handler (e.g. browser-userscripts
196 like greasemonkey).
197 * (bug 38152) jquery.tablesorter: Use .data() instead of .attr(), so that live
198 values are used instead of just the fixed values from when the tablesorter
199 was initialized.
200 * (bug 38093) Gender of changed user groups missing in Special:Log/rights
201 * (bug 35893) Special:Block needs to load mediawiki.special.block.js.
202 * (bug 37331) ResourceLoader modules sometimes execute twice in Firefox
203 * (bug 31644) GlobalUsage, CentralAuth and AbuseLog extensions should not use
204 insecure links to foreign wikis in the WikiMap.
205 * (bug 36073) Avoid duplicate element IDs on File pages
206 * (bug 25095) Special:Categories should also include the first relevant item
207 when "from" is filled.
208 * (bug 35526) jquery.tablesorter now uses a stable sort.
209 * (bug 38953) --memory-limit switch not working for runJobs.php.
210 * (bug 33037) Make subpage of Special:newfiles control how many files
211 are returned, like in previous versions.
212 * (bug 36524) "Show" options on Special:RecentChanges and Special:RecentChangesLinked
213 are now remembered between successive clicks.
214
215 === API changes in 1.20 ===
216 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
217 * (bug 34313) MediaWiki API intro message about "HTML format" should mention
218 the format parameter.
219 * (bug 32384) Allow descending order for list=watchlistraw.
220 * (bug 31883) Limit of bkusers of list=blocks and titles of action=query is not documented in API help.
221 * (bug 32492) API now allows editing using pageid.
222 * (bug 32497) API now allows changing of protection level using pageid.
223 * (bug 32498) API now allows comparing pages using pageids.
224 * (bug 30975) API import of pages with invalid characters in this wiki leads to Fatal Error.
225 * (bug 30488) API now allows listing of backlinks/embeddedin/imageusage per pageid.
226 * (bug 34927) Output media_type for list=filearchive.
227 * (bug 28814) add properties to output of action=parse.
228 * (bug 33224) add variants of content language to meta=siteinfo.
229 * (bug 36761) "Mark pages as visited" now submits previously established filter options.
230 * (bug 32643) action=purge with forcelinkupdate no longer crashes when ratelimit is reached.
231 * The paraminfo module now also contains result properties for most modules.
232 * (bug 32348) Allow descending order for list=alllinks.
233 * (bug 31777) Upload unknown error ``fileexists-forbidden''.
234 * (bug 32382) Allow descending order for list=iwbacklinks.
235 * (bug 32381) Allow descending order for list=backlinks, list=embeddedin and list=imageusage.
236 * (bug 32383) Allow descending order for list=langbacklinks.
237 * API meta=siteinfo can now return the list of known variable IDs.
238 * (bug 35980) list=deletedrevs now honors drdir correctly in "all" mode (mode #3).
239 * (bug 29290) API avoids mangling fields in continuation parameters
240 * (bug 36987) API avoids mangling fields in continuation parameters
241 * (bug 30836) siteinfo prop=specialpagealiases will no longer return nonexistent special pages
242 * (bug 38190) Add "required" flag to some token params for hint in api docs.
243 * (bug 27567) Add file repo support to prop=duplicatefiles.
244 * (bug 27610) Add archivename for non-latest image version to list=filearchive
245 * (bug 38231) Add xml parse tree to action=parse.
246 * Watchlist notification timestamp may be queried by page and may be updated via the API.
247 * (bug 38904) prop=revisions&rvstart=... no longer blows up when continuing.
248 * (bug 39032) ApiQuery generates help in constructor.
249 * (bug 11142) Improve file extension blacklist error reporting in API upload
250
251 === Languages updated in 1.20 ===
252
253 MediaWiki supports over 350 languages. Many localisations are updated
254 regularly. Below only new and removed languages are listed, as well as
255 changes to languages because of Bugzilla reports.
256
257 * Emilian (egl) added.
258 * Tornedalen Finnish (fit) added.
259 * Mizo (lus) added.
260 * Santali (sat) added.
261 * (bug 34192) Namespace gender aliases for Albanian languages (sq & aln).
262 * (bug 35541) Namespace gender aliases for Croatian (hr).
263 * (bug 36012) Space in $separatorTransformTable should be non-breaking in
264 Portuguese, Esperanto and Udmurt.
265 * Turoyo (tru) added.
266 * Cyrillic-Latin language converter added for Uzbek (uz).
267
268 === Other changes in 1.20 ===
269 * The user_token field is now left empty until a user attempts to login and
270 cookies need to be set. It is also now possible to reset every user's
271 user_token simply by clearing the values in the user_token column.
272 * Removed ./tests/qunit/index.html from core. It wasn't actively maintained and
273 has been made obsolete when [[Special:JavaScriptTest/qunit]] was introduced,
274 which actually uses ResourceLoader, LocalSettings and the Skin.
275 * Removed $wgDBtransactions global. This was only checked in one class
276 and only applies to MyISAM or similar DBs. Those should only be used
277 for archived sites anyway. We can't get edit conflicts on such sites,
278 so the WikiPage code wasn't useful there either.
279 * Deprecated mw.user.name in favour of mw.user.getName.
280 * Deprecated mw.user.anonymous in favour of mw.user.isAnon.
281 * Deprecated DatabaseBase functions newFromParams(), newFromType(), set(),
282 quote_ident(), and escapeLike() were removed.
283
284 == Compatibility ==
285
286 MediaWiki 1.20 requires PHP 5.3.2. PHP 4 is no longer supported.
287
288 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
289 support for them is somewhat less mature. There is experimental support for IBM
290 DB2 and Oracle.
291
292 The supported versions are:
293
294 * MySQL 5.0.2 or later
295 * PostgreSQL 8.3 or later
296 * SQLite 3.3.7 or later
297 * Oracle 9.0.1 or later
298
299 == Upgrading ==
300
301 1.20 has several database changes since 1.19, and will not work without schema
302 updates.
303
304 If upgrading from before 1.11, and you are using a wiki as a commons
305 repository, make sure that it is updated as well. Otherwise, errors may arise
306 due to database schema changes.
307
308 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
309 new database fields are filled with data.
310
311 If you are upgrading from MediaWiki 1.4.x or earlier, some major database
312 changes are made, and there is a slightly higher chance that things could
313 break. Don't forget to always back up your database before upgrading!
314
315 See the file UPGRADE for more detailed upgrade instructions.
316
317 For notes on 1.19.x and older releases, see HISTORY.
318
319 == Online documentation ==
320
321 Documentation for both end-users and site administrators is available on
322 MediaWiki.org, and is covered under the GNU Free Documentation License (except
323 for pages that explicitly state that their contents are in the public domain):
324
325 https://www.mediawiki.org/wiki/Documentation
326
327 == Mailing list ==
328
329 A mailing list is available for MediaWiki user support and discussion:
330
331 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
332
333 A low-traffic announcements-only list is also available:
334
335 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
336
337 It's highly recommended that you sign up for one of these lists if you're
338 going to run a public MediaWiki, so you can be notified of security fixes.
339
340 == IRC help ==
341
342 There's usually someone online in #mediawiki on irc.freenode.net.