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