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