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