* Do not present an image bigger than the source when 'frameless' option is used
[lhc/web/wiklou.git] / RELEASE-NOTES
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.12 ==
7
8 THIS IS NOT A RELEASE YET
9
10 MediaWiki is now using a "continuous integration" development model with
11 quarterly snapshot releases. The latest development code is always kept
12 "ready to run", and in fact runs our own sites on Wikipedia.
13
14 Release branches will continue to receive security updates for about a year
15 from first release, but nonessential bugfixes and feature developments
16 will be made on the development trunk and appear in the next quarterly release.
17
18 Those wishing to use the latest code instead of a branch release can obtain
19 it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
20
21 === Configuration changes in 1.12 ===
22 * Marking edits as bot edits with Special:Contributions?bot=1 now requires the
23 markbotedit permission, rather than the rollback permission previously used.
24 This permission is assigned by default to the sysop group.
25
26 === New features in 1.12 ===
27 * (bug 10735) Add a warning for non-descriptive filenames at Special:Upload
28 * Add {{filepath:}} parser function to get full path to an uploaded file,
29 complementing {{fullurl:}} for pages.
30 * (bug 11136) If using Postgres, search path is explicitly set if wgDBmwschema is
31 not set to 'mediawiki', allowing multiple mediawiki instances per user.
32 * (bug 11151) Add descriptive <title> to revision history page
33 * (bug 5412) Add feed links for the site to all pages
34 * (bug 11353) Add ability to retrieve raw section content via action=raw
35 * Show relevant deletion log lines when uploading a previously deleted file
36 * On SkinTemplate based skins (like MonoBook), omit confusing "edit"/"view source"
37 tab entirely if the page doesn't exist and the user isn't allowed to create it
38 * Clarify instructions given when an exception is thrown
39 * AuthPlugin added strictUserAuth() method to allow per-user override
40 of the strict() authentication behavior.
41 * (bug 7872) Deleted revisions can now be viewed as diffs showing changes
42 against the previous revision, whether currently deleted or live.
43 * Added tooltips for the "Go" and "Search" buttons
44 * (bug 11649) Show input form when Special:Whatlinkshere has no parameters
45 * isValidEmailAddr hook added to User method of that name, to allow, e.g., re-
46 stricting e-mail addresses to a specific domain
47 * Removed "Clear" link in watchlist editor tools, as people were afraid to
48 click it. Existing clear links will fall back to the raw editor, which is
49 very easy to clear your watchlist with.
50 * (bug 1405) Add wgUseNPPatrol option to control patroling for new articles
51 on Special:Newpages
52 * LogLine hook added to allow formatting custom entries in Special:Log.
53 * Support for Iranian calendar
54 * (bug 1401) Allow hiding logged-in users, bots and patrolled pages on Special:Newpages
55 * ChangesListInsertArticleLink hook added for adding extra article info to RC.
56 * MediaWikiPerformAction hook added for diverting control after the main
57 globals have been set up but before any actions have been taken.
58 * BeforeWatchlist hook added for filtering or replacing watchlist.
59 * SkinTemplateTabAction hook added for altering the properties of tab links.
60 * OutputPage::getRedirect public method added.
61 * (bug 11848) Allow URL parameters 'editintro' and 'preload' in Special:Mypage
62 and Special:Mytalk
63 * Add ot=raw to Special:Allmessages
64 * Support for Hebrew calendar
65 * Support for Hebrew numerals in dates and times
66 * (bug 11315) Signatures can be configured in [[MediaWiki:Signature]] and
67 [[MediaWiki:Signature-anon]]
68 * Signatures for anonymous users link to Special:Contributions page rather than user page
69 * Added --override switch for disabled pages in updateSpecialPages.php
70 * Provide a unique message (ipb_blocked_as_range) if unblock of a single IP fails
71 because it is part of a blocked range.
72 * (bug 3973) Use a separate message for the email content when an account is
73 created by another user
74
75 === Bug fixes in 1.12 ===
76
77 * Subpages are now indexed for searching properly when using PostgreSQL
78 * (bug 3846) Suppress warnings from, e.g. open_basedir when scanning for
79 ImageMagick, diff3 et al. during installation [patch by Jan Reininghaus]
80 * (bug 7027) Shift handling of deletion permissions-checking to
81 getUserPermissionsErrors.
82 * Login and signup forms are now more correct for right-to-left languages.
83 * (bug 5387) Block log items on RecentChanges don't make use of possible
84 translations
85 * (bug 11211) Pass, as a parameter to the protectedpagetext interface
86 message, the level of protection.
87 * (bug 9611) Supply the blocker and reason for the cantcreateaccounttext
88 message.
89 * (bug 8759) Fixed bug where rollback was allowed on protected pages for wikis
90 where rollback is given to non-sysops.
91 * (bug 8834) Split off permission for editing user JavaScript and CSS from
92 editinterface to a new permission key editusercssjs.
93 * (bug 11266) Set fallback language for Fulfulde (ff) to French
94 * (bug 11179) Include image version deletion comment in public log
95 * Fixed notice when accessing special page without read permission and whitelist
96 is not defined
97 * (bug 9252) Fix for tidy funkiness when using editintro mode
98 * (bug 4021) Fix for MySQL wildcard search
99 * (bug 10699) Fix for MySQL phrase search
100 * (bug 11321) Fix width of gallerybox when option "width=xxx" is used
101 * (bug 7890) Special:BrokenRedirects links deleted redirects to a non-existent page
102 * Fix initial statistics when installing: add correct values
103 * (bug 11342) Fix several 'returnto' links in permissions/error pages which
104 linked to the main page instead of targetted page
105 * Strike the link to the redirect rather than using an asterisk in Special:Listredirects
106 * (bug 11355) Fix false positives in Safe Mode and other config detection
107 when boolean settings are disabled with 'Off' via php_admin_value/php_value
108 * (bug 11292) Fixed unserialize errors with Postgres by creating special Blob object.
109 * (bug 11363) Make all metadata fields bytea when using Postgres.
110 * (bug 11331) Add buildConcat() and use CASE not IF for DB compatibility. Make oldimage
111 cascade delete via image table for Postgres, change fa_storage_key TEXT.
112 * (bug 11438) Live Preview chops returned text
113 * Show the right message on account creation when the user is blocked
114 * (bug 11450) Fix creation of objectcache table on upgrade
115 * Fix namespace selection after submit of Special:Newpages
116 * Make input form of Special:Newpages nicer for RTL wikis
117 * (bug 11462) Fix typo in LanguageGetSpecialPageAliases hook name
118 * (bug 11474) Fix unintentional fall-through in math error handling
119 * (bug 11478) Fix undefined method call in file deletion interface
120 * (bug 278) Search results no longer highlight incorrect partial word matches
121 * Compatibility with incorrectly detected old-style DJVU mime types
122 * (bug 11560) Fix broken HTML output from weird link nesting in edit comments.
123 Nested links (as in image caption text) still don't work _right_ but they're
124 less wrong
125 * (bug 9718) Remove unnecessary css from main.css causing spacing issues on
126 some browsers.
127 * (bug 11574) Add an interface message loginstart, which, similarly to loginend,
128 appears just before the login form. Patch by MinuteElectron.
129 * Do not cache category pages if using 'from' or 'until'
130 * Created new hook getUserPermissionsErrors, to go with userCan changes.
131 * Diff pages did not properly display css/js pages.
132 * (bug 11620) Add call to User::isValidEmailAddr during accout creation.
133 * (bug 11629) If $wgEmailConfirmToEdit is true, require people to supply an
134 email address when registering.
135 * (bug 11612) Days to show in recent changes cannot be larger than 7
136 * (bug 11131) Change filearchive width/height columns to int for Postgres
137 * Support plural in undeleted{revisions,revisions-files,files}
138 * (bug 11343) If the database is read-only, ensure that undelete fails.
139 * (bug 11690) Show revert link for page moves in Special:Log to allowed users
140 only
141 * Initial-lowercase prefix checks in namespaceDupes.php now actually work.
142 * Fix regression in LinkBatch.php breaking PHP 5.0
143 * (bug 11452) wfMsgExt uses sometimes wrong language object for parsing magic
144 words when called with options ''parsemag'' or ''content''.
145 * (bug 11727) Support plural in 'historysize' message
146 * (bug 11744) Incorrect return value from Title::getParentCategories()
147 * (bug 11762) Fix native language name of Akan (ak)
148 * (bug 11722) Fix inconsistent case in unprotect tabs
149 * (bug 11795) Be more paranoid about confirming accept-encoding header is present
150 * (bug 11809) Use formatNum() for more numbers
151 * (bug 11818) Fix native language name of Inuktitut (iu)
152 * Remove all commas when parsing float numbers in sorted tables
153 * Limit text field of deletion, protection and user rights changes reasons to
154 255 characters (already restricted in the database)
155 * In the deletion default reasons, calculate how much text to get from the
156 article text, rather than getting 150 characters (which may be too much)
157 * Add two messages for Special:Blockme which were used but undefined
158 * (bug 11921) Support plural in message number_of_watching_users_pageview
159 * If an IP address is blocked as part of a rangeblock, attempting to unblock
160 the single IP should not unblock the entire range.
161 * (bug 6695) Fix native language name of Southern Sotho (Sesotho) (st)
162 * Make action=render follow redirects by default
163 * If restricted read access was enabled, whitelist didn't work with special
164 pages which had spaces in theirs names
165 * If restricted read access was enabled, requests for non-existing special pages
166 threw an exception
167 * Feeds for recent changes now provide correct URLs for the change, not just
168 the page
169 * Check for if IP is blocked as part of a range when unblocking (see above bug-
170 fix) was faulty. Now fixed.
171 * Fixed wpReason URL parameter to action=delete.
172 * Do not force a password for account creation by email
173 * Ensure that rate-limiting is applied to rollbacks.
174 * Make a better rate-limiting error message (i.e. a normal MW error,
175 rather than an "Internal Server Error").
176 * Do not present an image bigger than the source when 'frameless' option is used
177 (to be consistent with the 'thumb' option now)
178
179 == Parser changes in 1.12 ==
180
181 The parser pass order has changed from
182
183 * Extension tag strip and render
184 * HTML normalisation and security
185 * Template expansion
186 * Main section...
187
188 to
189
190 * Template and extension tag parse to intermediate representation
191 * Template expansion and extension rendering
192 * HTML normalisation and security
193 * Main section...
194
195 The main effect of this for the user is that the rules for uncovered syntax
196 have changed.
197
198 Uncovered main-pass syntax, such as HTML tags, are now generally valid, whereas
199 previously in some cases they were escaped. For example, you could have "<ta" in
200 one template, and "ble>" in another template, and put them together to make a
201 valid <table> tag. Previously the result would have been "&lt;table&gt;".
202
203 Uncovered preprocessor syntax is generally not recognised. For example, if you
204 have "{{a" in Template:A and "b}}" in Template:B, then "{{a}}{{b}}" will be
205 converted to a literal "{{ab}}" rather than the contents of Template:Ab. This
206 was the case previously in HTML output mode, and is now uniformly the case in
207 the other modes as well. HTML-style comments uncovered by template expansion
208 will not be recognised by the preprocessor and hence will not prevent template
209 expansion within them, but they will be stripped by the following HTML security
210 pass.
211
212 The rules for template expansion during message transformation were
213 counterintuitive, mostly accidental and buggy. There are a few small changes in
214 this version: for example, templates with dynamic names, as in "{{ {{a}} }}",
215 are fully expanded as they are in HTML mode, whereas previously only the inner
216 template was expanded. I'd like to make some larger breaking changes to message
217 transformation, after a review of typical use cases.
218
219 The header identification routines for section edit and for numbering section
220 edit links have been merged. This removes a significant failure mode and fixes a
221 whole category of bugs (tracked by bug #4899). Wikitext headings uncovered by
222 template expansion or comment removal will still be rendered into a heading tag,
223 and will get an entry in the TOC, but will not have a section edit link.
224 HTML-style headings will also not have a section edit link. Valid wikitext
225 headings present in the template source text will get a template section edit
226 link. This is a major break from previous behaviour, but I believe the effects
227 are almost entirely beneficial.
228
229 The main motivation for making these changes was performance. The new two-pass
230 preprocessor can skip "dead branches" in template expansion, such as unfollowed
231 #switch cases and unused defaults for template arguments. This provides a
232 significant performance improvement in template-heavy test cases taken from
233 Wikipedia. Parser function hooks can participate in this performance improvement
234 by using the new SFH_OBJECT_ARGS flag during registration.
235
236 The pre-expand include size limit has been removed, since there's no efficient
237 way to calculate such a figure, and it would now be meaningless for performance
238 anyway. The "preprocessor node count" takes its place, with a generous default
239 limit.
240
241 The context in which XML-style extension tags are called has changed, so
242 extensions which make use of the parser state may need compatibility changes.
243
244 === API changes in 1.12 ===
245
246 Full API documentation is available at http://www.mediawiki.org/wiki/API
247
248 * (bug 11275) Enable descending sort in categorymembers
249 * (bug 11308) Allow the API to output the image metadata
250 * (bug 11296) Temporary fix for escaping of ampersands inside links in pretty-printed
251 help document.
252 * (bug 11405) Expand templates implementation in the API
253 * (bug 11218) Add option to feedwatchlist to display multiple revisions for each page.
254 * (bug 11404) Provide name of exception caught in error code field of internal api
255 error messages.
256 * (bug 11534) rvendid doesn't work
257 * Fixed rvlimit of the revisions query to only enforce the lower query limit if
258 revision content is requested.
259 * Include svn revision number (if install is checked-out from svn) in siteinfo query.
260 * (bug 11173) Allow limited wikicode rendering via api.php
261 * (bug 11572) API should provide interface for expanding templates
262 * (bug 11569) Login should return the cookie prefix
263 * (bug 11632) Breaking change: Specify the type of a change in the recentchanges list
264 as 'edit', 'new', 'log' instead of 0, 1, 2, respectively.
265 * Compatibility fix for PHP 5.0.x.
266 * Add rctype parameter to list=recentchanges that filters by type
267 * Add apprtype and apprlevel parameters to filter list=allpages by protection types and levels
268 * Add apdir parameter to enable listing all pages from Z to A
269 * (bug 11721) Use a different title for results than for the help page.
270 * (bug 11562) Added a user_registration parameter/field to the list=allusers query.
271 * (bug 11588) Preserve document structure for empty dataset in backlinks query.
272 * Outputting list of all user preferences rather than having to request them by name
273 * (bug 11206) api.php should honor maxlag
274
275 === Languages updated in 1.12 ===
276
277 * Afrikaans (af)
278 * Akan (ak) (new)
279 * Amharic (am) (new)
280 * Aragonese (an)
281 * Old English (ang) (new)
282 * Arabic (ar)
283 * Aramaic (arc)
284 * Mapudungun (arn) (new)
285 * Assamese (as)
286 * Asturian (ast)
287 * Aymara (ay)
288 * Samogitian (bat-smg)
289 * Boarisch (bar)
290 * Bikol Central (bcl)
291 * Belarusian Taraskievica orthography (be-tarask)
292 * Bulgarian (bg)
293 * Bislama (bi) (new)
294 * Bamanankan (bm)
295 * Bengali (bn)
296 * Bishnupriya Manipuri (bpy)
297 * Breton (br)
298 * Buginese (bug) (new)
299 * Catalan (ca)
300 * Zamboangueño (cbk-zam) (new)
301 * Chechen (ce)
302 * Cebuano (ceb) (new)
303 * Czech (cs)
304 * Cassubian (csb)
305 * Old Church Slavonic (cu)
306 * Welsh (cy)
307 * Danish (da)
308 * German (de)
309 * Lower Sorbian (dsb) (new)
310 * Divehi (dv)
311 * Ewe (ee) (new)
312 * Greek (el)
313 * English (en)
314 * Spanish (es)
315 * Extremaduran (ext)
316 * Finnish (fi)
317 * Persian (fa)
318 * Fulah (ff)
319 * Võro (fiu-vro)
320 * Faroese (fo)
321 * French (fr)
322 * Cajun French (frc)
323 * Franco-Provençal (frp)
324 * Frisian (fy)
325 * Irish (ga)
326 * Gön-gnŷ (gan) (new)
327 * Galician (gl)
328 * Gilaki (glk) (new)
329 * Ancient Greek (grc) (new)
330 * Swiss German (gsw)
331 * Hakka (hak)
332 * Hebrew (he)
333 * Croatian (hr)
334 * Upper Sorbian (hsb)
335 * Hungarian (hu)
336 * Armenian (hy)
337 * Interlingua (ia)
338 * Indonesian (id)
339 * Ingush (inh) (new)
340 * Icelandic (is)
341 * Italian (it)
342 * Japanese (ja)
343 * Georgian (ka)
344 * Kara-Kalpak (kaa)
345 * Kabyle (kab)
346 * Kazakh (kk)
347 * Kannada (kn)
348 * Korean (ko)
349 * Kölsch (ksh)
350 * Kurdish (Latin) (ku-latn)
351 * Cornish (kw) (new)
352 * Latin (la)
353 * Luxembourgish (lb) (new)
354 * Lak (lbe) (new)
355 * Limbugian (li)
356 * Lozi (loz) (new)
357 * Lingala (ln)
358 * Lithuanian (lt)
359 * Malayalam (ml)
360 * Macedonian (mk)
361 * Malay (ms)
362 * Erzya (myv) (new)
363 * Nahuatl (nah)
364 * Min-nan (nan)
365 * Low Saxon (nds)
366 * Dutch Low Saxon (nds-nl)
367 * Newari (new) (new)
368 * Dutch (nl)
369 * Norwegian (no)
370 * Occitan (oc)
371 * Deitsch (pdc) (new)
372 * Polish (pl)
373 * Piemontèis (pms)
374 * Pontic (pnt) (new)
375 * Pashto (ps)
376 * Portugese (pt)
377 * Quechua (qu)
378 * Rhaeto-Romance (rm) (new)
379 * Romanian (ro)
380 * Russian (ru)
381 * Sakha (sah)
382 * Sardinian (sc)
383 * Sicilian (scn)
384 * Sindhi (sd)
385 * Sassarese (sdc) (new)
386 * Seri (sei) (new)
387 * Tachelhit (shi)
388 * Slovak (sk)
389 * Serbian (Cyrillic) (sr-ec)
390 * Swati (ss) (new)
391 * Saterland Frisian (stq) (new)
392 * Sundanese (su)
393 * Swedish (sv)
394 * Tamil (ta)
395 * Teluga (te)
396 * Tetun (tet) (new)
397 * Tajik (tg)
398 * Tagalog (tl) (new)
399 * Turkish (tr)
400 * Tuvinian (tyv)
401 * Uyghur (ug)
402 * Venitian (vec)
403 * Vietnamese (vi)
404 * West Flemish (vls)
405 * Volapük (vo)
406 * Walloon (wa)
407 * Wolof (wo)
408 * Wu (wuu) (new)
409 * Yiddish (yi)
410 * Cantonese (yue)
411 * Zhuang (za)
412 * Zealandic (zea)
413 * Old Chinese/Late Time Chinese (zh-classical)
414 * Chinese (Simplified) (zh-hans)
415 * Chinese (Traditional) (zh-hant)
416
417 == Compatibility ==
418
419 MediaWiki 1.12 requires PHP 5 (5.1 recommended). PHP 4 is no longer supported.
420
421 PHP 5.0.x fails on 64-bit systems due to serious bugs with array processing:
422 http://bugs.php.net/bug.php?id=34879
423 Upgrade affected systems to PHP 5.1 or higher.
424
425 MySQL 3.23.x is no longer supported; some older hosts may need to upgrade.
426 At this time we still recommend 4.0, but 4.1/5.0 will work fine in most cases.
427
428
429 == Upgrading ==
430
431 1.12 has several database changes since 1.11, and will not work without schema
432 updates.
433
434 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
435 new database fields are filled with data.
436
437 If you are upgrading from MediaWiki 1.4.x or earlier, some major database
438 changes are made, and there is a slightly higher chance that things could
439 break. Don't forget to always back up your database before upgrading!
440
441 See the file UPGRADE for more detailed upgrade instructions.
442
443
444 === Caveats ===
445
446 Some output, particularly involving user-supplied inline HTML, may not
447 produce 100% valid or well-formed XHTML output. Testers are welcome to
448 set $wgMimeType = "application/xhtml+xml"; to test for remaining problem
449 cases, but this is not recommended on live sites. (This must be set for
450 MathML to display properly in Mozilla.)
451
452 For notes on 1.11.x and older releases, see HISTORY.
453
454
455 === Online documentation ===
456
457 Documentation for both end-users and site administrators is currently being
458 built up on MediaWiki.org, and is covered under the GNU Free Documentation
459 License (except for pages that explicitly state that their contents are in
460 the public domain) :
461
462 http://www.mediawiki.org/wiki/Documentation
463
464
465 === Mailing list ===
466
467 A MediaWiki-l mailing list has been set up distinct from the Wikipedia
468 wikitech-l list:
469
470 http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
471
472 A low-traffic announcements-only list is also available:
473
474 http://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
475
476 It's highly recommended that you sign up for one of these lists if you're
477 going to run a public MediaWiki, so you can be notified of security fixes.
478
479
480 === IRC help ===
481
482 There's usually someone online in #mediawiki on irc.freenode.net