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