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