MediaWiki 1.35

This page is a translated version of the page MediaWiki 1.35 and the translation is 59% complete.
Outdated translations are marked like this.
Peringatan Peringatan MediaWiki 1.35.0 sampai 1.35.4 mengandung masalah keamanan yang sangat serius. Tolong mutakhirkan ke 1.35.5 atau setelahnya. Lihat Rilis keamanan Desember 2021/Pertanyaan umum untuk informasi lebih lanjut.
Peringatan Peringatan MediaWiki 1.35 sudah tidak mendukung PHP 7.2 lagi. PHP 7.3.19 atau selanjutnya akan diperlukan.
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. See task T248925 for more information.

MediaWiki 1.35 adalah rilis versi dukungan jangka panjang MediaWiki sekarang. Bacalah berkas RELEASE NOTES untuk mengetahui daftar lengkap perubahan. Rilis ini disebarkan di wiki-wiki Wikimedia Foundation melalui cabang "wmf " inkremental mulai 1 Oktober 2019. Rilis stabil 1.35.0 dikeluarkan pada 25 September 2020. Unduh 1.35.14 atau periksa cabang REL1_35 di Git untuk mengikuti rilis ini. Rilis ini akan berhenti didukung pada September 2023.

Fitur baru

  • Halaman istimewa Special:EditPage, Special:PageHistory, Special:PageInfo, dan Special:Purge telah dibuat sebagai pintasan untuk setiap tindakan. Special:EditPage/Foo mengalihkan ke title=foo&action=edit, dengan PageHistory, PageInfo, dan Purge bersesuaian masing-masing dengan &action= history, info, dan purge. Ketika ditautkan, subhalamannya digunakan sebagai tujuan. Jika tidak, halaman ini menampilkan antarmuka dasar untuk memungkinkan pengguna menetapkan tujuannya secara manual (lihat 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).

  • Formulir di "?action=watch" memiliki daftar dropdown baru untuk mendukung tanggal kedaluwarsa untuk daftar pantauan (jika $wgWatchlistExpiry bernilai true).

Ekstensi yang baru dibundel

MediaWiki 1.35 membundel ekstensi VisualEditor , yang menyediakan pengalaman menyunting secara visual sebagai alternatif bagi penyunting sumber tradisional. Tidak akan perlu lagi memasang instansi Parsoid yang terpisah, karena dipasang di inti MediaWiki.

Selain itu, SecureLinkFixer dan TemplateData dibundel. Mereka memaksakan pranala https di wiki Anda, dan menambahkan sebuah tag serta sebuah API untuk memungkinkan penyunting menentukan bagaimana templat dipanggil.

Perubahan Action API

  • Parameter suggest dari action=opensearch telah diusangkan. API tidak berubah dengan ataupun tanpa parameter ini. It was previously used by $wgEnableOpenSearchSuggest to partially disable the API if set to false. Secara spesifik, ini akan menolak permintaan frontend internal yang memiliki parameter ini, sedangkan permintaan lainnya akan diterima.
  • Parameter yang bertipe integer sekarang divalidasi sesuai sintaksis, bukan ditafsirkan dengan cara yang tidak diduga. Sebagai contoh, teks berikut sekarang akan menghasilkan galat badinteger:
    • "1.9" - sebelumnya ditafsirkan sebagai "1"
    • " 1" - sebelumnya ditafsirkan sebagai "1"
    • "1e1" - formerly interpreted as "1" or "10", depending on the PHP version
    • "1foobar" - formerly interpreted as "1"
    • "foobar" (formerly intepreted as "0") Asumsikan bahwa rentang wajib dipatuhi.
  • Many user-type parameters now accept a user ID, formatted like "#12345".
  • Parameter assert yang digunakan oleh semua modul API sekarang mendukung nilai 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.
  • Sebuah modul baru ditambahkan untuk mengubah model konten halaman-halaman yang sudah ada. 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.

Perubahan internal 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.
  • (task T245931) meta=siteinfo&siprop=interwikimap no longer reports language or extralanglink when $wgInterwikiMagic is false.
Red Hat 8 dan CentOS 7 sudah menyediakan PHP 7.2 dari bawaan. Anda perlu menginstal versi terbaru dari Software Collections (SCL) atau AppStreams.

Subhalaman