2017-09-19 18:34:47 +00:00
|
|
|
== MediaWiki 1.31 ==
|
|
|
|
|
|
|
|
|
|
THIS IS NOT A RELEASE YET
|
|
|
|
|
|
|
|
|
|
MediaWiki 1.31 is an alpha-quality branch and is not recommended for use in
|
|
|
|
|
production.
|
|
|
|
|
|
|
|
|
|
=== Configuration changes in 1.31 ===
|
2017-10-11 23:02:05 +00:00
|
|
|
* $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in
|
|
|
|
|
a future version. The API is now considered to be stable, secure and
|
|
|
|
|
essential.
|
2017-10-05 18:25:51 +00:00
|
|
|
* $wgUsejQueryThree was removed, as it is now the default. This was documented as a
|
|
|
|
|
temporary variable during the migration period, deprecated since 1.29.
|
2017-05-22 18:12:26 +00:00
|
|
|
* $wgLogoHD has been updated to support svg images and uses $wgLogo where
|
|
|
|
|
possible for fallback images such as png.
|
2017-10-14 03:20:10 +00:00
|
|
|
* (T44246) $wgFilterLogTypes will no longer ignore 'patrol' when user does
|
|
|
|
|
not have the right to mark things patrolled.
|
2017-10-25 19:26:53 +00:00
|
|
|
* Wikis that contain imported revisions or CentralAuth global blocks should run
|
|
|
|
|
maintenance/cleanupUsersWithNoId.php.
|
2017-11-30 23:19:10 +00:00
|
|
|
* $wgResourceLoaderMinifierStatementsOnOwnLine and $wgResourceLoaderMinifierMaxLineLength
|
|
|
|
|
were removed (deprecated since 1.27).
|
2017-12-23 17:35:59 +00:00
|
|
|
* (T180921) $wgReferrerPolicy now supports having fallbacks for browsers that are not
|
|
|
|
|
using the latest version of the Referrer Policy specification.
|
2018-01-20 02:36:30 +00:00
|
|
|
* $wgFragmentMode is now set to [ 'legacy', 'html5' ] by default. This is a first step of
|
|
|
|
|
migration to human-readable section IDs that will later result in 'html5' being the
|
|
|
|
|
default mode.
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
=== New features in 1.31 ===
|
Database: Support parenthesized JOINs
SQL supports parentheses for grouping in the FROM clause.[1] This is
useful when you want to left-join against a join of other tables.
For example, say you have tables 'a', 'b', and 'c'. You want all rows
from 'a', along with rows from 'b' + 'c' only where both of those
exist.
SELECT * FROM a LEFT JOIN b ON (a_b = b_id) JOIN c ON (b_c = c_id)
doesn't work, it'll only give you the rows where 'c' exists.
SELECT * FROM a LEFT JOIN b ON (a_b = b_id) LEFT JOIN c ON (b_c = c_id)
doesn't work either, it'll give you rows from 'b' without a
corresponding row in 'c'. What you need to do is
SELECT * FROM a LEFT JOIN (b JOIN c ON (b_c = c_id)) ON (a_b = b_id)
This patch implements this by extending the syntax for the $table
parameter to IDatabase::select(). When passing an array of tables, if a
value in the array is itself an array that is interpreted as a request
for a parenthesized join. To produce the example above, you'd do
something like
$db->select(
[ 'a', 'nest' => [ 'b', 'c' ] ],
'*',
[],
__METHOD__,
[],
[
'c' => [ 'JOIN', 'b_c = c_id ],
'nest' => [ 'LEFT JOIN', 'a_b = b_id' ],
]
);
[1]: In standards as far back as SQL-1992 (I couldn't find an earlier
version), and it seems to be supported by at least MySQL 5.6, MariaDB
10.1.28, PostgreSQL 9.3, PostgreSQL 10.0, Oracle 11g R2, SQLite 3.20.1,
and MSSQL 2014 (from local testing and sqlfiddle.com).
Change-Id: I1e0a77381e06d885650a94f53847fb82f01c2694
2017-10-13 17:51:43 +00:00
|
|
|
* Wikimedia\Rdbms\IDatabase->select() and similar methods now support
|
|
|
|
|
joins with parentheses for grouping.
|
2017-09-28 18:42:32 +00:00
|
|
|
* As a first pass in standardizing dialog boxes across the MediaWiki product,
|
2017-11-15 16:44:53 +00:00
|
|
|
Html class now provides helper methods for messageBox, successBox, errorBox and
|
|
|
|
|
warningBox generation.
|
2017-10-25 19:26:53 +00:00
|
|
|
* (T9240) Imports will now record unknown (and, optionally, known) usernames in
|
|
|
|
|
a format like "iw>Example".
|
|
|
|
|
* (T20209) Linker (used on history pages, log pages, and so on) will display
|
|
|
|
|
usernames formed like "iw>Example" as interwiki links, as if by wikitext like
|
|
|
|
|
[[iw:User:Example|iw>Example]].
|
|
|
|
|
* (T111605) The 'ImportHandleUnknownUser' hook allows extensions to auto-create
|
|
|
|
|
users during an import.
|
2017-11-22 18:12:23 +00:00
|
|
|
* Added a hook, ParserOutputPostCacheTransform, to allow extensions to affect
|
|
|
|
|
the ParserOutput::getText() post-cache transformations.
|
2017-12-18 14:14:38 +00:00
|
|
|
* Added a hook, UploadForm:getInitialPageText, to allow extensions to alter the
|
|
|
|
|
initial page text for file uploads.
|
2018-01-25 04:58:06 +00:00
|
|
|
* (T181651) The info page for File pages now displays the file's base-16 SHA1
|
2018-01-18 07:16:09 +00:00
|
|
|
hash value in the table of basic information.
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
=== External library changes in 1.31 ===
|
|
|
|
|
|
|
|
|
|
==== Upgraded external libraries ====
|
2017-11-27 23:44:40 +00:00
|
|
|
* Updated jquery.chosen from v0.9.14 to v1.8.2.
|
2018-01-03 20:32:07 +00:00
|
|
|
* Updated composer/spdx-licenses from 1.1.4 to
|
2018-02-01 07:01:02 +00:00
|
|
|
1.3.0 (development dependency).
|
2018-01-04 08:18:30 +00:00
|
|
|
* Updated nikic/php-parser from 2.1.0 to 3.1.3
|
|
|
|
|
(development dependency).
|
2018-01-18 21:15:07 +00:00
|
|
|
* Updated wikimedia/ip-set from 1.1.0 to 1.2.0.
|
|
|
|
|
* Updated wikimedia/relpath from 2.0.0 to 2.1.1.
|
|
|
|
|
* Updated wikimedia/running-stat from 1.1.0 to 1.2.0.
|
|
|
|
|
* Updated wikimedia/wrappedstring from 2.2.0 to 2.3.0.
|
2017-11-10 14:06:48 +00:00
|
|
|
* …
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
==== New external libraries ====
|
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
==== Removed and replaced external libraries ====
|
2017-10-23 17:52:33 +00:00
|
|
|
* (T17845) The deprecated 'jquery.badge' module was removed.
|
2017-10-25 19:34:32 +00:00
|
|
|
* The deprecated 'jquery.autoEllipsis' module was removed. Use the CSS
|
|
|
|
|
text-overflow property instead.
|
2017-10-25 19:38:18 +00:00
|
|
|
* The deprecated 'jquery.placeholder' module was removed.
|
2017-10-25 19:39:26 +00:00
|
|
|
* The deprecated 'jquery.appear' module was removed. Use the
|
|
|
|
|
'mediawiki.viewport' module instead.
|
2017-10-25 19:41:29 +00:00
|
|
|
* The deprecated 'mediawiki.widgets.CategorySelector' module alias was removed.
|
|
|
|
|
Use the 'mediawiki.widgets.CategoryMultiselectWidget' module directly instead.
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
=== Bug fixes in 1.31 ===
|
2017-11-03 02:35:11 +00:00
|
|
|
* (T90902) Non-breaking space in header ID breaks anchor
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
=== Action API changes in 1.31 ===
|
2018-01-17 15:01:51 +00:00
|
|
|
* (T185058) The 'name' value to tgprop for action=query&list=tags has been
|
|
|
|
|
removed. It has never made a difference in the output, the name was always
|
|
|
|
|
returned regardless.
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
=== Action API internal changes in 1.31 ===
|
|
|
|
|
* …
|
|
|
|
|
|
|
|
|
|
=== Languages updated in 1.31 ===
|
|
|
|
|
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 Phabricator reports.
|
|
|
|
|
|
2017-11-12 11:34:24 +00:00
|
|
|
* (T180052) Mirandese (mwl) now supports gendered NS_USER/NS_USER_TALK namespaces.
|
2018-01-05 12:44:58 +00:00
|
|
|
* (T182305) New language support: Nyungar (nys).
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
=== Other changes in 1.31 ===
|
2017-08-31 18:41:04 +00:00
|
|
|
* Introducing multi-content-revision capability into the storage layer. For details,
|
|
|
|
|
see <https://www.mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions>.
|
|
|
|
|
* The Revision class was deprecated in favor of RevisionStore, BlobStore, and
|
|
|
|
|
RevisionRecord and its subclasses.
|
2017-09-25 17:37:35 +00:00
|
|
|
* MessageBlobStore::insertMessageBlob() (deprecated in 1.27) was removed.
|
2017-04-06 15:17:19 +00:00
|
|
|
* The global function wfBCP47 was renamed to LanguageCode::bcp47.
|
|
|
|
|
* The global function wfBCP47 is now deprecated.
|
2017-10-13 00:24:46 +00:00
|
|
|
* The global function wfCountDown() is now deprecated in favor of
|
2017-09-09 02:12:37 +00:00
|
|
|
Maintenance::countDown()
|
|
|
|
|
* The OutputPage class constructor now requires a context parameter,
|
|
|
|
|
(instantiating without context was deprecated in 1.18)
|
2017-10-07 16:35:14 +00:00
|
|
|
* mw.page (deprecated in 1.30) was removed.
|
2017-10-25 15:42:38 +00:00
|
|
|
* Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
|
|
|
|
|
related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
|
2017-10-26 16:22:01 +00:00
|
|
|
* The Article::selectFields(), Article::onArticleCreate(),
|
|
|
|
|
Article::onArticleDelete(), and Article::onArticleEdit() methods, deprecated
|
|
|
|
|
in 1.24, were removed.
|
2017-10-20 07:36:03 +00:00
|
|
|
* Installer::locateExecutable() and Installer::locateExecutableInDefaultPaths()
|
|
|
|
|
were removed, use ExecutableFinder::findInDefaultPaths() instead.
|
2017-10-06 17:03:55 +00:00
|
|
|
* Several methods for returning lists of fields to select from the database
|
|
|
|
|
have been deprecated in favor of similar methods that also return the tables
|
|
|
|
|
to select from and the join conditions for those tables.
|
|
|
|
|
* Block::selectFields() → Block::getQueryInfo()
|
|
|
|
|
* RecentChange::selectFields() → RecentChange::getQueryInfo()
|
|
|
|
|
* ArchivedFile::selectFields() → ArchivedFile::getQueryInfo()
|
|
|
|
|
* LocalFile::selectFields() → LocalFile::getQueryInfo()
|
|
|
|
|
* LocalFile::getCacheFields() with a prefix no longer works
|
|
|
|
|
* LocalFile::getLazyCacheFields() with a prefix no longer works
|
|
|
|
|
* OldLocalFile::selectFields() → OldLocalFile::getQueryInfo()
|
|
|
|
|
* RecentChange::selectFields() → RecentChange::getQueryInfo()
|
|
|
|
|
* Revision::userJoinCond() → Revision::getQueryInfo( [ 'user' ] )
|
|
|
|
|
* Revision::selectUserFields() → Revision::getQueryInfo( [ 'user' ] )
|
|
|
|
|
* Revision::pageJoinCond() → Revision::getQueryInfo( [ 'page' ] )
|
|
|
|
|
* Revision::selectPageFields() → Revision::getQueryInfo( [ 'page' ] )
|
|
|
|
|
* Revision::selectTextFields() → Revision::getQueryInfo( [ 'text' ] )
|
|
|
|
|
* Revision::selectFields() → Revision::getQueryInfo()
|
|
|
|
|
* Revision::selectArchiveFields() → Revision::getArchiveQueryInfo()
|
|
|
|
|
* User::selectFields() → User::getQueryInfo()
|
|
|
|
|
* WikiPage::selectFields() → WikiPage::getQueryInfo()
|
2017-11-15 16:44:53 +00:00
|
|
|
* Due to significant refactoring, method ContribsPager::getUserCond() that had
|
|
|
|
|
no access restriction has been removed.
|
|
|
|
|
* Revision::setUserIdAndName() was deprecated.
|
2017-11-20 18:52:46 +00:00
|
|
|
* Access to TitleValue class properties was deprecated, the relevant getters
|
|
|
|
|
should be used instead.
|
2017-11-04 20:15:26 +00:00
|
|
|
* DifferenceEngine::getDiffBodyCacheKey() is deprecated. Subclasses should
|
|
|
|
|
override DifferenceEngine::getDiffBodyCacheKeyParams() instead.
|
|
|
|
|
* The deprecated MW_DIFF_VERSION constant was removed.
|
|
|
|
|
DifferenceEngine::MW_DIFF_VERSION should be used instead.
|
2017-11-20 00:36:54 +00:00
|
|
|
* Use of Maintenance::error( $err, $die ) to exit script was deprecated. Use
|
|
|
|
|
Maintenance::fatalError() instead.
|
2017-11-22 20:12:43 +00:00
|
|
|
* Passing a ParserOptions object to OutputPage::parserOptions() is deprecated.
|
2017-11-27 20:39:17 +00:00
|
|
|
* Browser support for Opera 12 and older was removed.
|
|
|
|
|
Opera 15+ continues at Grade A support.
|
2017-10-25 19:26:53 +00:00
|
|
|
* The Block class will no longer accept usable-but-missing usernames for
|
|
|
|
|
'byText' or ->setBlocker(). Callers should either ensure the blocker exists
|
|
|
|
|
locally or use a new interwiki-format username like "iw>Example".
|
2017-08-31 18:41:04 +00:00
|
|
|
* The RevisionInsertComplete hook is now deprecated, use RevisionRecordInserted instead.
|
|
|
|
|
RevisionInsertComplete is still called, but the second and third parameter will always be null.
|
|
|
|
|
Hard deprecation is scheduled for 1.32.
|
2017-11-22 18:12:23 +00:00
|
|
|
* The following methods that get and set ParserOutput state are deprecated.
|
|
|
|
|
Callers should use the new stateless $options parameter to
|
|
|
|
|
ParserOutput::getText() instead.
|
|
|
|
|
* ParserOptions::getEditSection()
|
|
|
|
|
* ParserOptions::setEditSection()
|
|
|
|
|
* ParserOutput::getEditSectionTokens()
|
|
|
|
|
* ParserOutput::setEditSectionTokens()
|
|
|
|
|
* ParserOutput::getTOCEnabled()
|
|
|
|
|
* ParserOutput::setTOCEnabled()
|
|
|
|
|
* OutputPage::enableSectionEditLinks()
|
|
|
|
|
* OutputPage::sectionEditLinksEnabled()
|
|
|
|
|
* The public ParserOutput state fields $mTOCEnabled and $mEditSectionTokens are also deprecated.
|
2017-12-08 03:09:15 +00:00
|
|
|
* The following methods and constants from the WatchedItem class were deprecated in
|
|
|
|
|
1.27 have been removed.
|
|
|
|
|
* WatchedItem::getTitle()
|
|
|
|
|
* WatchedItem::fromUserTitle()
|
|
|
|
|
* WatchedItem::addWatch()
|
|
|
|
|
* WatchedItem::removeWatch()
|
|
|
|
|
* WatchedItem::isWatched()
|
|
|
|
|
* WatchedItem::duplicateEntries()
|
|
|
|
|
* WatchedItem::IGNORE_USER_RIGHTS
|
|
|
|
|
* WatchedItem::CHECK_USER_RIGHTS
|
|
|
|
|
* WatchedItem::DEPRECATED_USAGE_TIMESTAMP
|
2017-12-22 17:47:21 +00:00
|
|
|
* The $statementsOnOwnLine parameter of JavaScriptMinifier::minify was removed.
|
|
|
|
|
The corresponding configuration variable ($wgResourceLoaderMinifierStatementsOnOwnLine)
|
|
|
|
|
has been deprecated since 1.27 and was removed as well.
|
2018-01-11 22:59:47 +00:00
|
|
|
* The $maxLineLength parameter of JavaScriptMinifier::minify was removed.
|
|
|
|
|
The corresponding configuration variable ($wgResourceLoaderMinifierMaxLineLength)
|
|
|
|
|
has been deprecated since 1.27 and was removed as well.
|
2018-01-04 08:21:05 +00:00
|
|
|
* The HtmlFormatter class was removed (deprecated in 1.27). The namespaced
|
|
|
|
|
HtmlFormatter\HtmlFormatter class should be used instead.
|
2017-12-18 14:14:38 +00:00
|
|
|
* License::getLicenses has been deprecated; use License::getLines instead.
|
2018-01-16 19:02:11 +00:00
|
|
|
* The driver 'mysql' for MySQL, deprecated in MediaWiki 1.30, has been removed.
|
|
|
|
|
The driver has been deprecated since PHP 5.5 and was removed in PHP 7.0. The
|
|
|
|
|
default driver for MySQL has been 'mysqli' since MediaWiki 1.22.
|
2018-01-27 00:57:13 +00:00
|
|
|
* The following properties of PreparedEdit were deprecated in 1.21 and have been removed:
|
|
|
|
|
* PreparedEdit->newText
|
|
|
|
|
* PreparedEdit->oldText
|
|
|
|
|
* PreparedEdit->pst
|
2018-01-26 18:16:13 +00:00
|
|
|
* QuickTemplate::setRef() was deprecated in favour of QuickTemplate::set().
|
|
|
|
|
Setting template variables by reference allowed violating the principle of data being
|
|
|
|
|
immutable once added to the skin template. In practice, this method was not being
|
|
|
|
|
used for that. Rather, setRef() existed as memory optimisation for PHP 4.
|
2017-12-22 18:32:49 +00:00
|
|
|
* Passing false to ParserOptions::setWrapOutputClass() is deprecated. Use the
|
|
|
|
|
'unwrap' transform to ParserOutput::getText() instead.
|
2017-12-22 18:47:33 +00:00
|
|
|
* ParserOutput objects generated using a non-default value for
|
|
|
|
|
ParserOptions::setWrapOutputClass() can no longer be added to the parser
|
|
|
|
|
cache.
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
== Compatibility ==
|
2017-12-30 02:58:03 +00:00
|
|
|
MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported,
|
|
|
|
|
it is generally advised to use PHP 5.5.9 or later for long term support.
|
2017-09-19 18:34:47 +00:00
|
|
|
|
|
|
|
|
MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
|
|
|
|
|
but support for them is somewhat less mature. There is experimental support for
|
|
|
|
|
Oracle and Microsoft SQL Server.
|
|
|
|
|
|
|
|
|
|
The supported versions are:
|
|
|
|
|
|
|
|
|
|
* MySQL 5.0.3 or later
|
|
|
|
|
* PostgreSQL 8.3 or later
|
|
|
|
|
* SQLite 3.3.7 or later
|
|
|
|
|
* Oracle 9.0.1 or later
|
|
|
|
|
* Microsoft SQL Server 2005 (9.00.1399)
|
|
|
|
|
|
|
|
|
|
== Upgrading ==
|
|
|
|
|
1.31 has several database changes since 1.30, and will not work without schema
|
|
|
|
|
updates. Note that due to changes to some very large tables like the revision
|
|
|
|
|
table, the schema update may take quite long (minutes on a medium sized site,
|
|
|
|
|
many hours on a large site).
|
|
|
|
|
|
|
|
|
|
Don't forget to always back up your database before upgrading!
|
|
|
|
|
|
|
|
|
|
See the file UPGRADE for more detailed upgrade instructions, including
|
|
|
|
|
important information when upgrading from versions prior to 1.11.
|
|
|
|
|
|
|
|
|
|
For notes on 1.30.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/Special:MyLanguage/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.
|