= MediaWiki release notes = Security reminder: MediaWiki does not require PHP's register_globals setting since version 1.2.0. If you have it on, turn it '''off''' if you can. == MediaWiki 1.20 == THIS IS NOT A RELEASE YET MediaWiki 1.20 is an alpha-quality branch and is not recommended for use in production. === PHP 5.3 now required === Since 1.20, the lowest supported version of PHP is now 5.3.2. Please upgrade PHP if you have not done so prior to upgrading MediaWiki. === Configuration changes in 1.20 === * $wgGitRepositoryViewers defines a mapping from Git remote repository to the Gitweb instance URL used in Special:Version * `$wgUsePathInfo = true;` is no longer needed to make $wgArticlePath work on servers using like nginx, lighttpd, and apache over fastcgi. MediaWiki now always extracts path info from REQUEST_URI if it's available. === New features in 1.20 === * Added TitleIsAlwaysKnown hook which gets called when determining if a page exists. * Added NamespaceIsMovable hook which gets called when determining if pages in a certain namespace can be moved. * (bug 32341) Add upload by URL domain limitation. * &useskin=default will now always display the default skin. Useful for users with a preference for the non-default skin to look at something using the default skin. * (bug 27619) Remove preference option to display broken links as link? * (bug 34896) Update jQuery JSON plugin to v2.3 (2011-09-17). * (bug 34302) Add CSS classes to email fields in user preferences. * Introduced $wgDebugDBTransactions to trace transaction status (currently PostgreSQL only). * (bug 23795) Add parser itself to ParserMakeImageParams hook. * Introduce a cryptographic random number generator source api for use when generating various tokens. * (bug 30963) Option on Special:Prefixindex and Special:Allpages to not show redirects. * (bug 18062) new message when edit or create the local page of a shared file. * (bug 22870) Separate interface message when creating a page. * (bug 17615) nosummary option should be reassigned on preview/captcha. * (bug 34355) add a variable and parser function for the namespace number. * (bug 35649) Special:Version now shows hashes of extensions checked out from git. * (bug 35728) Git revisions are now linked on Special:Version. * "Show Changes" on default messages shows now diff against default message text * (bug 23006) create #speciale parser function. * generateSitemap can now optionally skip redirect pages. * (bug 27757) new API command just for retrieving tokens (not page-based) * Added GitViewers hook for extensions using external git repositories to have a web-based repository viewer linked to from Special:Version. * Memcached debug logs can now be sent to their own file logs by setting $wgDebugLogFile['memcached'] to some filepath. * (bug 35685) api.php URL and other entry point URLs are now listed on Special:Version * Edit notices can now be translated. * (bug 22887) Add warning and tracking category for preprocessor errors * (bug 31704) Allow selection of associated namespace on the watchlist * (bug 5445) Now remove autoblocks when a user is unblocked. * Added $wgLogExceptionBacktrace, on by default, to allow logging of exception backtraces. * Added device detection for determining device capabilities. * QUnit.newMwEnvironment now supports passing a custom setup and/or teardown function. Arguments signature has changed. First arguments is now an options object of which 'config' can be a property. Previously 'config' itself was the first and only argument. * New getCreator and getOldestRevision methods added to WikiPage class === Bug fixes in 1.20 === * (bug 30245) Use the correct way to construct a log page title. * (bug 34237) Regenerate an empty user_token and save to the database when we try to set the user's cookies for login. * (bug 32210) New edit emails for watched pages always provide a link to the edit which triggered the mail. * (bug 12021) Added user talk link on Special:Listusers. * (bug 34445) section edit and TOC hide/show links are excluded from selection and copy/paste on supporting browsers. * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob history compression method. * (bug 34702) Localised parentheses are now used in more special pages. * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR. * (bug 34762) Calling close() on a DatabaseBase object now clears the connection. * (bug 34863) Show deletion log extract on non-existent file pages if applicable. * (bug 28019) Let ?preloadtitle=foo be passed on to target of Special:MyPage and Special:MyTalk. * (bug 34929) Show the correct diff when a section edit is rejected by the spam filter. * (bug 15816) Add a switch for SETting the search_path (Postgres). * (bug 34521) Returning to the previous page after logging in loses any array- valued parameters in the query string. * (bug 34735) Updated compressOld.php documentation to mention the different usages of -s and -n parameters depending on compression type. * (bug 13896) Rendering of devanagari numbers in automatic '#' number lists. * (bug 33689) Upgrade to 1.19 on Postgres fails due to incomplete query when. trying to defer foreign key for externallinks. * (bug 32748) Printer friendly version of article decode Unicode chars as a pretty IRI in footer. * Removed white border around thumbnails in galleries. * (bug 31236) "Next" and "Previous" buttons are shown incorrectly in an RTL environment. * (bug 35680) jQuery upgraded to 1.7.2. * jQuery UI upgraded to 1.8.19. * (bug 35705) QUnit upgraded from 1.2.0 to 1.5.0 * (bug 35749) Updated maintenance/checkSyntax.php to use Git instead of Subversion when invoked with the --modified option. * (bug 35069) On history pages, the " . . " separator after the number of characters changed in a revision is now suppressed if no text would follow. * (bug 18704) Add a unique CSS class or ID to the tagfilter table row at RecentChanges * (bug 33564) transwiki import sometimes result in invalid title. * (bug 35572) Blocks appear to succeed even if query fails due to wrong DB structure * (bug 31757) Add a word-separator between help-messages in HTMLForm * (bug 30410) Removed deprecated $wgFilterCallback and the 'filtered' API error. * (bug 32604) Some messages needs escaping of wikitext inside username * (bug 36537) Rename wfArrayToCGI to wfArrayToCgi for consistency with wfCgiToArray. === API changes in 1.20 === * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API. * (bug 34313) MediaWiki API intro message about "HTML format" should mention the format parameter. * (bug 32384) Allow descending order for list=watchlistraw. * (bug 31883) Limit of bkusers of list=blocks and titles of action=query is not documented in API help. * (bug 32492) API now allows editing using pageid * (bug 32497) API now allows changing of protection level using pageid * (bug 32498) API now allows comparing pages using pageids * (bug 30975) API import of pages with invalid characters in this wiki leads to Fatal Error * (bug 30488) API now allows listing of backlinks/embeddedin/imageusage per pageid * (bug 34927) Output media_type for list=filearchive * (bug 28814) add properties to output of action=parse * (bug 33224) add variants of content language to meta=siteinfo === Languages updated in 1.20 === MediaWiki supports over 350 languages. Many localisations are updated regularly. Below only new and removed languages are listed, as well as changes to languages because of Bugzilla reports. * Mizo (lus) added. * Santali (sat) added. * (bug 34192) Namespace gender aliases for Albanian languages (sq & aln). * (bug 35541) Namespace gender aliases for Croatian (hr). * (bug 36012) Space in $separatorTransformTable should be non-breaking in Portuguese, Esperanto and Udmurt. === Other changes in 1.20 === * The user_token field is now left empty until a user attempts to login and cookies need to be set. It is also now possible to reset every user's user_token simply by clearing the values in the user_token column. * Removed ./tests/qunit/index.html from core. It wasn't actively maintained and has been made obsolete when [[Special:JavaScriptTest/qunit]] was introduced, which actually uses ResourceLoader, LocalSettings and the Skin. == Compatibility == MediaWiki 1.20 requires PHP 5.3.2. PHP 4 is no longer supported. MySQL is the recommended DBMS. PostgreSQL or SQLite can also be used, but support for them is somewhat less mature. There is experimental support for IBM DB2 and Oracle. The supported versions are: * MySQL 5.0.2 or later * PostgreSQL 8.3 or later * SQLite 3.3.7 or later * Oracle 9.0.1 or later == Upgrading == 1.20 has several database changes since 1.19, and will not work without schema updates. If upgrading from before 1.11, and you are using a wiki as a commons repository, make sure that it is updated as well. Otherwise, errors may arise due to database schema changes. If upgrading from before 1.7, you may want to run refreshLinks.php to ensure new database fields are filled with data. If you are upgrading from MediaWiki 1.4.x or earlier, some major database changes are made, and there is a slightly higher chance that things could break. Don't forget to always back up your database before upgrading! See the file UPGRADE for more detailed upgrade instructions. For notes on 1.19.x and older releases, see HISTORY. == Online documentation == Documentation for both end-users and site administrators is available on MediaWiki.org, and is covered under the GNU Free Documentation License (except for pages that explicitly state that their contents are in the public domain): https://www.mediawiki.org/wiki/Documentation == Mailing list == A mailing list is available for MediaWiki user support and discussion: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l A low-traffic announcements-only list is also available: https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce It's highly recommended that you sign up for one of these lists if you're going to run a public MediaWiki, so you can be notified of security fixes. == IRC help == There's usually someone online in #mediawiki on irc.freenode.net.