RELEASE-NOTES-1.34 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. = MediaWiki 1.34 =
  2. == MediaWiki 1.34.0 ==
  3. === Changes since MediaWiki 1.34.0-rc.1 ===
  4. * $wgDiffEngine (T237049) – This configuration can be used to specify which
  5. difference engine to use. MediaWiki continues to default to automatically
  6. choosing the first of $wgExternalDiffEngine, wikidiff2, or php that is
  7. usable.
  8. * (T231866) SqlBlobStore no longer needs Language object.
  9. * (T236735) WikiExporter: Remove unnecessary check for SCHEMA_COMPAT_WRITE_OLD
  10. flag.
  11. * (T231673) Set MCR migration stage to SCHEMA_COMPAT_NEW.
  12. * (T229601) Make sure DBLoadBalancerFactory service is not disabled.
  13. * (T232866) Fix support for HTTP/2 in MultiHttpClient.
  14. * (T231866) LocalisationCache: Don't instantiate ResourceLoader.
  15. * (T227461) Stop calling deprecated Redis delete functions.
  16. * (T239561) Mark options as requiring parameters in addSite.php.
  17. * (T232866) Mimic CURLOPT_POST in GuzzleHttpRequest.
  18. * (T239734) Replace deprecated lSize with lLen in Redis code.
  19. * (T192134) SECURITY: Do not allow user scripts on Special:PasswordReset.
  20. * (T239428) ApiEditPage: Test for bad redirect targets.
  21. * (T233342) rdbms: Log debug message traces as 'exception.trace' instead of
  22. 'trace'.
  23. * (T226751) media: Log and fail gracefully on invalid EXIF coordinates.
  24. * (T240924) NewPagesPager: Fix namespace query conditions.
  25. * (T212067) Tests for an old PHP bug in parse_url.
  26. == MediaWiki 1.34.0-rc.1 ==
  27. === Changes since MediaWiki 1.34.0-rc.0 ===
  28. * (T231742) rdbms: Restore debug toolbar "Queries" feature.
  29. * (T231366) The ProfilerOutputDb class, 'profiling' table, and profileinfo.php
  30. entry point had been deprecated.
  31. * (T234361) localisation: Add debug message for backend of MessageCache.
  32. * (T234361) session: Add debug message for the used store class.
  33. * (T235559) Fix example Kask configuration in RESTBagOStuff class comment.
  34. * (T235137) Don't apply styling for Special:Contributions on other pages.
  35. * Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0 (dev-only).
  36. * (T219604) The "jquery.ui.*" and "jquery.effects.*" modules are now
  37. deprecated as aliases for the "jquery.ui" module.
  38. * (T235392) Deprecate setting Parser::mTitle to null.
  39. * Supporting commits for T235392 were also backported to prevent divergence
  40. from master (MediaWiki 1.35).
  41. * (T234581) The 'jquery.tabIndex' module is deprecated.
  42. * Fix docs for GetUserBlock hooks.
  43. * Parser: Hard deprecate getConverterLanguage.
  44. * (T236810) A number of public methods of Parser were exposed only for
  45. historical reasons and have been deprecated: doMagicLinks,
  46. doDoubleUnderscore, doHeadings, doAllQuotes, replaceExternalLinks,
  47. replaceInternalLinks, replaceInternalLinks2, getVariableValue,
  48. initialiseVariables, formatHeadings, testPst, testPreprocess, testSrvus,
  49. areSubpagesAllowed, maybeDoSubpageLink, splitWhitespace, createAssocArgs,
  50. armorLinks, makeKnownLinkHolder, getImageParams, parseLinkParameter,
  51. stripAltText, replaceLinkHolders, replaceLinkHoldersText, armorLinks,
  52. makeKnownLinkHolder, getImageParams, parseLinkParameter, stripAltText.
  53. * (T30798) $wgServer must now always be set in LocalSettings.php. This is most
  54. likely the case already for any wiki installed after 1.18. The autodetection
  55. system was informally deprecated since 1.18 and vulnerable to cache poisoning
  56. attacks. Older wikis may need to update their LocalSettings.php file.
  57. * (T232169) Hard deprecate $wgSysopEmailBans.
  58. * (T236628) Fix for ArticleRevisionViewCustom hook in DifferenceEngine.php.
  59. * (T181658) Do not insert page titles into querycache.qc_value.
  60. * ParamValidator has been flagged as unstable.
  61. * Hard deprecate Parser::disableCache().
  62. == MediaWiki 1.34.0-rc.0 ==
  63. == Upgrading notes for 1.34 ==
  64. 1.34 has several database changes since 1.33, and will not work without schema
  65. updates. Note that due to changes to some very large tables like the revision
  66. table, the schema update may take quite long (minutes on a medium sized site,
  67. many hours on a large site).
  68. Don't forget to always back up your database before upgrading!
  69. See the file UPGRADE for more detailed upgrade instructions, including
  70. important information when upgrading from versions prior to 1.11.
  71. Some specific notes for MediaWiki 1.34 upgrades are below:
  72. * MediaWiki now requires PHP 7.2.9 or above.
  73. * MediaWiki no longer supports HHVM.
  74. For notes on 1.33.x and older releases, see HISTORY.
  75. === Configuration changes for system administrators in 1.34 ===
  76. In an effort to enforce best practices for passwords, MediaWiki will now warn
  77. users, and suggest that they change their password, if it is in the list of
  78. 100,000 commonly used passwords that are considered bad passwords. If you want
  79. to disable this for your users, please add the following to your local settings:
  80. $wgPasswordPolicy['policies']['default']['PasswordNotInLargeBlacklist'] = false;
  81. ==== New configuration ====
  82. * $wgAllowExternalReqID (T201409) - This configuration setting controls whether
  83. Mediawiki accepts the request ID set by the incoming request via the
  84. `X-Request-Id` header. If set to `true`, that value will be used throughout
  85. the code as the request identificator. Otherwise, the sent header will be
  86. ignored and the request ID will either be taken from Apache's mod_unique
  87. module or will be generated by Mediawiki itself (depending on the set-up).
  88. * $wgEnableSpecialMute (T218265) - This configuration controls whether
  89. Special:Mute is available and whether to include a link to it on emails
  90. originating from Special:Email.
  91. * editmyuserjsredirect user right – users without this right now cannot edit JS
  92. redirects in their userspace unless the target of the redirect is also in
  93. their userspace. By default, this right is given to everyone.
  94. * (T226733) Add rate limiter to Special:ConfirmEmail.
  95. * $wgDiffEngine (T237049) – This configuration can be used to specify which
  96. difference engine to use. MediaWiki continues to default to automatically
  97. choosing the first of $wgExternalDiffEngine, wikidiff2, or php that is
  98. usable.
  99. ==== Changed configuration ====
  100. * $wgUseCdn, $wgCdnServers, $wgCdnServersNoPurge, and $wgCdnMaxAge – These four
  101. CDN-related config variables have been renamed from being specific to Squid –
  102. they were previously $wgUseSquid, $wgSquidServers, $wgSquidServersNoPurge, and
  103. $wgSquidMaxage respectively. This aligns them with the related existing
  104. variable $wgCdnMaxageLagged. The previous configuration variable names are
  105. deprecated, but will be used as the fall back if they are still set.
  106. Note that wgSquidPurgeUseHostHeader has not been renamed, as it is deprecated.
  107. * (T27707) File type checks for image uploads have been relaxed to allow files
  108. containing some HTML markup in metadata. As a result, the $wgAllowTitlesInSVG
  109. setting is no longer applied and is now always true. Note that MSIE 7 may
  110. still be able to misinterpret certain malformed PNG files as HTML.
  111. * (T30798) $wgServer must now always be set in LocalSettings.php. This is most
  112. likely the case already for any wiki installed after 1.18. The autodetection
  113. system was informally deprecated since 1.18 and vulnerable to cache poisoning
  114. attacks. Older wikis may need to update their LocalSettings.php file.
  115. * Introduced $wgVerifyMimeTypeIE to allow disabling the MSIE 6/7 file type
  116. detection heuristic on upload, which is more conservative than the checks
  117. that were changed above.
  118. * $wgExternalDiffEngine — Setting this to a string value of 'wikidiff',
  119. 'wikidiff2', or 'wikidiff3' will no longer work. This legacy behaviour was
  120. deprecated in MediaWiki 1.27, 1.32, and 1.27, respectively.
  121. * $wgSkipSkin — Setting this instead of $wgSkipSkins, deprecated in 1.23, is now
  122. hard-deprecated.
  123. * $wgLocalInterwiki — Setting this instead of $wgLocalInterwikis, deprecated in
  124. 1.23, is now hard-deprecated.
  125. * $wgProfileOnly — Setting this, deprecated in 1.23, is now hard-deprecated.
  126. Instead, set the log file in $wgDebugLogGroups['profileoutput'].
  127. * $wgProxyList — Setting this to an array with IP addresses in the array keys,
  128. which was deprecated in 1.30, no longer works. Instead, $wgProxyList should be
  129. an array with IP addresses as the values, or a string path to a file
  130. containing one IP address per line.
  131. * $wgCookieSetOnAutoblock and $wgCookieSetOnIpBlock are now enabled by default.
  132. ==== Removed configuration ====
  133. * $wgWikiDiff2MovedParagraphDetectionCutoff — If you still want a custom change
  134. size threshold, please specify in php.ini, using the configuration variable
  135. wikidiff2.moved_paragraph_detection_cutoff.
  136. * $wgUseESI - This experimental setting, deprecated in 1.33, is now removed.
  137. * $wgDebugPrintHttpHeaders - The default of including HTTP headers in the
  138. debug log channel is no longer configurable. The debug log itself remains
  139. configurable via $wgDebugLogFile.
  140. * $wgMsgCacheExpiry - The MessageCache uses 24 hours as the expiry for values
  141. stored in WANObjectCache. This is no longer configurable.
  142. * $wgPasswordSalt – This setting, used for migrating exceptionally old, insecure
  143. password setups and deprecated since 1.24, is now removed.
  144. * $wgDBOracleDRCP - If you must use persistent connections, set DBO_PERSISTENT
  145. in the 'flags' field for servers in $wgDBServers (or $wgLBFactoryConf).
  146. * $wgMemCachedDebug - Set the cache "debug" field in $wgObjectCaches instead.
  147. * $wgActorTableSchemaMigrationStage has been removed. Extension code for
  148. MediaWiki 1.31+ finding it unset should treat it as being SCHEMA_COMPAT_NEW.
  149. === New user-facing features in 1.34 ===
  150. * Special:Mute has been added as a quick way for users to block unwanted emails
  151. from other users originating from Special:EmailUser.
  152. * (T207577) Special:NewSection has been created as a shortcut to creating a new
  153. section on a page. When linked to, its subpage is used as the target
  154. ([[Special:NewSection/Test]] redirects to creating a new section in "Test").
  155. Otherwise, it displays a basic interface to allow the end user to specify
  156. the target manually.
  157. * (T220447) Special:Contributions/newbies has been removed for performance and
  158. usefulness reasons. Use Special:RecentChanges?userExpLevel=newcomer instead.
  159. * Special:NewFiles/newbies has been removed for performance and usefulness
  160. reasons. Use Special:RecentChanges?userExpLevel=newcomer&namespace=6 instead.
  161. === New developer features in 1.34 ===
  162. * The ImgAuthModifyHeaders hook was added to img_auth.php to allow modification
  163. of headers in private wikis.
  164. * Language::formatTimePeriod now supports the new 'avoidhours' option to output
  165. strings like "5 days ago" instead of "5 days 13 hours ago".
  166. * (T220163) Added SpecialMuteModifyFormFields hook to allow extensions
  167. to add fields to Special:Mute.
  168. * (T100896) Skin authors can define custom OOUI themes using OOUIThemePaths.
  169. See <https://www.mediawiki.org/wiki/OOUI/Themes> for details.
  170. * (T229035) The GetUserBlock hook was added. Use this instead of
  171. GetBlockedStatus.
  172. * ObjectFactory is available as a service. When used as a service, the object
  173. specs can now specify needed DI services.
  174. * (T222388) Special pages can now be specified as an ObjectFactory spec,
  175. allowing the construction of special pages that require services to be
  176. injected in their constructor.
  177. * (T222388) API modules can now be specified as an ObjectFactory spec,
  178. allowing the construction of modules that require services to be injected
  179. in their constructor.
  180. * (T117736) The function signature of SpecialContributions::getForm::filters
  181. has changed. It now expects definitions of additional filter fields as array
  182. rather than string.
  183. === External library changes in 1.34 ===
  184. ==== Changed external libraries ====
  185. * Updated Mustache from 1.0.0 to v3.0.1.
  186. * Updated OOUI from v0.31.3 to v0.34.0.
  187. * Updated OOjs from v2.2.2 to v3.0.0.
  188. * Updated composer/semver from 1.4.2 to 1.5.0.
  189. * Updated composer/spdx-licenses from 1.4.0 to 1.5.1 (dev-only).
  190. * Updated mediawiki/codesniffer from 25.0.0 to 28.0.0 (dev-only).
  191. * Updated cssjanus/cssjanus from 1.2.1 to 1.3.0.
  192. * Updated wikimedia/at-ease from 1.2.0 to 2.0.0.
  193. * Updated wikimedia/remex-html from 2.0.1 to 2.1.0.
  194. * Updated monolog/monolog from 1.22.1 to 1.24.0 (dev-only).
  195. * Updated wikimedia/object-factory from 1.0.0 to 2.1.0.
  196. * Updated wikimedia/timestamp from 2.2.0 to 3.0.0.
  197. * Updated wikimedia/xmp-reader from 0.6.2 to 0.6.3.
  198. * Updated mediawiki/mediawiki-phan-config from 0.6.0 to 0.6.1 (dev-only).
  199. * Updated wikimedia/avro from 1.8.0 to 1.9.0 (dev-only).
  200. ==== Removed external libraries ====
  201. * The jquery.async module, deprecated in 1.33, was removed.
  202. === Bug fixes in 1.34 ===
  203. * (T222529) If a log entry or page revision is recorded in the database with an
  204. empty username, attempting to display it will log an error and return a "no
  205. username available" to the user instead of silently displaying nothing or
  206. invalid links.
  207. === Action API changes in 1.34 ===
  208. * The 'recenteditcount' response property from action=query list=allusers,
  209. deprecated in 1.25, has been removed.
  210. * (T60993) action=query list=filearchive, list=alldeletedrevisions and
  211. prop=deletedrevisions no longer require the 'deletedhistory' user right.
  212. * In the response to queries that use 'prop=imageinfo', entries for
  213. non-existing files (indicated by the 'filemissing' field) now omit the
  214. following fields, since they are meaningless in this context:
  215. 'timestamp', 'userhidden', 'user', 'userid', 'anon', 'size', 'width',
  216. 'height', 'pagecount', 'duration', 'commenthidden', 'parsedcomment',
  217. 'comment', 'thumburl', 'thumbwidth', 'thumbheight', 'thumbmime',
  218. 'thumberror', 'url', 'sha1', 'metadata', 'extmetadata', 'commonmetadata',
  219. 'mime', 'mediadtype', 'bitdepth'.
  220. Clients that process these fields should first check if 'filemissing' is
  221. set. Fields that are supported even if the file is missing include:
  222. 'canonicaltitle', 'archivename' (deleted files only), 'descriptionurl',
  223. 'descriptionshorturl'.
  224. * The 'blockexpiry' result property in list=users and list=allusers will now be
  225. returned in the same format used by the rest of the API: ISO 8601 for
  226. expiring blocks, and "infinite" for non-expiring blocks.
  227. === Action API internal changes in 1.34 ===
  228. * The exception thrown in ApiModuleManager::getModule has been changed
  229. from an MWException to an UnexpectedValueException, thrown by ObjectFactory.
  230. ApiModuleManager::getModule now also throws InvalidArgumentExceptions when
  231. ObjectFactory is presented with an invalid spec or incorrectly constructed
  232. objects.
  233. * Added ApiQueryBlockInfoTrait.
  234. === Languages updated in 1.34 ===
  235. MediaWiki supports over 350 languages. Many localisations are updated regularly.
  236. Below only new and removed languages are listed, as well as changes to languages
  237. because of Phabricator reports.
  238. * (T152908) Added language support for N'Ko (nqo).
  239. === Breaking changes in 1.34 ===
  240. * The global functions wfSuppressWarnings and wfRestoreWarnings, deprecated in
  241. 1.26, have been removed. Use Wikimedia\AtEase\AtEase::suppressWarnings() and
  242. Wikimedia\AtEase\AtEase::restoreWarnings() directly.
  243. * Preferences class, deprecated in 1.31, has been removed.
  244. * The following parts of code, deprecated in 1.32, were removed in favor of
  245. built-in PHP functions:
  246. * CryptRand class
  247. * CryptRand service
  248. * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
  249. * Various Special Page PHP Classes were renamed (mostly casing changes):
  250. * SpecialAncientpages => SpecialAncientPages
  251. * SpecialConfirmemail => SpecialConfirmEmail
  252. * SpecialDeadendpages => SpecialDeadendPages
  253. * SpecialFewestrevisions => SpecialFewestRevisions
  254. * SpecialListredirects => SpecialListRedirects
  255. * SpecialLonelypages => SpecialLonelyPages
  256. * SpecialLongpages => SpecialLongPages
  257. * SpecialMIMEsearch => SpecialMIMESearch
  258. * SpecialMostcategories => SpecialMostCategories
  259. * SpecialMostinterwikis => SpecialMostInterwikis
  260. * SpecialMostlinked => SpecialMostLinked
  261. * SpecialMostlinkedcategories => SpecialMostLinkedCategories
  262. * SpecialMostlinkedtemplates => SpecialMostLinkedTemplates
  263. * SpecialMostrevisions => SpecialMostRevisions
  264. * SpecialNewimages => SpecialNewFiles
  265. * SpecialShortpages => SpecialShortPages
  266. * SpecialUncategorizedcategories => SpecialUncategorizedCategories
  267. * SpecialUncategorizedimages => SpecialUncategorizedImages
  268. * SpecialUncategorizedpages => SpecialUncategorizedPages
  269. * SpecialUncategorizedtemplates => SpecialUncategorizedTemplates
  270. * SpecialUnusedcategories => SpecialUnusedCategories
  271. * SpecialUnusedimages => SpecialUnusedImages
  272. * SpecialUnusedtemplates => SpecialUnusedTemplates
  273. * SpecialUnwatchedpages => SpecialUnwatchedPages
  274. * SpecialWantedcategories => SpecialWantedCategories
  275. * SpecialWantedtemplates => SpecialWantedTemplates
  276. * SpecialWithoutinterwiki => SpecialWithoutInterwiki
  277. * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
  278. create a new Language object with a different language code.
  279. * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
  280. to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
  281. Instead, reset services, such as by calling $this->overrideMwServices() (if
  282. your test extends MediaWikiTestCase). Services will generally not pick up
  283. configuration changes from after they were created, so you must reset
  284. services after any configuration change. Even if your code works now, it is
  285. likely to break in future versions as more code is moved to services.
  286. * The ill-defined "DatabaseOraclePostInit" hook has been removed.
  287. * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
  288. been removed.
  289. * ObjectFactory class, deprecated in 1.31, has been removed.
  290. * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
  291. * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
  292. * The RedirectSpecialPage::execute method could sometimes return a Title object.
  293. This behavior was removed, and the method now matches the parent signature
  294. (SpecialPage::execute) which is to return HTML string or void.
  295. To obtain the destination title, use RedirectSpecialPage::getRedirect.
  296. * The 'recenteditcount' response property from action API action=query
  297. list=allusers, deprecated in 1.25, has been removed.
  298. * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
  299. SearchEngine::create(), SearchEngine::getSearchTypes() and
  300. SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
  301. * FileRepo::streamFile(), deprecated in 1.26, has been removed.
  302. * User::randomPassword() method, deprecated in 1.27, have been removed.
  303. * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
  304. * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
  305. * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
  306. removed.
  307. * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
  308. * Method signatures in WatchedItemQueryServiceExtension have changed from taking
  309. User objects to taking UserIdentity objects. Extensions implementing this
  310. interface need to be changed accordingly.
  311. * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
  312. removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
  313. * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
  314. UserGroupMembership::getLink() instead.
  315. * SavepointPostgres, deprecated in 1.31, has been removed.
  316. * OutputPage::enableSectionEditLinks(), OutputPage::sectionEditLinksEnabled(),
  317. ParserOptions::getEditSection(), ParserOptions::setEditSection(), and
  318. ParserOutput::getEditSectionTokens, ::getTOCEnabled, ::setEditSectionTokens,
  319. and ::setTOCEnabled, deprecated in 1.31, have been removed.
  320. * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
  321. have been removed.
  322. * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
  323. use OutputPage::showFatalError or throw a FatalError instead. The methods are
  324. ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
  325. ::showFileNotFoundError().
  326. * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
  327. * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
  328. INTL_ICU_VERSION constant directly.
  329. * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
  330. * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
  331. both deprecated in 1.32, have been removed.
  332. * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
  333. been removed. Use ->msg() or ->getMsg() instead.
  334. * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
  335. use WatchAction::getWatchToken() with action 'unwatch' directly.
  336. * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
  337. 1.28, have been removed.
  338. * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
  339. deprecated in 1.32, have been removed.
  340. * OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
  341. in 1.33, have been removed.
  342. * User::getPasswordValidity(), deprecated in 1.33, has been removed.
  343. * ApiQueryBase::prepareUrlQuerySearchString(), deprecated in 1.33, has been
  344. removed.
  345. * ChangeTags::purgeTagUsageCache(), deprecated in 1.33, has been removed.
  346. * JobQueueGroup::pushLazyJobs(), deprecated in 1.33, has been removed.
  347. * MediaWikiTestCase::stashMwGlobals(), deprecated in 1.32, has been removed.
  348. * SearchEngine::transformSearchTerm(), deprecated in 1.32, has been removed.
  349. * The Block typehint only refers to blocks stored in the database. It should be
  350. updated to AbstractBlock in cases where any type of block could be expected.
  351. * FileRepoStatus, deprecated in 1.25, has been removed.
  352. * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
  353. in 1.27, has been removed.
  354. * IP::isValidBlock(), deprecated in 1.30, has been removed.
  355. * WikiPage::prepareContentForEdit now doesn't accept an integer for $revision,
  356. was deprecated in 1.25.
  357. * The jquery.byteLength module, deprecated in 1.31, was removed.
  358. Use the mediawiki.String module instead.
  359. * mw.language.specialCharacters, deprecated in 1.33, has been removed.
  360. Use require( 'mediawiki.language.specialCharacters' ) instead.
  361. * The jquery.colorUtil module was removed. Use jquery.color instead.
  362. * The jquery.checkboxShiftClick module was removed. The functionality
  363. is provided by mediawiki.page.ready instead (T232688).
  364. * The 'jquery.accessKeyLabel' module has been removed. This jQuery
  365. plugin now ships as part of the 'mediawiki.util' module bundle.
  366. * EditPage::submit(), deprecated in 1.29, has been removed. Use $this->edit()
  367. directly.
  368. * HTMLForm::getErrors(), deprecated in 1.28, has been removed. Use
  369. getErrorsOrWarnings() instead.
  370. * SpecialPage::getTitle(), deprecated in 1.23, has been removed. Use
  371. SpecialPage::getPageTitle() instead.
  372. * jquery.ui.effect-bounce, jquery.ui.effect-explode, jquery.ui.effect-fold
  373. jquery.ui.effect-pulsate, jquery.ui.effect-slide, jquery.ui.effect-transfer,
  374. which are no longer used, have now been removed.
  375. * SpecialEmailUser::validateTarget(), ::getTarget() without a sender/user
  376. specified, deprecated in 1.30, have been removed.
  377. * BufferingStatsdDataFactory::getBuffer(), deprecated in 1.30, has been removed.
  378. * The constant DB_SLAVE, deprecated in 1.28, has been removed. Use DB_REPLICA.
  379. * The constants NS_IMAGE and NS_IMAGE_TALK, deprecated in 1.14, have been
  380. removed. Use NS_FILE and NS_FILE_TALK respectively.
  381. * Replacer, DoubleReplacer, HashtableReplacer and RegexlikeReplacer
  382. (deprecated in 1.32) have been removed. Closures should be used instead.
  383. * OutputPage::addWikiText(), ::addWikiTextWithTitle(), ::addWikiTextTitleTidy(),
  384. ::addWikiTextTidy(), ::addWikiTextTitle(), deprecated in 1.32, have been
  385. removed.
  386. * The $wgUseKeyHeader configuration option and the OutputPage::getKeyHeader()
  387. method, deprecated in 1.32, have been removed.
  388. * WebInstallerOutput::addWikiText(), deprecated in 1.32, has been removed.
  389. * Parser::fetchFile(), deprecated in 1.32, has been removed. Use the method
  390. Parser::fetchFileAndTitle() instead.
  391. * The global function wfBCP47, deprecated in 1.31, has been removed.
  392. * wfCountDown() function, deprecated in 1.31, has been removed. Use
  393. \Maintenance::countDown() method instead.
  394. * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
  395. deprecated since 1.20.
  396. * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
  397. * Linker::link() no longer accepts a string for the query array, as was
  398. deprecated in 1.20.
  399. * PrefixSearch::titleSearch(), deprecated in 1.23, has been removed. Use the
  400. SearchEngine::defaultPrefixSearch or ::completionSearch() methods instead.
  401. * The UserRights hook, deprecated in 1.26, has been removed. Instead, use the
  402. UserGroupsChanged hook.
  403. * Skin::getDefaultInstance(), deprecated in 1.27, has been removed. Get the
  404. instance from MediaWikiServices instead.
  405. * The UserLoadFromSession hook, deprecated in 1.27, has been removed.
  406. * The wfResetSessionID global function, deprecated in 1.27, has been removed.
  407. Use MediaWiki\Session\SessionManager instead.
  408. * The wfGetLBFactory global function, deprecated in 1.27, has been removed.
  409. Use MediaWikiServices::getInstance()->getDBLoadBalancerFactory().
  410. * The internal method OutputPage->addScriptFile() will no longer silently drop
  411. calls that use an invalid path (i.e., something other than an absolute path,
  412. protocol-relative URL, or full scheme URL), and will instead pass them to the
  413. client where they will likely 404. This usage was deprecated in 1.24.
  414. * Database::reportConnectionError, deprecated in 1.32, has been removed.
  415. * APIEditBeforeSave hook, deprecated in 1.28, has been removed. Please see
  416. EditFilterMergedContent hook for an alternative way to use this feature.
  417. * API module methods getDescription(), getParamDescription(), & getExamples(),
  418. all deprecated in 1.25 and ignored, have been removed.
  419. * The API module method getDescriptionMessage(), deprecated in 1.30, has been
  420. removed.
  421. * The JavaScript global variable wgLoadScript has been removed. Use
  422. mw.util.wikiScript( 'load' ) instead.
  423. * ResourceLoader no longer creates the 'mw.legacy' placeholder object. It has
  424. been unused since 1.16 and was deprecated in 1.22. To deprecate a property
  425. in JavaScript, use mw.log.deprecate() instead.
  426. * The 'user.groups' module, deprecated in 1.28, was removed.
  427. Use the 'user' module instead.
  428. * The ResourceLoaderContext::expandModuleNames method, deprecated in 1.33, was
  429. removed. Use ResourceLoader::expandModuleNames instead.
  430. * The ability to override User::$mRights has been removed. Use
  431. PermissionManager::addTemporaryUserRights() instead.
  432. * Previously, when iterating ResultWrapper with foreach() or a similar
  433. construct, the range of the index was 1..numRows. This has been fixed to be
  434. 0..(numRows-1).
  435. * The ChangePasswordForm hook, deprecated in 1.27, has been removed. Use the
  436. AuthChangeFormFields hook or security levels instead.
  437. * WikiMap::getWikiIdFromDomain(), deprecated in 1.33, has been removed.
  438. Use WikiMap::getWikiIdFromDbDomain() instead.
  439. * The config variables $wgHtml5, $wgJsMimeType, and $wgXhtmlDefaultNamespace,
  440. which were deprecated and ignored by core since 1.22, are no longer set to any
  441. value, and SkinTemplate no longer emits a 'jsmimetype' key. Any extensions not
  442. updated since 2013 to cope with this deprecation may now break.
  443. * (T222637) Passing ResourceLoaderModule objects to ResourceLoader::register()
  444. or $wgResourceModules is no longer supported.
  445. Use the 'class' or 'factory' option of the array format instead.
  446. * The parameter $lang of the functions generateTOC and tocList in Linker and
  447. DummyLinker must be in type Language when present. Other types are
  448. deprecated since 1.33.
  449. * The static properties mw.Api.errors and mw.Api.warnings, deprecated in 1.29,
  450. have been removed.
  451. * ParserOption::getSpeculativeRevIdCallback(), deprecated in 1.28, has been
  452. removed.
  453. * The UploadVerification hook, deprecated in 1.28, has been removed. Instead,
  454. use the UploadVerifyFile hook.
  455. * UploadBase:: and UploadFromChunks::stashFileGetKey() and stashSession(),
  456. deprecated in 1.28, have been removed. Instead, please use the getFileKey()
  457. method on the response from doStashFile().
  458. * LBFactory::setDomainPrefix() and LoadBalancer::setDomainPrefix(), deprecated
  459. in 1.33, have been removed. Use setLocalDomainPrefix() instead.
  460. * IDatabase::implicitGroupby(), deprecated in 1.30, has been removed.
  461. * IDatabase::doneWrites(), deprecated in 1.31, has been removed.
  462. Use IDatabase::lastDoneWrites() instead.
  463. * Database::reportConnectionError(), deprecated in 1.32, has been removed.
  464. * LoadBalancer::laggedSlaveUsed(), deprecated in 1.28, has been removed.
  465. Use LoadBalancer::laggedReplicaUsed() instead.
  466. * Database::getProperty(), deprecated in 1.28, has been removed.
  467. * IDatabase::getWikiId(), deprecated in 1.30, has been removed.
  468. Use IDatabase::getDomainID() instead.
  469. * (T191231) Support for using Oracle or MSSQL as database backends has been
  470. dropped.
  471. * MessageCache::destroyInstance() has been removed. Instead, call
  472. MediaWikiTestCase::resetServices().
  473. * SearchResult protected field $searchEngine is removed and no longer
  474. initialized after calling SearchResult::initFromTitle().
  475. * The UserIsBlockedFrom hook is only called if a block is found first, and
  476. should only be used to unblock a blocked user.
  477. * Parameters for index.php from PATH_INFO, such as the title, are no longer
  478. written to $_GET.
  479. * The selectFields() methods on classes LocalFile, ArchivedFile, OldLocalFile,
  480. DatabaseBlock, and RecentChange, deprecated in 1.31, have been removed. Use
  481. the corresponding getQueryInfo() methods instead.
  482. * The following methods on Revision, deprecated since 1.31, have been removed.
  483. Use RevisionStore::getQueryInfo() or RevisionStore::getArchiveQueryInfo()
  484. instead.
  485. * Revision::userJoinCond()
  486. * Revision::pageJoinCond()
  487. * Revision::selectFields()
  488. * Revision::selectArchiveFields()
  489. * Revision::selectTextFields()
  490. * Revision::selectPageFields()
  491. * Revision::selectUserFields()
  492. * User::setNewpassword(), deprecated in 1.27 has been removed.
  493. * The ObjectCache::getMainWANInstance and ObjectCache::getMainStashInstance
  494. functions, deprecated since 1.28, have been removed.
  495. * Language::$dataCache has been removed (without prior deprecation, for
  496. practical reasons). Use MediaWikiServices instead to get a LocalisationCache.
  497. === Deprecations in 1.34 ===
  498. * The MWNamespace class is deprecated. Use NamespaceInfo.
  499. * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
  500. Instead, use ->queue().
  501. * User::isBlocked() is deprecated since it does not tell you if the user is
  502. blocked from editing a particular page. Use User::getBlock() or
  503. PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
  504. * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
  505. to the BlockManager as private helper methods.
  506. * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
  507. instead.
  508. * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
  509. is deprecated. Pass only the User argument.
  510. * WatchedItem::getUser is deprecated. Use getUserIdentity.
  511. * Passing a Title as the first parameter to the getTimestampById method of
  512. RevisionStore is deprecated. Omit it, passing only the remaining parameters.
  513. * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
  514. RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
  515. * The Title parameter to RevisionLookup::getPreviousRevision and
  516. RevisionLookup::getNextRevision is deprecated and should be omitted.
  517. * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
  518. * The Http class is deprecated. For the request, get, and post methods, use
  519. HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
  520. getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
  521. MultiHttpClient directly.
  522. * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
  523. engine will eventually be made the only engine for HTTP requests.
  524. * RepoGroup::singleton(), RepoGroup::destroySingleton(),
  525. RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
  526. deprecated. Use MediaWikiServices instead.
  527. * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
  528. Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
  529. * MWMessagePack class, no longer used, has been deprecated in 1.34.
  530. * The Block class is separated into DatabaseBlock (for blocks stored in the
  531. database), and SystemBlock (for temporary blocks created by the system).
  532. SystemBlock should be used when creating any temporary blocks. Block is
  533. a deprecated alias for DatabaseBlock.
  534. * Parser::$mConf is deprecated. It will be removed entirely in a later version.
  535. Some context can be found at T224165.
  536. * Constructing Parser directly is deprecated. Obtain one from ParserFactory.
  537. * Title::moveSubpages is deprecated. Use MovePage::moveSubpages or
  538. MovePage::moveSubpagesIfAllowed.
  539. * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
  540. * (T62260) Hard deprecate Language::getExtraUserToggles() method.
  541. * Language::viewPrevNext function is deprecated, use
  542. PrevNextNavigationRenderer::buildPrevNextNavigation instead
  543. * User::trackBlockWithCookie and DatabaseBlock::clearCookie are deprecated. Use
  544. BlockManager::trackBlockWithCookie and BlockManager::clearCookie instead.
  545. * DatabaseBlock::setCookie, DatabaseBlock::getCookieValue,
  546. DatabaseBlock::getIdFromCookieValue and AbstractBlock::shouldTrackWithCookie
  547. are moved to internal helper methods for BlockManager::trackBlockWithCookie.
  548. * ResourceLoaderContext::getConfig and ResourceLoaderContext::getLogger have
  549. been deprecated. Inside ResourceLoaderModule subclasses, use the local methods
  550. instead. Elsewhere, use the methods from the ResourceLoader class.
  551. * The Profiler::setTemplated and Profiler::getTemplated methods have been
  552. deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
  553. instead.
  554. * The ProfilerOutputDb class, 'profiling' table, and profileinfo.php entry
  555. point had been deprecated (T231366).
  556. * The Preprocessor_DOM implementation has been deprecated. It will be
  557. removed in a future release. Use the Preprocessor_Hash implementation
  558. instead.
  559. * Sanitizer::attributeWhitelist() and Sanitizer::setupAttributeWhitelist()
  560. have been deprecated; they will be made private in the future.
  561. * SearchResult::termMatches() method is deprecated. It was unreliable because
  562. only populated by few search engine implementations. Use
  563. SqlSearchResult::getTermMatches() if really needed.
  564. * SearchResult::getTextSnippet( $terms ) the $terms param is being deprecated
  565. and should no longer be passed. Search engine implemenations should be
  566. responsible for carrying relevant information needed for highlighting with
  567. their own SearchResultSet/SearchResult sub-classes.
  568. * SearchResultSet::free() method is deprecated.
  569. * SearchEngine::$searchTerms protected field is deprecated. Moved to
  570. SearchDatabase.
  571. * The use of the $terms param in the ShowSearchHit and ShowSearchHitTitle
  572. hooks is highly discouraged as it's only populated by SearchDatabase search
  573. engines.
  574. * Skin::escapeSearchLink() is deprecated. Use Skin::getSearchLink() or the skin
  575. template option 'searchaction' instead.
  576. * Skin::getRevisionId() and Skin::isRevisionCurrent() have been deprecated.
  577. Use OutputPage::getRevisionId() and OutputPage::isRevisionCurrent() instead.
  578. * LoadBalancer::haveIndex() and LoadBalancer::isNonZeroLoad() have
  579. been deprecated.
  580. * FileBackend::getWikiId() has been deprecated.
  581. Use FileBackend::getDomainId() instead.
  582. * User::getRights() and User::$mRights have been deprecated. Use
  583. PermissionManager::getUserPermissions() instead.
  584. * The LocalisationCacheRecache hook no longer allows purging of message blobs
  585. to be prevented. Modifying the $purgeBlobs parameter now has no effect.
  586. * SVGMetadataExtractor::getMetadata has been deprecated. Instead, you should
  587. use SVGReader->getMetadata() directly.
  588. * The following public properties on AbstractBlock are deprecated: $mReason,
  589. $mTimestamp, $mExpiry, $mHideName. Use the getters/setters instead.
  590. * The following public properties on DatabaseBlock are deprecated: $mAuto,
  591. $mParentBlockId. To check for an autoblock use DatabaseBlock::getType; to
  592. check for the parent ID, use DatabaseBlock::getParentBlockId.
  593. * SearchEngine::userHighlightPrefs() is deprecated, simply stop passing
  594. $contextlines and $contextchars to the SearchHighlighter methods, they will
  595. use proper defaults defined in SearchHighlighter::DEFAULT_CONTEXT_LINES and
  596. DEFAULT_CONTEXT_CHARS.
  597. * SearchUpdate constructor: passing a string as the title param and or a boolean
  598. or a string as the content will produce a deprecation warning.
  599. * SearchEngine::getTextFromContent() is deprecated, use getTextForSearchIndex()
  600. directly from the Content object.
  601. * SearchEngine::textAlreadyUpdatedForIndex() is deprecated, given the
  602. deprecation above this method is no longer needed/called and should not be
  603. implemented by SearchEngine implementation.
  604. * IDatabase::bufferResults() has been deprecated. Use query batching instead.
  605. * MessageCache::singleton() is deprecated. Use
  606. MediaWikiServices::getMessageCache().
  607. * ObjectCache::getWANInstance() is deprecated. Use
  608. MediaWikiServices::getMainWANObjectCache() instead.
  609. * ObjectCache::newWANCacheFromParams() is deprecated. Use
  610. MediaWikiServices::getMainWANObjectCache() instead.
  611. * Constructing MovePage directly is deprecated. Use MovePageFactory.
  612. * TempFSFile::factory() has been deprecated. Use TempFSFileFactory instead.
  613. * wfIsBadImage() is deprecated. Use the BadFileLookup service instead.
  614. * Building a new SearchResult is hard-deprecated, always call
  615. SearchResult::newFromTitle(). This class is being refactored into an abstract
  616. class. If you extend this class please be sure to override all its methods
  617. or extend RevisionSearchResult.
  618. * Skin::getSkinNameMessages() is deprecated and no longer used.
  619. * The mediawiki.RegExp module is deprecated; use mw.util.escapeRegExp() instead.
  620. * Specifying a SpecialPage object for the list of special pages (either through
  621. the SpecialPage_initList hook or by adding to $wgSpecialPages) is now
  622. deprecated.
  623. * The 'jquery.tabIndex' module is deprecated.
  624. * WebInstaller::getInfoBox(), getWarningBox() and getErrorBox() are deprecated.
  625. Use Html::errorBox() or Html::warningBox() instead.
  626. * Use of ActorMigration with 'ar_user', 'img_user', 'oi_user', 'fa_user',
  627. 'rc_user', 'log_user', and 'ipb_by' is deprecated. Queries should be adjusted
  628. to use the corresponding actor fields directly. Note that use with
  629. 'rev_user' is *not* deprecated at this time.
  630. * Specifying both the class and factory parameters for
  631. ApiModuleManager::addModule is now deprecated. The ObjectFactory spec should
  632. be used instead.
  633. * The UserIsHidden hook is deprecated. Use GetUserBlock instead, and add a
  634. system block that hides the user.
  635. * The GetBlockedStatus hook is deprecated. Use GetUserBlock instead, to add or
  636. remove a block.
  637. * $wgContentHandlerUseDB is deprecated and should always be true.
  638. * StreamFile::send404Message() and StreamFile::parseRange() are now deprecated.
  639. Use HTTPFileStreamer::send404Message() and HTTPFileStreamer::parseRange()
  640. respectively instead.
  641. * Global variable $wgSysopEmailBans is deprecated; to allow sysops to ban
  642. users from sending emails, use
  643. $wgGroupPermissions['sysop']['blockemail'] = true;
  644. * ApiQueryBase::showHiddenUsersAddBlockInfo() is deprecated. Use
  645. ApiQueryBlockInfoTrait instead.
  646. * PasswordReset is now a service, its direct instantiation is deprecated.
  647. * RESTBagOStuff users should specify either "JSON" or "PHP" serialization type.
  648. * The global function wfIsHHVM() is deprecated and will now always return false
  649. regardless of the runtime environment. This is part of the continuing work to
  650. remove HHVM support from MediaWiki, which started in MediaWiki 1.31.
  651. * Language::getLocalisationCache() is deprecated. Use MediaWikiServices
  652. instead.
  653. * The following Language methods are deprecated: isSupportedLanguage,
  654. isValidCode, isValidBuiltInCode, isKnownLanguageTag, fetchLanguageNames,
  655. fetchLanguageName, getFileName, getMessagesFileName, getJsonMessagesFileName.
  656. Use the new LanguageNameUtils class instead. (Note that fetchLanguageName(s)
  657. are called getLanguageName(s) in the new class.)
  658. * Using the Parser without initializing its $mTitle property to non-null has
  659. been deprecated. In a future release Parser::getTitle() will throw a
  660. TypeError if $mTitle is uninitialized.
  661. * A number of public methods of Parser were exposed only for historical
  662. reasons and have been deprecated: doMagicLinks, doDoubleUnderscore,
  663. doHeadings, doAllQuotes, replaceExternalLinks, replaceInternalLinks,
  664. replaceInternalLinks2, getVariableValue, initialiseVariables, formatHeadings,
  665. testPst, testPreprocess, testSrvus, areSubpagesAllowed, maybeDoSubpageLink,
  666. splitWhitespace, createAssocArgs, armorLinks, makeKnownLinkHolder,
  667. getImageParams, parseLinkParameter, stripAltText, replaceLinkHolders,
  668. replaceLinkHoldersText, armorLinks, makeKnownLinkHolder, getImageParams,
  669. parseLinkParameter, stripAltText.
  670. === Other changes in 1.34 ===
  671. * Added option to specify "Various authors" as author in extension credits using
  672. "..." as the only author name. If the "author" array contains more than one
  673. entry and "..." is one of the entries in the array, "..." will be parsed as
  674. "others" (version-poweredby-others i18n message) like previously.
  675. * (T232563) Browser support ("Grade C") for Internet Explorer 6 and 7
  676. was discontinued. Basic content and security features may no longer
  677. work correctly in these browsers.
  678. == Compatibility ==
  679. MediaWiki 1.34 requires PHP 7.2.9 or later, and the following PHP extensions:
  680. * ctype
  681. * dom
  682. * fileinfo
  683. * iconv
  684. * json
  685. * mbstring
  686. * xml
  687. MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
  688. but support for them is somewhat less mature.
  689. The supported versions are:
  690. * MySQL 5.5.8 or later
  691. * PostgreSQL 9.2 or later
  692. * SQLite 3.8.0 or later
  693. == Online documentation ==
  694. Documentation for both end-users and site administrators is available on
  695. MediaWiki.org, and is covered under the GNU Free Documentation License (except
  696. for pages that explicitly state that their contents are in the public domain):
  697. https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
  698. == Mailing list ==
  699. A mailing list is available for MediaWiki user support and discussion:
  700. https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
  701. A low-traffic announcements-only list is also available:
  702. https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
  703. It's highly recommended that you sign up for one of these lists if you're
  704. going to run a public MediaWiki, so you can be notified of security fixes.
  705. == IRC help ==
  706. There's usually someone online in #mediawiki on irc.freenode.net.