Breaking changes:
* Ids 'mwProtectSet', 'mw-protect-table3', and
'mw-protect-table-$action' are no longer present on page.
* Module 'mediawiki.legacy.protect' has been removed and replace by
'mediawiki.action.protect'.
Deprecations:
* ProtectionForm::buildForm has been replaced by
ProtectionForm::addFormFields with backwards compatibility.
Other changes:
* Expiry is no longer editable when "Allow all users" is selected
* When "Unlock further protect options" is disabled, the expiry of
the first section is used for the other sections
* Legacy form elements added by extensions are added to a separate
section which uses a blank i18n string as the header
* Unprivileged users see the expiry selector instead of the expiry
text input as it has the expiry date
Changes to ProtectionForm.php are based off of
I95d0289acceaa7ede789d5a6ea094fae757af6dc.
Bug: T235424
Bug: T236218
Change-Id: Ib22a3b53c1933e107ef5609bb2262aa44b5abb7a
27 lines
770 B
PHP
27 lines
770 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
// phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
|
|
use Article;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "ProtectionForm::buildForm" to register handlers implementing this interface.
|
|
*
|
|
* @deprecated since 1.36, use ProtectionFormAddFormFields
|
|
* @ingroup Hooks
|
|
*/
|
|
interface ProtectionForm__buildFormHook {
|
|
/**
|
|
* This hook is called after all protection type fieldsets are made
|
|
* in the form.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param Article $article Title being (un)protected
|
|
* @param string &$output String of the form HTML so far
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onProtectionForm__buildForm( $article, &$output );
|
|
}
|