From 1996e35ec7d4f1453162d3f1bdf5991448d9e968 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 5 Jun 2015 03:07:11 +0200 Subject: [PATCH] Html: Add buttonAttributes() more diligently It was done only for elements generated with linkButton() or submitButton(), and not input(). Change-Id: Idd7e01d596997bd5cade5a7851daf64bee10bb49 --- includes/Html.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Html.php b/includes/Html.php index 6da70b1dee..235096ddde 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -715,6 +715,9 @@ class Html { if ( in_array( $type, array( 'text', 'search', 'email', 'password', 'number' ) ) ) { $attribs = self::getTextInputAttributes( $attribs ); } + if ( in_array( $type, array( 'button', 'reset', 'submit' ) ) ) { + $attribs = self::buttonAttributes( $attribs ); + } return self::element( 'input', $attribs ); } -- 2.20.1