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