MediaWiki 1.35

This page is a translated version of the page MediaWiki 1.35 and the translation is 43% complete.
Outdated translations are marked like this.
Atenção Atenção: O MediaWiki 1.35.0 a 1.35.4 contém um problema de segurança muito grave. Por favor, atualize para 1.35.5 ou superior. Veja Lançamento de segurança de dezembro de 2021 / Perguntas frequentes para mais informações.
Atenção Atenção: MediaWiki 1.35 não oferece mais suporte a PHP 7.2. PHP 7.3.19 ou posterior é necessário.
If using PHP 8, it is recommended to use MediaWiki 1.38.4 or higher. PHP 8 is not in use by Wikimedia wikis, and thus gets less testing, but other groups do use MediaWiki with PHP 8 without issue. If you encounter any bugs when using MediaWiki with PHP 8, please report them. Consulte tarefa T248925 para mais informações.

MediaWiki 1.35 é a versão de suporte de longo prazo estável atual do MediaWiki. Consulte o arquivo RELEASE NOTES para obter a lista completa de mudanças. Esta versão foi implementada nas wikis da Fundação Wikimedia, por meio da ramificação incremental "wmf " de 1 de outubro de 2019. A versão estável 1.35.0 foi lançada em 25 de setembro de 2020.

Baixe 1.35.14 ou faça checkout da ramificação REL1_35 no Git para seguir esta versão.

Ele chegará ao fim de sua vida útil em setembro de 2023.

Novas características

  • As páginas especiais Special:EditPage, Special:PageHistory, Special:PageInfo, e Special:Purge foram criados como atalhos para cada ação. Special:EditPage/Foo redirects to title=foo&action=edit, with PageHistory, PageInfo, and Purge corresponding to &action= history, info, and purge respectively. When linked to, its subpage is used as the target. Otherwise, it displays a basic interface to allow the end user to specify the target manually (see tarefa T13456).
  • O formato "?action=watch" tem uma nova lista suspensa para suportar datas de expiração para itens de lista de páginas vigiadas (se $wgWatchlistExpiry é true).

Novas extensões incluídas

MediaWiki 1.35 agrupou a extensão VisualEditor , que fornece uma experiência de edição visual como uma alternativa ao editor de fonte tradicional. Não será necessário configurar uma instância separada do Parsoid, pois ele é integrado ao núcleo do MediaWiki.

Além disso, o SecureLinkFixer e o TemplateData estão incluídos. A primeira força os links HTTPS em sua wiki; a segunda adiciona uma tag e API para permitir que os editores especifiquem como os templates devem ser chamados.

Alterações na API de Ação

  • The suggest parameter of action=opensearch has been deprecated. The API behaves the same with and without this parameter. It was previously used by $wgEnableOpenSearchSuggest to partially disable the API if set to false. Especificamente, ele negaria solicitações de front-end internas carregando esse parâmetro, enquanto aceitaria outras solicitações.
  • Integer-type parameters are now validated for syntax rather than being interpreted in surprising ways. For example, the following will now return a badinteger error:
    • "1.9" - formerly interpreted as "1"
    • " 1" - formerly interpreted as "1"
    • "1e1" - formerly interpreted as "1" or "10", depending on the PHP version
    • "1foobar" - formerly interpreted as "1"
    • "foobar" (formerly intepreted as "0") Ranges should be assumed to be enforced.
  • Many user-type parameters now accept a user ID, formatted like "#12345".
  • The assert parameter used by all API modules now supports the value anon. When specified, the API will return the 'assertanonfailed' error if the user is logged in.
  • action=edit now supports the 'baserevid' parameter for edit conflict detection, as an alternative to 'basetimestamp'. Note that self-conflicts will continue to be ignored if 'basetimestamp' is set, but not if only 'baserevid' is set.
  • A new module was added to change the content model of existing pages. Use action=changecontentmodel. Unlike Special:ChangeContentModel, the API module does not work for pages that do not already exist.
  • If $wgWatchlistExpiry is true, the following API changes are made:
    • action=watch accepts a new 'expiry' parameter analagous to the expiry accepted by action=userrights, action=block, etc., except it must be no greater than $wgWatchlistExpiryMaxDuration , or an infinity value.
    • action=query&list=watchlistraw returns pages' watchlist expiry dates.
  • (task T249526) action=login will now return Failed rather than NeedToken on session loss.

Alterações internas da API de Ação

  • The Action API now uses the Wikimedia\ParamValidator library for parameter validation, which brings some new features and changes. For the most part existing module code should work as it did before, but see subsequent notes for changes.
    • The values for all ApiBase PARAM_* constants have changed. Code should have been using the constants rather than hard-coding the values.
    • Several ApiBase PARAM_* constants have been deprecated, see the in-class documentation for details. Use the equivalent ParamValidator constants instead.
    • The value returned for 'upload'-type parameters has changed from WebRequestUpload to Psr\Http\Message\UploadedFileInterface.
  • Validation of 'user'-type parameters is more flexible. PARAM constants exist to specify the type of "user" allowed and to request UserIdentity objects rather than name strings. The default is to accept all types (name, IP, range, and interwiki) that were formerly accepted.
  • Maximum limits are no longer ignored in "internal mode".
  • The $paramName to ApiBase::handleParamNormalization() should now include the prefix.
  • (task T245931) meta=siteinfo&siprop=interwikimap no longer reports language or extralanglink when $wgInterwikiMagic is false.
Red Hat 8 e CentOS 7 fornecem PHP 7.2 por padrão. Você precisará instalar versões atualizadas da Coleções de software (SCL) ou AppStreams.

Subpáginas