MediaWiki 1.35

From mediawiki.org
This page is a translated version of the page MediaWiki 1.35 and the translation is 27% complete.
Outdated translations are marked like this.
Varning Varning: MediaWiki 1.35.0 to 1.35.4 contain a critical security issue. Please upgrade to 1.35.5 or later. See 2021-12 security release/FAQ for more information.
Varning Varning: MediaWiki 1.35 stödjer ej längre PHP 7.2. PHP 7.3.19 eller senare krävs.
Använder du PHP8 rekommenderar vi att du använder MediaWiki 1.38.4 eller $2. PHP8 används inte på Wikimedias wikier och testas därför mindre men andra grupper använder MediaWiki med PHP8 utan problem. Skulle du stöta på buggar när du använder MediaWiki med PHP8 får du gärna rapportera dem. Se ärende T248925 för mer information.

MediaWiki 1.35 är den nuvarande stabila långtidsstödda utgåvan av MediaWiki. Läs filen RELEASE NOTES för en fullständig lista över ändringar. Den sattes i bruk på Wikimedia Foundations wikier genom inkrementella "wmf "-grenar, med start den 1 oktober 2019. Den stabila versionen 1.35.0 släpptes den 25 september 2020. Ladda ner 1.35.14 eller checka ut REL1_35-grenen på Git för att följa utrullningen. Den kommer sluta stödjas i september 2023.

Nya funktioner

  • Specialsidor Special:EditPage, Special:PageHistory, Special:PageInfo och Special:Purge har skapats som genvägar för varje åtgärd. Special:EditPage/Foo omdirigerar till title=foo&action=edit, där PageHistory, PageInfo och Purge korresponderar med %action=history, info respektive purge. När de länkas till dessa används undersidan som mål. Annars visas ett enkelt gränssnitt för att göra det möjligt för användaren att specificera målet manuelt (läs ärende 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 ärende T13456).

Formuläret vid "?action=watch" har en ny rullgardinslista för att stödja utgångsdatum för objekt i bevakningslistan (om $wgWatchlistExpiry är true).

Nya paketerade inlägg

MediaWiki 1.35 paketerade tillägget VisualEditor , som ger en visuell redigeringsupplevelse som ett alternativ till den traditionella källkodredigeraren. Det kommer inte att vara nödvändigt att installera en separat instans av Parsoid, eftersom den är inbyggd i MediaWikis kärna.

Dessutom ingår SecureLinkFixer och Tillägg:TemplateData (MallData) . De tvingar fram https-länkar på din wiki och lägger till en tagg och ett api så att redaktörer kan ange hur mallar ska anropas.

Ändringar till Action 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.
  • (ärende T249526) action=login will now return Failed rather than NeedToken on session loss.

Interna ändringar till Action API

  • 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.
  • (ärende T245931) meta=siteinfo&siprop=interwikimap no longer reports language or extralanglink when $wgInterwikiMagic is false.
Red Hat 8 och CentOS 7 tillhandahåller PHP 7.2 som standard. Du måste installera uppdaterade versioner från Software Collections (SCL) eller AppStreams .

Undersidor