* (bug 34887) Fix for r100138: make $3 and $4 parameters being substituted correctly...
[lhc/web/wiklou.git] / RELEASE-NOTES-1.19
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.19 ==
7
8 THIS IS NOT A RELEASE YET
9
10 This is a beta release of the MediaWiki 1.19 branch. Please test it and let us
11 know what you think of it. Beta releases are not recommended for use in
12 production.
13
14 === Changes since 1.19 beta 1 ===
15 * (bug 35014) Including a special page no longer sets the page's title to the
16 included page
17 * (bug 35019) Edit summaries are no longer transformed in notification e-mails
18 * (bug 35152) Help message for e-mail is shown again in user preferences
19 * (bug 34887) $3 and $4 parameters are now substituted correctly in message
20 "movepage-moved"
21
22 === Configuration changes in 1.19 ===
23 * Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead.
24 * (bug 27132) movefile right granted by default to registered users.
25 * Default cookie lifetime ($wgCookieExpiration) is increased to 180 days.
26 * (bug 31204) Removed old user.user_options.
27 * $wgMaxImageArea now applies to jpeg files if they are not scaled with
28 ImageMagick.
29 * Introduced $wgQueryPageDefaultLimit (defaults to 50) for the number of
30 items to show by default on query pages (special pages such as Whatlinkshere).
31 * (bug 32470) Increase the length of ug_group.
32 * (bug 32239) Removed $wgEnableTooltipsAndAccesskeys.
33 * Removed $wgVectorShowVariantName.
34 * Removed $wgExtensionAliasesFiles. Use $wgExtensionMessagesFiles.
35
36 === New features in 1.19 ===
37 * (bug 19838) Add ability to get all interwiki prefixes also if the interwiki
38 cache is used.
39 * $wgDnsBlacklistUrls now accepts an array with url and key as the
40 elements to work with DNSBLs that require keys, such as
41 Project Honeypot.
42 * (bug 30022) Add support for custom loadScript sources to ResourceLoader.
43 * (bug 19052) Unicode space separator characters (Zs) now terminates external
44 links and images links.
45 * (bug 30160) Add public method to mw.loader to get module names from registry.
46 * (bug 15558) Parameters to special pages included in wikitext can now be passed
47 as with templates.
48 * Installer now issues a warning if mod_security is present.
49 * (bug 29455) Add support for a filter callback function in jQuery byteLimit
50 plugin.
51 * Added two new GetLocalURL hooks to better serve extensions working on a
52 limited type of titles.
53 * Added a --no-updates flag to importDump.php that skips updating the links
54 tables.
55 * Most presentational html attributes like valign are now converted to inline
56 css style rules. These attributes were removed from html5 and so we clean
57 them up when $wgHtml5 is enabled. This can be disabled using
58 $wgCleanupPresentationalAttributes.
59 * Magic words (time and number-formatting ones, plus DIRECTIONMARK, but not
60 NAMESPACE) now depend on the page content language instead of the site
61 language. In theory this sets the right magic words in system messages,
62 although they are not used there.
63 * (bug 30451) Add page_props to RefreshLinks::deleteLinksFromNonexistent.
64 * (bug 30450) Clear page_props table on page deletion.
65 * Hook added to check for exempt from account creation throttle.
66 * (bug 30344) Add configuration variable for setting custom priorities when
67 generating sitemaps.
68 * (bug 96170) Add array support for space-separated list attributes (like
69 'class') in the Html helper class.
70 * (bug 26470) Add checkered background image on hover on files pages.
71 * (bug 30774) mediawiki.html: Add support for numbers and booleans in the
72 attribute values and element contents.
73 * Conversion script between Tifinagh and Latin for the Tachelhit language.
74 * (bug 16755) Add options 'noreplace' and 'noerror' to {{DEFAULTSORT:...}}
75 to stop it from replace an already existing default sort, and suppress error.
76 * (bug 18578) Rewrote revision delete related messages to allow better
77 localisation.
78 * (bug 30364) LanguageConverter now depends on the page content language
79 instead of the wiki content language.
80 * Jump links will now be usable in CSS-capable browsers instead of only
81 in outdated text browsers.
82 * New common*.css files usable by skins instead of having to copy piles
83 of generic styles from MonoBook or Vector's css.
84 * Some deprecated presentational html attributes will now be automatically
85 converted to css.
86 * (bug 31297) Add support for namespaces in Special:RecentChanges subpage filter
87 syntax.
88 * The default user signature now contains a talk link in addition to the user link.
89 * (bug 25306) Add link of old page title to MediaWiki:Delete_and_move_reason.
90 * Added hook BitmapHandlerCheckImageArea.
91 * (bug 30062) Add $wgDBprefix option to cli installer.
92 * getUserPermissionsErrors and getUserPermissionsErrorsExpensive hooks are now
93 also called when checking for 'read' permission.
94 * Introduce $wgEnableSearchContributorsByIP which controls whether searching
95 for an IP address redirects to the contributions list for that IP.
96 * (bug 8859) Database::update should take array of tables too.
97 * (bug 19698) Add "Inverse namespaces" option to Special:Contributions.
98 * (bug 24037) Add byte length of revision to Special:Contributions.
99 * (bug 1672) Added $wgDisableUploadScriptChecks to allow uploading of files
100 containing HTML or JS. DISABLING THESE CHECKS IS VERY DANGEROUS.
101 * New path mappings can be added using the WebRequestPathInfoRouter hook
102 and adding paths to the PathRouter.
103 * (bug 32666) Special:ActiveUsers now allows a subpage to be used as value for the
104 "target" query parameter (eg. Special:ActiveUsers/Username).
105 * New JavaScript variable wgPageContentLanguage.
106 * Added new debugging toolbar, enabled with $wgDebugToolbar.
107 * Differences in the history page now uses slightly better colors for people
108 perceiving colors differently.
109 * (bug 32879) Upgrade jQuery to 1.7.1.
110 * jQuery UI upgraded to 1.8.17.
111 * Extensions can use the 'Language::getMessagesFileName' hook to define new
112 languages using messages files outside of core.
113 * (bug 32512) Add 'Associated namespace' checkbox to Special:Contributions.
114 * Added $wgSend404Code, true by default, which can be set to false to send a
115 200 status code instead of 404 for nonexistent articles.
116 * (bug 33447) Link to the broken image tracking category from Special:Wantedfiles.
117 * (bug 27724) Add timestamp to job queue.
118 * (bug 30339) Implement SpecialPage for running javascript tests. Disabled by default, due to
119 tests potentially being harmful, not to be run on a production wiki.
120 Enable by setting $wgEnableJavaScriptTest to true.
121 * Extensions can use the RequestContextCreateSkin hook to override what skin is
122 loaded in some contexts.
123 * (bug 33456) Show $wgQueryCacheLimit on cached query pages.
124 * (bug 10574) Add an option to allow all pages to be exported by Special:Export.
125 * mediawiki.js Message object constructor is now publicly available as mw.Message.
126 * (bug 29309) Allow CSS class per tooltip (tipsy).
127 * (bug 33565) Add accesskey/tooltip to submit buttons on Special:EditWatchlist.
128 * (bug 17959) Inline rendering/thumbnailing for Gimp XCF images.
129 * (bug 27775) Namespace has it's own XML tag in the XML dump file.
130 * (bug 30513) Redirect tag is now resolved in XML dump file.
131 * sha1 xml tag added to XML dump file.
132 * (bug 33646) Badtitle error page now emits a 400 HTTP status.
133 * Special:MovePage now has a dropdown menu for namespaces.
134 * (bug 34420) Special:Version now shows git HEAD sha1 when available.
135 * (bug 33952) Refactor mw.toolbar to allow dynamic additions at any time.
136 * Now possible to specify separate section title and edit summary when adding a new section to a
137 page via the edit API action.
138
139 === Bug fixes in 1.19 ===
140 * $wgUploadNavigationUrl should be used for file redlinks if.
141 $wgUploadMissingFileUrl is not set. The first was used for this
142 until the second was introduced in 1.17.
143 * BREAKING CHANGE: Style rules for wikitable are now more specific and prevent
144 inheritance to nested tables which caused various issues (bug 30485 and bug
145 33434). If your wiki has overriden rules for ".wikitable", please revise them and
146 adjust where neccecary. For comparison, use the "table.wikitable" section in
147 skins/common/shared.css as base.
148 * $wgUploadNavigationUrl is now used for file redlinks if
149 $wgUploadMissingFileUrl is not set. The former was used for this until the
150 second was introduced in 1.17.
151 * (bug 27894) Move 'editondblclick' event listener down from body to
152 div#bodyContent.
153 * (bug 30172) The check for posix_isatty() in maintenance scripts did not detect
154 when the function exists but is disabled. Introduced
155 Maintenance::posix_isatty().
156 * (bug 30264) Changed installer-generated LocalSettings.php to use
157 require_once() instead require() for included extensions.
158 * Do not convert text in the user interface language to another script.
159 * (bug 26283) Previewing user JS/CSS pages didn't load other user JS/CSS pages.
160 * (bug 26486) ResourceLoader modules with paths to nonexistent files cause PHP
161 warnings/notices to be thrown.
162 * (bug 30335) Fix for HTMLForms using GET that were breaking when non-friendly
163 URLs are used.
164 * (bug 28649) Preventing half truncated multi-byte unicode characters when
165 truncating log comments.
166 * Show --batch-size option in help of maintenance scripts that support it.
167 * (bug 4381) Magic quotes cleaning was not comprehensive, key strings were not
168 unescaped.
169 * (bug 23057) Importers no longer can 'edit' or 'create' a fully-protected page by
170 importing a new revision into it.
171 * Allow moving the associated talk pages of subpages even if the base page
172 has no subpage.
173 * Per page edit-notices now work in namespaces without subpages enabled.
174 * (bug 31081) $wgEnotifUseJobQ is no longer unconditionally enqueueing jobs.
175 * (bug 30202) File names are now restricted on upload to 240 bytes, because of
176 restrictions on some of the database fields.
177 * Timezones are now recognised in user preferences when offset is different
178 due to DST.
179 * (bug 31692) "summary" parameter now also works when undoing revisions.
180 * (bug 18823) "move succeeded" text displayed bluelinks even when redirect was
181 suppressed.
182 * (bug 19186) Special:UserLogin's title on Special:SpecialPages now says
183 "create account" when the user cannot create an account.
184 * (bug 31818) 'usercreated' message now supports GENDER.
185 * (bug 32022) Our phpunit.php script can now be executed from another directory.
186 * (bug 26020) Setting $wgEmailConfirmToEdit to true no longer removes diffs.
187 from recent changes feeds.
188 * (bug 30232) add current time to message wlnote on Special:Watchlist.
189 * (bug 29110) $wgFeedDiffCutoff did not affect new pages.
190 * (bug 32168) Add wfRemoveDotSegments for use in wfExpandUrl.
191 * (bug 32358) Do not display "No higher resolution available" for dimensionless
192 files (like audio files).
193 * (bug 32168) Add wfAssembleUrl for use in wfExpandUrl.
194 * (bug 32168) fixed - wfExpandUrl expands dot segments now.
195 * (bug 31535) Upload comments now truncated properly, and don't have brackets.
196 * (bug 32086) Special:PermanentLink now show an error message when no subpage
197 was specified.
198 * (bug 30368) Special:Newpages now shows the new page name for moved pages.
199 * (bug 1697) The way to search blocked usernames in block log should be clearer.
200 * (bug 29747) eAccelerator shared memory caching has been removed since it is
201 now disabled by default and is buggy. APC, XCache and WinCache are not affected.
202 * Installer now refuses to install if php was not compiled with Ctype support.
203 * (bug 29475) Remove "trackback" feature entirely from core.
204 * (bug 32665) Special:BlockList prefills the username in the input field if
205 using the Special:BlockList/username URL.
206 * (bug 27721) Make JavaScript variables wgSeparatorTransformTable and
207 wgDigitTransformTable depend on page content language so the sort script
208 sorts correctly more often.
209 * (bug 32230) Expose wgRedirectedFrom in JavaScript.
210 * (bug 31212) History tab not collapsed when the screen is narrow.
211 * (bug 15521) Use new section summary when the action of adding a new section
212 also happens to create the page.
213 * (bug 32960) Remove EmailAuthenticationTimestamp from database when a
214 email address is removed.
215 * (bug 32414) Empty page get a empty bytes attribute in Export/Dump.
216 * (bug 33101) Viewing a User or User talk of username resembling IP ending
217 with .xxx causes Internal error.
218 * Warning about undefined index in certain situations when $wgLogRestrictions
219 causes the first log type requested to be removed but not the others.
220 * Use separate message ('prefixindex-namespace') for title of
221 Special:PrefixIndex rather then re-using Special:AllPages's allinnamespace.
222 * (bug 33156) Special:Block now allows you to confirm you want to block yourself
223 when using non-normalized username.
224 * (bug 33246) News icon shown for news:// URLs but not for news: URLs.
225 * (bug 33305) Make mw.util.addCSS resistant to IE's @font-face bug by setting
226 cssText after DOM insertion.
227 * (bug 30711) When adding a new section to a page with section=new, the text is
228 now always added to the current version of the page.
229 * (bug 31719) Fix uploads of SVGs exported by Adobe Illustrator by expanding
230 XML entities correctly.
231 * (bug 30914) Embeddable ResourceLoader modules (user.options, user.tokens)
232 should be loaded in <head> for proper dependency resolution.
233 * (bug 32702) Removed method Skin::makeGlobalVariablesScript() has been readded
234 for backward compatibility.
235 * (bug 31469) Make sure tracking category messages expand variables like
236 {{NAMESPACE}} relative to correct title.
237 * (bug 33454) ISO-8601 week-based year number (format character 'o') is now
238 calculated correctly with respect to timezone.
239 * (bug 32219) InstantCommons now fetches content from Wikimedia Commons using
240 HTTPS when the local wiki is served over HTTPS.
241 * (bug 33525) clearTagHooks doesn't clear function hooks.
242 * (bug 33523) Function tag hooks don't appear on Special:Version.
243 * Files with IPTC blocks we can't read no longer prevent extraction of exif
244 or other metadata.
245 * (bug 33587) Remove action "historysubmit" from history pages.
246 * (bug 25800) mw.config wgAction should contain the actually performed action instead
247 of whatever the query value contains.
248 * (bug 4438) Add CSS hook for current WikiPage action.
249 * (bug 33703) Common border-bottom color for <abbr> should inherit default (text) color.
250 * (bug 33819) Display file sizes in appropriate units.
251 * (bug 32948) {{REVISIONID}} and related variables are no longer blank after doing
252 a null edit.
253 * (bug 33880) $wgUsersNotifiedOnAllChanges should not send e-mail to user who made
254 the edit.
255 * (bug 33902) Decoding %2B with mw.Uri.decode results in ' ' instead of +.
256 * (bug 33762) QueryPage-based special pages no longer misses *-summary message.
257 * Other sizes links are no longer generated for wikis without a 404 thumbnail handler.
258 * (bug 29454) Enforce byteLimit for page title input on Special:MovePage.
259 * (bug 34114) CSSMin::remap() doesn't respect its $embed parameter.
260 * Special:Contributions/newbies now shows the contributions for the user "newbies".
261 New user contributions are obtained using the form or using ?contribs=newbie in URL.
262 * It is now possible to delete images that have no corresponding description pages.
263 * (bug 33165) GlobalFunctions.php line 1312: Call to a member function
264 getText() on a non-object.
265 * (bug 31676) Group dynamically inserted CSS into a single <style> tag, to work
266 around a bug where not all styles were applied in Internet Explorer.
267 * (bug 28936, bug 5280) Broken or invalid titles can't be removed from watchlist.
268 * (bug 34600) Older skins using useHeadElement=false were broken in 1.18.
269 * (bug 34604) [mw.config] wgActionPaths should be an object instead of a numeral
270 array.
271 * (bug 29753) mw.util.tooltipAccessKeyPrefix should be alt-shift for Chrome
272 on Windows
273 * (bug 25095) Special:Categories should also include the first relevant item
274 when "from" is filled.
275 * (bug 12262) Indents and lists are now aligned
276
277 === API changes in 1.19 ===
278 * Made action=edit less likely to return "unknownerror", by returning the actual error
279 message (which may have come from a hook call or similar).
280 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
281 * (bug 29748) Add API search prefix support.
282 * (bug 29684) Set forgotten parameter types in ApiQueryIWLinks.
283 * (bug 29685) do not output NULL parentid with list=deletedrevs&drprop=parentid.
284 * siprop=interwikimap and siprop=languages can use silanguagecode to have
285 a best effort language name translation. Use CLDR extension for best result.
286 * (bug 30230) action=expandtemplates should not silently override invalid title
287 inputs.
288 * (bug 18634) Create API to fetch MediaWiki's language fallback tree structure.
289 * (bug 26885) Allow show/hide of account blocks, temporary blocks and single IP
290 address blocks for list=blocks.
291 * (bug 30591) Add support to only return keys in ApiAllMessages.
292 * The API now respects $wgShowHostnames and won't share the hostname in
293 severedby if it's set to false.
294 * wlexcludeuser parameter added to ApiFeedWatchlist.
295 * (bug 7304) Links on redirect pages no longer cause the redirect page to show
296 up as a redirect to the linked page on Special:Whatlinkshere.
297 * (bug 32609) API: Move captchaid/captchaword of action=edit from core
298 to Captcha extension(s).
299 * Added 'APIGetDescription' hook.
300 * (bug 32688) Paraminfo for parameter "generator" of the query module shows too
301 many types.
302 * (bug 32415) Empty page get no size attribute in API output.
303 * (bug 31759) Undefined property notice in querypages API.
304 * (bug 32495) API should allow purge by pageids.
305 * (bug 33147) API examples should explain what they do.
306 * (bug 33482) Api incorrectly calls ApiBase::parseMultiValue if allowed
307 values is given as an array.
308 * (bug 32948) {{REVISIONID}} and related variables are no longer blank after
309 calling action=purge&forcelinkupdate.
310 * (bug 34377) action=watch now parses messages using the correct title instead
311 of "API".
312 * (bug 35036) ResourceLoaderWikiModule should auto-update when messages (created
313 or overwritten) in the MediaWiki namespace change.
314
315 === Languages updated in 1.19 ===
316
317 MediaWiki supports over 350 languages. Many localisations are updated
318 regularly. Below only new and removed languages are listed, as well as
319 changes to languages because of Bugzilla reports.
320
321 * Canadian English (en-ca) (new).
322 * Norwegian (bokmål) (nb) (renamed from no).
323 * Uighur (Latin) (ug-latn) was incorrectly marked as right-to-left language.
324 * (bug 30217) Make pt-br a fallback of pt.
325 * (bug 31193) Set fallback language of Assamese from Bengali to English.
326 * Update date format for dsb and hsb: month names need the genitive.
327 * (bug 28643) Serbian variant conversion improvements (Nikola Smolenski).
328 * (bug 29405, bug 30809) Lower diacritics are invisible in titles in Indic
329 languages Assamese, Bengali, Hindi, Malyalam and Odiya.
330 * (bug 32826) Titles in indic languages are partially cut.
331 * (bug 33367) Gendered namespaces for Czech.
332 * (bug 33014) Language::formatSize()/formatBitrate() should be able to deal
333 with larger numbers (tera-yotta).
334
335 === Other changes in 1.19 ===
336 * BREAKING CHANGE: Legacy global array 'ta' and global function 'akeytt' have
337 been removed from wikibits.js.
338 * jquery.mwPrototypes module was renamed to jquery.mwExtension.
339 * The maintenance script populateSha1.php was renamed to the more concise
340 populateImageSha1.php.
341 * The Client-IP header is no longer checked for when trying to resolve a client's
342 real IP address.
343 * (bug 22096) Although IE5.x and below was already unsupported officially, stylesheets
344 existing exclusively for IE5.0 and IE5.5 have now been removed (which were in skins
345 'chick' and 'monobook').
346 * The constructor for CategoryView has changed, the second parameter is now a
347 Context source and is required.
348 * The Title::escape{Local,Full,Canonical}URL methods are deprecated, please use
349 proper html building methods to escape the normal get{...}URL methods instead.
350 * The $variant arguments in the Title::get{Local,Full,Link,Canonical}URL methods
351 have been replaced with a secondary query argument.
352 * The $variant argument in the hooks for the Title::get{Local,Full,Link,Canonical}URL
353 methods have been removed, the variant is now part of the $query argument.
354 * Removed Title::isValidCssJsSubpage(), deprecated since 1.17 in favor of
355 using Title::isCssJsSubpage() or checking Title::isWrongCaseCssJsPage().
356 * Support for the deprecated hook MagicWordMagicWords was removed.
357 * The Xml::namespaceSelector method has been deprecated, please use
358 Html::namespaceSelector instead (note that the parameters have changed also).
359 * (bug 33746) Preload popular ResourceLoader modules (mediawiki.util) as stop-gap
360 for scripts missing dependencies.
361 New configuration variable $wgPreloadJavaScriptMwUtil has been introduced for this
362 (set to false by default for new installations). Set to true if your wiki has a large
363 amount of user/site scripts that are lacking dependency information. In the short to
364 medium term these user/site scripts should be fixed by adding the used modules to the
365 dependencies in the module registry and/or wrapping them in a callback to mw.loader.using.
366
367 == Compatibility ==
368
369 MediaWiki 1.19 requires PHP 5.2.3. PHP 4 is no longer supported.
370
371 MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but
372 support for them is somewhat less mature. There is experimental support for IBM
373 DB2 and Oracle.
374
375 The supported versions are:
376
377 * MySQL 5.0.2 or later
378 * PostgreSQL 8.3 or later
379 * SQLite 3.3.7 or later
380 * Oracle 9.0.1 or later
381
382 == Upgrading ==
383
384 1.19 has several database changes since 1.18, and will not work without schema
385 updates.
386
387 As of 1.19 several JavaScript interfaces that were deprecated or superseeded in
388 MediaWiki 1.17, MediaWiki 1.16 or even earlier have been removed. They are
389 listed at the top of the "Other changes" list as a "BREAKING CHANGE".
390
391 If upgrading from before 1.11, and you are using a wiki as a commons
392 repository, make sure that it is updated as well. Otherwise, errors may arise
393 due to database schema changes.
394
395 If upgrading from before 1.7, you may want to run refreshLinks.php to ensure
396 new database fields are filled with data.
397
398 If you are upgrading from MediaWiki 1.4.x or earlier, some major database
399 changes are made, and there is a slightly higher chance that things could
400 break. Don't forget to always back up your database before upgrading!
401
402 See the file UPGRADE for more detailed upgrade instructions.
403
404 For notes on 1.18.x and older releases, see HISTORY.
405
406 == Online documentation ==
407
408 Documentation for both end-users and site administrators is available on
409 MediaWiki.org, and is covered under the GNU Free Documentation License (except
410 for pages that explicitly state that their contents are in the public domain):
411
412 https://www.mediawiki.org/wiki/Documentation
413
414 == Mailing list ==
415
416 A mailing list is available for MediaWiki user support and discussion:
417
418 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
419
420 A low-traffic announcements-only list is also available:
421
422 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
423
424 It's highly recommended that you sign up for one of these lists if you're
425 going to run a public MediaWiki, so you can be notified of security fixes.
426
427 == IRC help ==
428
429 There's usually someone online in #mediawiki on irc.freenode.net.