Merge "HTMLFormField: Treat weird ' ' labels as empty in OOUI mode"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 28 Sep 2017 17:53:50 +0000 (17:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 28 Sep 2017 17:53:50 +0000 (17:53 +0000)
includes/htmlform/HTMLFormField.php

index e642c2c..9c301e6 100644 (file)
@@ -631,7 +631,7 @@ abstract class HTMLFormField {
 
                // the element could specify, that the label doesn't need to be added
                $label = $this->getLabel();
-               if ( $label ) {
+               if ( $label && $label !== '&#160;' ) {
                        $config['label'] = new OOUI\HtmlSnippet( $label );
                }