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