From e7cd669bc5cc7bbbd1e33339d3828099117aedac Mon Sep 17 00:00:00 2001 From: Jayprakash12345 <0freerunning@gmail.com> Date: Fri, 6 Apr 2018 06:41:32 +0530 Subject: [PATCH] Make setSubmitProgressive() Deprecate Bug: T191586 Change-Id: Ie310ea9c3ca7c9e4b8755ba500e2ccafd0b64463 --- RELEASE-NOTES-1.32 | 2 ++ includes/htmlform/HTMLForm.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/RELEASE-NOTES-1.32 b/RELEASE-NOTES-1.32 index 2eb3679ac7..642604597f 100644 --- a/RELEASE-NOTES-1.32 +++ b/RELEASE-NOTES-1.32 @@ -62,6 +62,8 @@ changes to languages because of Phabricator reports. configuration in LocalSettings.php. === Other changes in 1.32 === +* HTMLForm::setSubmitProgressive() is deprecated. No need to call. Submit + button already has a progressive action form. * … == Compatibility == diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index af1743e078..45a4143b97 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -1336,10 +1336,13 @@ class HTMLForm extends ContextSource { /** * Identify that the submit button in the form has a progressive action * @since 1.25 + * @deprecated since 1.32, No need to call. Submit button already + * has a progressive action form. * * @return HTMLForm $this for chaining calls (since 1.28) */ public function setSubmitProgressive() { + wfDeprecated( __METHOD__, '1.32' ); $this->mSubmitFlags = [ 'progressive', 'primary' ]; return $this; -- 2.20.1