Save value from CLI installers `--lang` argument
[lhc/web/wiklou.git] / RELEASE-NOTES-1.31
1 == MediaWiki 1.31.2 ==
2
3 THIS IS NOT A RELEASE YET
4
5 === Changes since MediaWiki 1.31.1 ===
6 * (T204729) WatchedItemStore::countVisitingWatchersMultiple() shouldn't query all
7 titles when asked for none
8 * (T205967) Fix syntax error typo in postgres database upgrade file.
9 * (T200254) Add pear/Net_SMTP 1.7.3 to composer dependencies.
10 * (T206765) Load installer i18n when running update.php.
11 * (T109121) Remove deprecated pear/mail_mime-decode from composer suggested libraries.
12 [Also in the bundled composer /vendor directory.]
13 * Various PHP 7.2 and 7.3 compatibility fixes:
14 * (T200595, T206974) Fix PHP 7.3 warnings of using "continue" in some scenarios instead
15 of "break".
16 * (T206976, T206977) Also in the bundled LocalisationUpdate and ParserFunctions extensions.
17 * (T206979) Fix PHP 7.3 warnings of using "compact()" when some variables may
18 not be set.
19 * Fix PHP 7.3 warnings "preg_replace(): [...] invalid range in character class"
20 * Avoid PHP 7.2 warnings in DBConRefTest about count() on non-Countable
21 * Suppress "Headers already sent" in PHP 7.2 too
22 * (T206476) Output only to stderr in unit tests
23 * (T207112) Add session_write_close() calls to SessionManager tests
24 * (T207540) Include IP address in "Login for $1 succeeded" log entry.
25 * (T201781) Database: Allow selectFieldValues() to accept SQL fragments
26 * (T205765) installer: Don't link to the obsolete "Extension Matrix" page
27 * (T206013) Update ImportableUploadRevisionImporter for interwiki usernames
28 * (T207541) Pass an email address, not a MailAddress, to mail().
29 * (T207603) User JS may no longer be loaded with mime type text/javascript if
30 there is no account associated with the username.
31 * (T112937, T113042) Do not allow loading pages raw with a text/javascript MIME
32 type if non-admins can edit the page.
33 * (T17491) <ins>/<del> elements can be phrasing or flow
34 * (T200827) RemexCompatMunger: Don't call endTag() in case B/b
35 * (T207088) Upgrade wikimedia/remex-html to 2.0.1
36 [Also in the bundled composer /vendor directory.]
37 * (T194052) Updated wikimedia/base-convert from 1.0.1 to 2.0.0.
38 [Also in the bundled composer /vendor directory.]
39 * (T199494) Fix notices in maintenance/removeUnusuedAccounts.php
40 * Require ext-fileinfo in composer.json, per PHPVersionCheck
41 * (T176390) Bundled LocalisationUpdate extension: Handle exceptions from GitHubFetcher
42 * (T208255) Completion search should not change the search query
43 * (T209870) Fix SQL syntax error in MS-SQL initialisation file for new wikis
44 * (T185049) LogFormatter: Fail softer when trying to link an invalid titles
45 * (T210998) Properly set $wgLanguageCode in the generated LocalSettings.php
46 if --lang is used with the command-line installer (install.php).
47
48 == MediaWiki 1.31.1 ==
49
50 This is a security and maintenance release of the MediaWiki 1.31 branch.
51
52 === Changes since MediaWiki 1.31.0 ===
53 * (T169545, CVE-2018-0503) SECURITY: $wgRateLimits entry for 'user' overrides
54 'newbie'.
55 * (T194605, CVE-2018-0505) SECURITY: BotPasswords can bypass CentralAuth's
56 account lock.
57 * (T199029, CVE-2018-13258) SECURITY: Tarball was missing .htaccess files.
58 * (T197229) Bundle Nuke extension, it was accidentally omitted.
59 * (T193995) Fix undefined patchPath() method call in parser tests.
60 * (T198687) Fix various selectFields methods to use the string 'NULL', not null.
61 * Special:BotPasswords now requires reauthentication.
62 * (T191608, T187638) Add 'logid' parameter to Special:Log.
63 * (T193829) Indicate when a Bot Password needs reset.
64 * (T198037) GitInfo: Don't try shelling out if it's disabled.
65 * (T151415) Log email changes.
66 * (T197206) Fix performance regression when multiple DB used without caching.
67 * (T197030) PHPSessionHandler: Suppress headers warnings in initialize().
68 * (T182377, T196793) Exif: Guard against uncountable tag values.
69 * (T200861) Fix total breakage of SQLite web upgrade.
70 * (T200864) Fix pingback over-reporting on non-MySQL databases
71 * (T202550) Unbreak SpecialListusersHeaderForm and SpecialListusersHeader
72 hooks.
73
74 === Changes since MediaWiki 1.31.0-rc.2 ===
75 * (T195783) Initialize PSR-4 namespaces at same stage as normal autoloader.
76 * (T196092) Hide MySQL binary/utf-8 charset option in the installer.
77 * (T196185) Don't allow setting $wgDBmysql5 in the installer.
78 * (T196125) php-memcached 3.0 (provided with PHP 7.0) is now supported.
79 * (T182366) UploadBase::checkXMLEncodingMissmatch() now works on PHP 7.1+
80 * (T118683) Fix exception from &$user deref on HHVM in the TitleMoveComplete hook.
81 * (T196672) The mtime of extension.json files is now able to be zero
82 * (T180403) Validate $length in padleft/padright parser functions.
83 * (T143790) Make $wgEmailConfirmToEdit only affect edit actions.
84
85 === Changes since MediaWiki 1.31.0-rc.0 ===
86 * (T33223) Drop archive.ar_text and ar_flags.
87 * Add default edit rate limit of 90 edits/minute for all users.
88 * (T187645) Use codepoint as tiebreaker when getting first-letters in
89 IcuCollation.
90 * (T191947) Don't shell during the installer if shelling out is disabled.
91 * (T194319) Improve duplicate config setting exception as part of extension
92 registration.
93 * (T195211) Don't require trailing slash in PSR-4 autoloader directory.
94 * (T186565) Fix PHP Notice from `ob_end_flush()` in `FileRepo::streamFile()`.
95 * Do not incorrectly hide namespace input field in the installer.
96 * (T186456) Refactor checks looking for PEAR maik libraries to be clearer.
97
98 === Important pre-upgrade notes for 1.31 ===
99 * If you're using MySQL, SQLite, or MSSQL, are not using update.php to apply
100 schema changes, and cannot have downtime to run migrateArchiveText.php and
101 apply patch-drop-ar_text.sql manually, you'll have to apply a default value
102 to the ar_text and ar_flags columns of the archive table or make those
103 columns nullable before upgrading to MediaWiki 1.31.
104 maintenance/archives/patch-nullable-ar_text.sql shows how to do this for MySQL.
105 * The CologneBlue and Modern skins are no longer bundled with the tarball. You
106 will need to remove the wfLoadSkin() calls from your LocalSettings.php or
107 download them separately
108 (<https://www.mediawiki.org/wiki/Special:SkinDistributor>).
109
110 === Configuration changes in 1.31 ===
111 * $wgEnableAPI and $wgEnableWriteAPI are now deprecated and will be removed in
112 a future version. The API is now considered to be stable, secure and
113 essential.
114 * $wgUsejQueryThree was removed, as it is now the default. This was documented
115 as a temporary variable during the migration period, deprecated since 1.29.
116 * $wgLogoHD has been updated to support svg images and uses $wgLogo where
117 possible for fallback images such as png.
118 * (T44246) $wgFilterLogTypes will no longer ignore 'patrol' when user does not
119 have the right to mark things patrolled.
120 * Wikis that contain imported revisions or CentralAuth global blocks should run
121 maintenance/cleanupUsersWithNoId.php.
122 * The configuration settings $wgResourceLoaderMinifierStatementsOnOwnLine and
123 $wgResourceLoaderMinifierMaxLineLength, deprecated since 1.27, were removed.
124 * (T180921) $wgReferrerPolicy now supports having fallbacks for browsers that
125 are not using the latest version of the Referrer Policy specification.
126 * $wgFragmentMode is now set to [ 'legacy', 'html5' ] by default. This is a
127 first step of migration to human-readable section IDs that will later result
128 in 'html5' being the default mode.
129 * CACHE_ACCEL now only supports APC(u) or WinCache. XCache support was removed
130 as upstream is inactive and has no plans to move to PHP 7.
131 * The old CategorizedRecentChanges feature, including its related configuration
132 option $wgAllowCategorizedRecentChanges, has been removed.
133 * (T188472) The 'comma' value for $wgArticleCountMethod is no longer supported
134 for performance reasons, and installations with this setting will now work as
135 if it was configured with 'any'.
136 * (T185753) MediaWiki now defaults to using RemexHtml to tidy up user input,
137 rather than being off by default. If you wish to disable HTML tidying
138 entirely, set $wgTidyConfig to null; if you wish to use the old, deprecated
139 Tidy external binary, both set $wgTidyConfig to null and $wgUseTidy to true.
140 * $wgLogAutopatrol now defaults to false instead of true.
141 * $wgValidateAllHtml was removed and will be ignored.
142 * $wgScriptExtension, deprecated and ignored since 1.25, was removed. See the
143 1.25 release notes for more information.
144 * $wgUseAjax is now marked as deprecated, just like the deprecated AJAX
145 framework that it enables. Some extensions mistakenly used this to check
146 whether any AJAX functionality at all should be enabled, further making this
147 problematic to retain.
148 * $wgDBmysql5 is now deprecated, and will be removed in a future version. It
149 has been marked as experimental ever since it was introduced.
150
151 === New features in 1.31 ===
152 * (T76554) User sub-pages named ….json are now protected in the same way that
153 ….js and ….css pages are, so that configuration options can safely be placed
154 there.
155 * Wikimedia\Rdbms\IDatabase->select() and similar methods now support joins
156 with parentheses for grouping.
157 * As a first pass in standardizing dialog boxes across the MediaWiki product,
158 Html class now provides helper methods for messageBox, successBox, errorBox
159 and warningBox generation.
160 * (T9240) Imports will now record unknown (and, optionally, known) usernames in
161 a format like "iw>Example".
162 * (T20209) Linker (used on history pages, log pages, and so on) will display
163 usernames formed like "iw>Example" as interwiki links, as if by wikitext like
164 [[iw:User:Example|iw>Example]].
165 * (T111605) The 'ImportHandleUnknownUser' hook allows extensions to auto-create
166 users during an import.
167 * Added a hook, ParserOutputPostCacheTransform, to allow extensions to affect
168 the ParserOutput::getText() post-cache transformations.
169 * Added a hook, UploadForm:getInitialPageText, to allow extensions to alter the
170 initial page text for file uploads.
171 * (T181651) The info page for File pages now displays the file's base-16 SHA1
172 hash value in the table of basic information.
173 * Style tags with a 'data-mw-deduplicate' attribute will be deduplicated as a
174 ParserOutput::getText() post-cache transformation. This may be disabled by
175 passing 'deduplicateStyles' => false to that method.
176 * The identity of the logged-in or IP "actor" for logged actions is being moved
177 into a new actor table, with the rows in tables such as revision and logging
178 referring to the actor ID instead of storing the user ID and name/IP in
179 every row.
180 * This is currently gated by $wgActorTableSchemaMigrationStage. Most wikis
181 can set this to MIGRATION_NEW and run maintenance/migrateActors.php as
182 soon as any necessary extensions are updated.
183 * Most code accessing rows for logged actions from the database should use
184 the relevant getQueryInfo() methods to get the information needed to build
185 the SQL query. The ActorMigration class may also be used to get feature
186 -flagged information needed to access actor-related fields during the
187 migration period.
188 * Added Wikimedia\Rdbms\IDatabase::cancelAtomic(), to roll back an atomic
189 section without having to roll back the whole transaction.
190 * Wikimedia\Rdbms\IDatabase::doAtomicSection(), non-native ::insertSelect(),
191 and non-MySQL ::replace() and ::upsert() no longer roll back the whole
192 transaction on failure.
193 * (T189785) Added a monthly heartbeat ping to the pingback feature.
194 * The CLI installer (maintenance/install.php) learned to detect and include
195 extensions. Pass --with-extensions to enable that feature.
196 * (T184791) rc_patrolled now has three states: "0" for unpatrolled,
197 "1" for manually patrolled and "2" for autopatrolled actions.
198 * Extensions can now set their type to "editor" if they provide an editor or
199 enhance the editing experience.
200 * Extensions can use a PSR-4 autoloader by setting an "AutoloadNamespaces"
201 property in extension.json. See the documentation at
202 <https://mediawiki.org/wiki/Manual:Extension.json/Schema#AutoloadNamespaces>
203 for more details and an example.
204 * (T19099) Tabs which link to pages that don't exist (like those to uncreated
205 discussion pages) now have a tooltip to indicate state, not just colour.
206
207 === External library changes in 1.31 ===
208 * pear/mail, pear/mail_mime and pear/mail_mime-decode have been moved from
209 suggested to required. These packages now must be installed via composer
210 and not via PEAR itself.
211
212 ==== Upgraded external libraries ====
213 * Updated jquery.chosen from v0.9.14 to v1.8.2.
214 * Updated composer/spdx-licenses from 1.1.4 to 1.3.0 (development dependency).
215 * Updated nikic/php-parser from 2.1.0 to 3.1.3 (development dependency).
216 * Updated wikimedia/ip-set from 1.1.0 to 1.2.0.
217 * Updated wikimedia/relpath from 2.0.0 to 2.1.1.
218 * Updated wikimedia/running-stat from 1.1.0 to 1.2.0.
219 * Updated wikimedia/wrappedstring from 2.2.0 to 2.3.0.
220 * Updated mediawiki/at-ease from 1.1.0 to 1.2.0.
221 * Updated wikimedia/php-session-serializer from 1.0.4 to 1.0.6.
222 * Updated wikimedia/remex-html from 1.0.2 to 1.0.3.
223 * Updated wikimedia/html-formatter from 1.0.1 to 1.0.2.
224
225 ==== New external libraries ====
226 * Added wikimedia/object-factory 1.0.0
227
228 ==== Removed and replaced external libraries ====
229 * (T17845) The deprecated 'jquery.badge' module was removed.
230 * The deprecated 'jquery.autoEllipsis' module was removed. Use the CSS
231 text-overflow property instead.
232 * The deprecated 'jquery.placeholder' module was removed.
233 * The deprecated 'jquery.appear' module was removed. Use the
234 'mediawiki.viewport' module instead.
235 * mediawiki/at-ease was replaced with wikimedia/at-ease.
236
237 === Bug fixes in 1.31 ===
238 * (T90902) Non-breaking space in header ID breaks anchor.
239 * (T189375) CSSMin now allows quoted urls in `url()` syntax to start with a
240 space.
241 * (T2087, T10897, T87753, T174639) Whitespace created by category and language
242 links is now stripped rather than leaving blank lines in odd places.
243 * (T3780) Uploads with UTF-8 names now work on PHP7.1+ on Windows servers.
244 * (T182366) UploadBase::checkXMLEncodingMissmatch() now works on PHP 7.1+
245
246 === Action API changes in 1.31 ===
247 * (T185058) The 'name' value to tgprop for action=query&list=tags has been
248 removed. It has never made a difference in the output, the name was always
249 returned regardless.
250 * The 'watch' and 'unwatch' parameters for action=move have been removed. They
251 were deprecated and also accidentally nonfunctional since 1.17 in 2010. Use
252 'watchlist' instead.
253
254 === Action API internal changes in 1.31 ===
255 * ApiBase::getProfileDBTime, deprecated since 1.25, was removed.
256 * ApiBase::getModuleProfileName, deprecated since 1.25, was removed.
257 * ApiBase::getProfileTime, deprecated since 1.25, was removed.
258
259 === Languages updated in 1.31 ===
260 MediaWiki supports over 350 languages. Many localisations are updated
261 regularly. Below only new and removed languages are listed, as well as
262 changes to languages because of Phabricator reports.
263
264 * (T180052) Mirandese (mwl) now supports gendered NS_USER/NS_USER_TALK.
265 * (T182305) New language support: Nyungar (nys).
266 * (T186359) New language support: Siberian Tatar [cебертатар] (sty).
267 * (T186635) New language support: Guianan Creole (gcr).
268 * (T186647) New language support: Kumyk [къумукъ] (kum).
269 * (T187750) New language support: Spanish formal address (es-formal).
270 * (T187824) New language support: Hungarian formal address (hu-formal).
271 * (T189127) New language support: Gorontalo (gor).
272
273 === Breaking changes in 1.31 ===
274 * MessageBlobStore::insertMessageBlob(), deprecated in 1.27, was removed.
275 * The OutputPage class constructor now requires a context parameter.
276 Instantiating without context was deprecated in 1.18.
277 * The mw.page JavaScript singleton, deprecated in 1.30, was removed.
278 * Article::getLastPurgeTimestamp(), WikiPage::getLastPurgeTimestamp(), and the
279 related WikiPage::PURGE_* constants, deprecated in 1.29, were removed.
280 * The Article::selectFields(), ::onArticleCreate(), ::onArticleDelete(), and
281 ::onArticleEdit() methods, deprecated in 1.24, were removed.
282 * Installer::locateExecutable() and ::locateExecutableInDefaultPaths() were
283 removed. Use ExecutableFinder::findInDefaultPaths() instead.
284 * The deprecated MW_DIFF_VERSION constant was removed.
285 DifferenceEngine::MW_DIFF_VERSION should be used instead.
286 * Due to significant refactoring, method ContribsPager::getUserCond() that had
287 no access restriction has been removed.
288 * The Block class will no longer accept usable-but-missing usernames for
289 'byText' or ->setBlocker(). Callers should either ensure the blocker exists
290 locally or use a new interwiki-format username like "iw>Example".
291 * The following methods and constants from the WatchedItem class, which were
292 deprecated in 1.27, have been removed:
293 * WatchedItem::getTitle()
294 * WatchedItem::fromUserTitle()
295 * WatchedItem::addWatch()
296 * WatchedItem::removeWatch()
297 * WatchedItem::isWatched()
298 * WatchedItem::duplicateEntries()
299 * WatchedItem::IGNORE_USER_RIGHTS
300 * WatchedItem::CHECK_USER_RIGHTS
301 * WatchedItem::DEPRECATED_USAGE_TIMESTAMP
302 * The $statementsOnOwnLine parameter of JavaScriptMinifier::minify was removed.
303 $wgResourceLoaderMinifierStatementsOnOwnLine, the corresponding configuration
304 variable, has been deprecated since 1.27 and was removed as well.
305 * The $maxLineLength parameter of JavaScriptMinifier::minify was removed.
306 $wgResourceLoaderMinifierMaxLineLength, the corresponding configuration
307 variable, has been deprecated since 1.27 and was removed as well.
308 * The HtmlFormatter class, deprecated in 1.27, was removed. The namespaced
309 HtmlFormatter\HtmlFormatter class should be used instead.
310 * The driver 'mysql' for MySQL, deprecated in MediaWiki 1.30, has been removed.
311 The driver has been deprecated since PHP 5.5 and was removed in PHP 7.0. The
312 default driver for MySQL has been 'mysqli' since MediaWiki 1.22.
313 * The following properties of PreparedEdit were deprecated in 1.21 and have
314 been removed:
315 * PreparedEdit->newText
316 * PreparedEdit->oldText
317 * PreparedEdit->pst
318 * ParserOutput objects which are generated using a non-default value for
319 ParserOptions::setWrapOutputClass() can no longer be added to the parser
320 cache.
321 * The following deprecated methods from the OutputPage class have been removed:
322 * OutputPage::addExtensionStyle(); deprecated in 1.27
323 * OutputPage::getExtStyle(); deprecated in 1.27
324 * OutputPage::setETag(); deprecated in 1.28 (obsolete no-op)
325 * OutputPage::setSquidMaxage(); deprecated in 1.27
326 * OutputPage::readOnlyPage(); deprecated in 1.25
327 * OutputPage::rateLimited(); deprecated in 1.25
328 * Additionally, the protected OutputPage::$mExtStyles array, only accessed
329 through the above and with no known uses, was removed.
330 * The no-op method Skin::showIPinHeader(), deprecated in 1.27, was removed.
331 * The following variables and methods in EditPage, deprecated in MediaWiki 1.30,
332 were removed:
333 * $isCssJsSubpage — use ::isUserConfigPage()
334 * $isCssSubpage — use ::isUserCssConfigPage()
335 * $isJsSubpage — use ::isUserJsConfigPage()
336 * $isWrongCaseCssJsPage – use ::isWrongCaseUserConfigPage()
337 * ::getSummaryInput() – use ::getSummaryInputWidget()
338 * ::getSummaryInputOOUI() – use ::getSummaryInputWidget()
339 * ::getCheckboxes() – use ::getCheckboxesWidget() or
340 ::getCheckboxesDefinition()
341 * ::getCheckboxesOOUI() – use ::getCheckboxesWidget() or
342 ::getCheckboxesDefinition()
343 * ResourceLoaderModule::getPosition(), deprecated in 1.29, has been removed.
344 * In User, the cookie-related methods which were wrappers for the functions on
345 the response object, and were deprecated in 1.27, have been removed:
346 * ::setCookie()
347 * ::clearCookie()
348 * ::setExtendedLoginCookie()
349 Note that User::setCookies() remains, and is not deprecated.
350 * Also in User, some auth-related methods which were deprecated in 1.27 have
351 been removed:
352 * ::getEditTokenTimestamp() – use MediaWiki\Session\Token::getTimestamp()
353 * ::getPasswordFactory() – create a PasswordFactory directly
354 * ::passwordChangeInputAttribs()
355 * The global functions wfProfileIn and wfProfileOut, deprecated in 1.25, have
356 been removed.
357 * SpecialPageFactory::getList(), deprecated in 1.24, has been removed. You can
358 use ::getNames() instead.
359 * OpenSearch::getOpenSearchTemplate(), deprecated in 1.25, has been removed. You
360 can use ApiOpenSearch::getOpenSearchTemplate() instead.
361 * The global function wfBaseConvert, deprecated in 1.27, has been removed. Use
362 Wikimedia\base_convert() directly.
363 * Calling Database::begin() explicitly during an implicit transaction or when
364 DBO_TRX is set results in an exception. Calling Database::commit() explicitly
365 for an implicit transaction also results in an exception. Previously these
366 were logged as errors. The startAtomic() and endAtomic() methods, or
367 AtomicSectionUpdate should be used instead.
368 * The global function wfOutputHandler() was removed, use the its replacement
369 MediaWiki\OutputHandler::handle() instead. The global function was only
370 sometimes defined. Its replacement is always available via the autoloader.
371 * ChangeTags::listExtensionActivatedTags and ::listExtensionDefinedTags,
372 deprecated in 1.28, have been removed. Use ::listSoftwareActivatedTags() and
373 ::listSoftwareDefinedTags() instead.
374 * Title::getTitleInvalidRegex(), deprecated in 1.25, has been removed. You can
375 use MediaWikiTitleCodec::getTitleInvalidRegex() instead.
376 * HTMLForm & VFormHTMLForm::isVForm(), deprecated in 1.25, have been removed.
377 * The ProfileSection class, deprecated in 1.25 and unused, has been removed.
378 * The ResourceLoaderGetLessVars hook, deprecated in 1.30, has been removed. Use
379 ResourceLoaderModule::getLessVars() to expose local variables instead of
380 global ones.
381 * As part of work to modernise user-generated content clean-up, a config option
382 and some methods related to HTML validity were removed without deprecation.
383 The public methods MWTidy::checkErrors() and the path through which it was
384 called, TidyDriverBase::validate(), are removed, as are the testing methods
385 MediaWikiTestCase::assertValidHtmlSnippet() and ::assertValidHtmlDocument().
386 The $wgValidateAllHtml configuration option is removed and will be ignored.
387 * Execution of external programs using MediaWiki\Shell\Command now applies
388 the RESTRICT_DEFAULT Firejail restriction by default.
389 * The ResourceLoaderModule::getHashMtime() and ::getDefinitionMtime() methods,
390 deprecated in 1.26, were removed.
391 * The deprecated 'mediawiki.widgets.CategorySelector' module alias was removed.
392 Use the 'mediawiki.widgets.CategoryMultiselectWidget' module directly.
393
394 === Deprecations in 1.31 ===
395 * The Revision class was deprecated in favor of RevisionStore, BlobStore, and
396 RevisionRecord and its subclasses.
397 * The global function wfBCP47 is deprecated in favour of LanguageCode::bcp47.
398 * The global function wfCountDown is now deprecated in favor of
399 Maintenance::countDown.
400 * Several methods for returning lists of fields to select from the database
401 have been deprecated in favor of similar methods that also return the tables
402 to select from and the join conditions for those tables.
403 * Block::selectFields() → Block::getQueryInfo()
404 * RecentChange::selectFields() → RecentChange::getQueryInfo()
405 * ArchivedFile::selectFields() → ArchivedFile::getQueryInfo()
406 * LocalFile::selectFields() → LocalFile::getQueryInfo()
407 * LocalFile::getCacheFields() with a prefix no longer works
408 * LocalFile::getLazyCacheFields() with a prefix no longer works
409 * OldLocalFile::selectFields() → OldLocalFile::getQueryInfo()
410 * RecentChange::selectFields() → RecentChange::getQueryInfo()
411 * Revision::userJoinCond() → Revision::getQueryInfo( [ 'user' ] )
412 * Revision::selectUserFields() → Revision::getQueryInfo( [ 'user' ] )
413 * Revision::pageJoinCond() → Revision::getQueryInfo( [ 'page' ] )
414 * Revision::selectPageFields() → Revision::getQueryInfo( [ 'page' ] )
415 * Revision::selectTextFields() → Revision::getQueryInfo( [ 'text' ] )
416 * Revision::selectFields() → Revision::getQueryInfo()
417 * Revision::selectArchiveFields() → Revision::getArchiveQueryInfo()
418 * User::selectFields() → User::getQueryInfo()
419 * WikiPage::selectFields() → WikiPage::getQueryInfo()
420 * Revision::setUserIdAndName() was deprecated.
421 * Access to TitleValue class properties was deprecated, the relevant getters
422 should be used instead.
423 * DifferenceEngine::getDiffBodyCacheKey() is deprecated. Subclasses should
424 override DifferenceEngine::getDiffBodyCacheKeyParams() instead.
425 * Use of Maintenance::error( $err, $die ) to exit script was deprecated. Use
426 Maintenance::fatalError() instead.
427 * Passing a ParserOptions object to OutputPage::parserOptions() is deprecated.
428 * The RevisionInsertComplete hook is now deprecated; use instead the hook
429 RevisionRecordInserted. RevisionInsertComplete is still called, but the second
430 and third parameter will always be null. Hard deprecation is scheduled for 1.32.
431 * The following methods that get and set ParserOutput state are deprecated.
432 Callers should use the new stateless $options parameter to
433 ParserOutput::getText() instead.
434 * ParserOptions::getEditSection()
435 * ParserOptions::setEditSection()
436 * ParserOutput::getEditSectionTokens()
437 * ParserOutput::setEditSectionTokens()
438 * ParserOutput::getTOCEnabled()
439 * ParserOutput::setTOCEnabled()
440 * OutputPage::enableSectionEditLinks()
441 * OutputPage::sectionEditLinksEnabled()
442 * The public ParserOutput state fields $mTOCEnabled and $mEditSectionTokens
443 are also deprecated.
444 * License::getLicenses has been deprecated; use License::getLines instead.
445 * QuickTemplate::setRef() was deprecated in favour of QuickTemplate::set().
446 Setting template variables by reference allowed violating the principle of
447 data being immutable once added to the skin template. In practice, this method
448 was not being used for that. Rather, setRef() existed as memory optimisation
449 for PHP 4.
450 * QuickTemplate::setTranslator() and MediaWikiI18N::set() were deprecated in
451 favour of Skin::msg() parameters.
452 * MediaWikiI18N::translate() was deprecated in favour of Skin::msg() or
453 wfMessage().
454 * Passing false to ParserOptions::setWrapOutputClass() is deprecated. Use the
455 'unwrap' transform to ParserOutput::getText() instead.
456 * \ObjectFactory (no namespace) is deprecated, the namespaced class
457 \Wikimedia\ObjectFactory from the wikimedia/object-factory library should be
458 used instead.
459 * CommentStore::newKey is deprecated. Instead, get an instance from
460 MediaWikiServices.
461 * The following CommentStore methods have had their signatures changed to
462 introduce a $key parameter, usage of the methods on instances retrieved from
463 CommentStore::newKey will remain unchanged but deprecated:
464 * CommentStore::getFields
465 * CommentStore::getJoin
466 * CommentStore::getComment
467 * CommentStore::getCommentLegacy
468 * CommentStore::insert
469 * CommentStore::insertWithTemplate
470 * The following methods in Title have been renamed, and the old ones are
471 deprecated:
472 * Title::getSkinFromCssJsSubpage – use ::getSkinFromConfigSubpage
473 * Title::isCssOrJsPage – use ::isSiteConfigPage
474 * Title::isCssJsSubpage – use ::isUserConfigPage
475 * Title::isCssSubpage – use ::isUserCssConfigPage
476 * Title::isJsSubpage – use ::isUserJsConfigPage
477 * The following methods related to caching of half-parsed HTML were deprecated:
478 * Parser::serializeHalfParsedText()
479 * Parser::unserializeHalfParsedText()
480 * Parser::isValidHalfParsedText()
481 * StripState::getSubState()
482 * StripState::merge()
483 * The DeferredStringifier class is deprecated, use Message::listParam() instead.
484 * The type string for the parameter $lang of DateFormatter::getInstance is
485 deprecated.
486 * Wikimedia\Rdbms\SavepointPostgres is deprecated.
487 * The DO_MAINTENANCE constant is deprecated. RUN_MAINTENANCE_IF_MAIN should be
488 used instead.
489 * The function wfShellWikiCmd() has been deprecated, use
490 MediaWiki\Shell::makeScriptCommand().
491 * In the future, the hooks 'PreferencesFormPreSave' and 'PreferencesGetLegend'
492 will be allowed to provide any HTMLForm object rather than PreferencesForm.
493
494 === Other changes in 1.31 ===
495 * Browser support for Internet Explorer 10 was lowered from Grade A to Grade C.
496 * Browser support for Opera 12 and older was dropped entirely. Opera 15+
497 continues at Grade A.
498 * Multi-content-revision capability was introduced into the storage layer. See
499 <https://mediawiki.org/wiki/Requests_for_comment/Multi-Content_Revisions>.
500 * The "free" CSS class is now only applied to unbracketed URLs in wikitext.
501 Links written using square brackets will get the class "text" not "free".
502 * RFC 157418: Whitespace is trimmed from wikitext headings, wikitext list items,
503 wikitext table captions, wikitext table headings, wikitext table cells. HTML
504 headings, HTML list items, HTML table captions, HTML table headings, HTML
505 table cells will not have this trimming behavior.
506
507 == Compatibility ==
508 MediaWiki 1.31 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is
509 supported, it is generally advised to use PHP 7.0.0 or later for long term
510 support. MediaWiki requires that the mbstring, xml, ctype, json, iconv and
511 fileinfo PHP extensions are loaded to work.
512
513 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
514 but support for them is somewhat less mature. There is experimental support for
515 Oracle and Microsoft SQL Server.
516
517 The supported versions are:
518
519 * MySQL 5.5.8 or later
520 * PostgreSQL 9.2 or later
521 * SQLite 3.3.7 or later
522 * Oracle 9.0.1 or later
523 * Microsoft SQL Server 2005 (9.00.1399)
524
525 == Upgrading ==
526 1.31 has several database changes since 1.30, and will not work without schema
527 updates. Note that due to changes to some very large tables like the revision
528 table, the schema update may take quite long (minutes on a medium sized site,
529 many hours on a large site).
530
531 Don't forget to always back up your database before upgrading!
532
533 See the file UPGRADE for more detailed upgrade instructions, including
534 important information when upgrading from versions prior to 1.11.
535
536 For notes on 1.30.x and older releases, see HISTORY.
537
538 == Online documentation ==
539 Documentation for both end-users and site administrators is available on
540 MediaWiki.org, and is covered under the GNU Free Documentation License (except
541 for pages that explicitly state that their contents are in the public domain):
542
543 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
544
545 == Mailing list ==
546 A mailing list is available for MediaWiki user support and discussion:
547
548 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
549
550 A low-traffic announcements-only list is also available:
551
552 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
553
554 It's highly recommended that you sign up for one of these lists if you're
555 going to run a public MediaWiki, so you can be notified of security fixes.
556
557 == IRC help ==
558 There's usually someone online in #mediawiki on irc.freenode.net.