MediaWiki 1.35

This page is a translated version of the page MediaWiki 1.35 and the translation is 45% complete.
Advertencia Advertencia: MediaWiki desde la 1.35.0 hasta la 1.35.4 contienen un problema de seguridad muy grave. Actualice a 1.35.5 o más tarde. Véase 2021-12 liberación de seguridad/FAQ para obtener más información.
Advertencia Advertencia: MediaWiki 1.35 ya no soporta PHP 7.2. Se requiere PHP 7.3.19 o posterior.
Si usas PHP8, recomendamos usar MediaWiki 1.38.4 o $2. Los wikis de la Fundación Wikimedia todavía no usan PHP8, por lo que está menos probado, pero otros grupos sí que usan MediaWiki con PHP8 sin problemas. Si encuentras fallos usando MediaWiki con PHP8, repórtalos. Véase task T248925 para más información.

MediaWiki 1.35 es una versión obsoleta con soporte a largo plazo de MediaWiki. Consultar el archivo RELEASE NOTES para la lista completa de cambios. Se implementó en la Fundación Wikimedia a través de ramas incrementales de "wmf " desde el 1 de octubre de 2019. La versión estable 1.35.0 se lanzó el 25 de septiembre de 2020. Descarga 1.35.14 o revisa la rama REL1_35 en Git para seguir esta publicación. Dejó de recibir soporte el 21 de diciembre de 2023.

Nuevas características

  • Páginas especiales -Special: EditPage, Special: PageHistory, Special: PageInfo y Special: Purge- se han creado como accesos directos para cada acción. Especial: EditPage/Foo redirige a title=foo&action=edit, con PageHistory, PageInfo, y Purge corresponde a &action= history, info y purge respectivamente. Cuando está vinculado a, su subpágina se utiliza como destino. De lo contrario, muestra un dispositivo periférico básico para permitir que el usuario especifique el objetivo, manualmente (consulte task T13456). 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 task T13456).

La forma de "?action=watch" tiene un nueva lista desplegable "dropdown", para dar soporte a fechas de expiración en listas de seguimiento "watchlist" de elementos. (si $wgWatchlistExpiry es true).

Nuevas extensiones incluidas

MediaWiki 1.35 incorpora la extensión Extensión:VisualEditor , que proporciona una experiencia de edición visual como una alternativa al editor tradicional. No será necesario configurar una instancia separada de Parsoid, ya que está integrada en el núcleo de MediaWiki.

Además están incluidas las extensiones Extensión:SecureLinkFixer y Extensión:TemplateData . La primera fuerza a que los enlaces de la wiki sean https, y la segunda añade una etiqueta y un api para permitir a los editores especificar cómo deben ser invocadas las plantillas.

Acción de cambios en la API

  • 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. Specifically, it would deny internal frontend requests carrying this parameter, whilst accepting other requests.
  • 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.

Acción API cambios internos

  • 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 y CentOS 7 proporcionan PHP 7.2 por defecto. Tendrás que instalar versiones actualizadas del Colección de Software (SCL) o "AppStreams"

Subpáginas