MediaWiki 1.29/pt-br

MediaWiki 1.29 É um lançamento futuro de MediaWiki. Consulte o arquivo para obter a lista completa de mudanças. É atualmente implantado em wikis da Fundação Wikimedia através de incremental "wmf" -branches a partir de 01 de novembro de 2016. The 1.29.0 stable release is expected to come out on sometime in June 2017. Baixe o ou verifique o pacote  2 no Git para acompanhar este lançamento.

Novos recursos

 * A cookie can now be set when a user is autoblocked, to track that user if they move to a new IP address. This is disabled by default.
 * Added ILocalizedException interface to standardize the use of localized exceptions, largely so the API can handle them more sensibly.
 * Blocks created automatically by MediaWiki, such as for configured proxies or dnsbls, are now indicated as such and use a new i18n message when displayed.

Alterações na configuração

 * Default cookie expiration time has been reduced to 30 days. Login cookie expiration time is kept at 180 days.
 * A new configuration variable has been added: . This determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked.
 * The  right and associated password reset capture feature has been removed.
 * The  parameter to the  hook should be set to a Status object or boolean false. This should be compatible with at least MediaWiki 1.23 if not earlier. Returning a raw HTML string is now deprecated.
 * The  parameter to the  hook should be set to an  . This is compatible with MediaWiki 1.27 and later. Returning a code for ApiBase::parseMsg will no longer work.
 * ApiBase::$messageMap is no longer public. Code attempting to access it will result in a PHP fatal error.
 * is now true by default to work around restrictive DMARC policies.
 * Subpages are now enabled by default in the Template namespace. Set $wgNamespacesWithSubpages[NS_TEMPLATE] to false to keep the old behavior.
 * is now false by default . This change only affects wikis with $wgJobRunRate > 0.

Novas características

 * A cookie can now be set when a user is autoblocked, to track that user if they move to a new IP address. This is disabled by default.

Bibliotecas externas atualizadas

 * Updated QUnit from v1.22.0 to v1.23.1.

Correções de bugs

 * Core parser functions returning a number now format the number according to the page content language, not wiki content language.

Alterações na API de Ação

 * Submitting sensitive authentication request parameters to,  ,  , and   in the query string is now an error. They should be submitted in the POST body instead.
 * The capture option for  has been removed
 * now requires a POST.
 * API errors and warnings may be requested in non-English languages using the new,  , and   parameters.
 * API error codes may have changed. Most notably, errors from modules using parameter prefixes (e.g. all query submodules) will no longer be prefixed.
 * may return a "Warnings" status, and now returns 'warnings' and 'errors' subelements (as applicable) instead of 'message'.
 * returns an 'errors' subelement rather than.
 * now reports errors when moving the talk page as an array under key, rather than using   and  . The format for subpage move errors has also changed.
 * no longer includes a "rendered" property on warnings and errors for each item. Use  if you're wanting parsed output.
 * no longer returns a  property. Use   if you're wanting HTML formatting of error messages.
 * now reports optional stash failures as an array under key 'stasherrors' rather than a 'stashfailed' text string.
 * reports 'errors' and 'warnings' instead of a single 'error', and no longer returns a 'message' on success.
 * Added  to validate passwords for the account creation and password change forms.

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

 * New methods were added to ApiBase to handle errors and warnings using i18n keys. Methods for using hard-coded English messages were deprecated:
 * ApiBase::dieUsage was deprecated
 * ApiBase::dieUsageMsg was deprecated
 * ApiBase::dieUsageMsgOrDebug was deprecated
 * ApiBase::getErrorFromStatus was deprecated
 * ApiBase::parseMsg was deprecated
 * ApiBase::setWarning was deprecated
 * ApiBase::$messageMap is no longer public. Code attempting to access it will result in a PHP fatal error.
 * The $message parameter to the hook should be set to an ApiMessage. This is compatible with MediaWiki 1.27 and later. Returning a code for ApiBase::parseMsg will no longer work.
 * is deprecated in favor of . For the time being   is a subclass of   to allow things that catch only   to still function properly.
 * If, for some strange reason, code was using an  instead of , note that the result format has changed and various methods now take a module path rather than a module name.
 * ApiMessageTrait::getApiCode now strips 'apierror-' and 'apiwarn-' prefixes from the message key, and maps some message keys for backwards compatibility.

Idiomas atualizados
MediaWiki supports over 350 languages. Many localisations are updated regularly. Below only new and removed languages are listed, as well as changes to languages because of Phabricator reports.

No fallback for Ukrainian

 * The fallback from Ukrainian to Russian was removed. The Ukrainian language will now use the default fallback language: English. When a translation to Ukrainian is not available, an English string will be shown.

Outros mudanças

 * Database::getSearchEngine (deprecated in 1.28) was removed. Use SearchEngineFactory::getSearchEngineClass instead.
 * (deprecated in 1.20) was removed. No replacement is required as all sessions are stored in Object Cache now.
 * MWHttpRequest::execute should be considered to return a StatusValue; the Status return type is deprecated.
 * User::edits (deprecated in 1.21) was removed.
 * Xml::escapeJsString (deprecated in 1.21) was removed.
 * Article::getText and Article::prepareTextForEdit (deprecated in 1.21) were removed.
 * Article::getAutosummary and WikiPage::getAutosummary (deprecated in 1.21) were removed.
 * Hooks, and  (deprecated in 1.21) were removed.
 * Class  (deprecated in 1.25) was removed.
 * WikiPage::prepareTextForEdit (deprecated in 1.21) was removed.
 * WikiPage::getText (deprecated in 1.21) was removed.
 * Article::fetchContent (deprecated in 1.21) was removed.
 * User::getPassword (deprecated in 1.27) was removed.
 * User::getTemporaryPassword (deprecated in 1.27) was removed.
 * User::isPasswordReminderThrottled (deprecated in 1.27) was removed.
 * (deprecated in 1.19) was removed.

Compatibilidade
MediaWiki 1.29 Requer PHP 5.5.9 ou posterior. Existe suporte experimental para HHVM 3.6.5 ou posterior. MySQL é o recomendado DBMS. O PostgreSQL ou SQLite também pode ser usado, mas o suporte para eles é um pouco menos maduro. Há suporte experimental para Oracle e Microsoft SQL Server.

As versões suportadas são:


 * MySQL 5.0.3+
 * PostgreSQL 8.3+
 * SQLite 3.3.7+
 * Oracle 9.0.1+
 * Microsoft SQL Server 2005 (9.00.1399)

Atualizando
1.29 has several database changes since 1.28, and will not work without schema updates. Note that due to changes to some very large tables like the revision table, the schema update may take quite long (minutes on a medium sized site, many hours on a large site).

If upgrading from before 1.11, and you are using a wiki as a commons repository, make sure that it is updated as well. Otherwise, errors may arise due to database schema changes.

If upgrading from before 1.7, you may want to run refreshLinks.php to ensure new database fields are filled with data.

If you are upgrading from MediaWiki 1.4.x or earlier, you should upgrade to 1.5 first. The upgrade script maintenance/upgrade1_5.php has been removed with MediaWiki 1.21.

Don't forget to always backup your database before upgrading!

See the file UPGRADE for more detailed upgrade instructions.

For notes on 1.28.x and older releases, see HISTORY.