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