Re-apply fix to show textarea when JS is disabled

After Id4dc1debf0240d5b336f4d9ab5b363c240f08807, the method has been
moved, and in doing that I forgot to change this line.

Change-Id: I20caf06f2c568605bd6a90c9cf2b425cd51512e7
This commit is contained in:
Daimona Eaytoy 2018-05-02 19:31:35 +02:00
parent 45d1d71def
commit f9be4226b8

View file

@ -108,9 +108,7 @@ abstract class AbuseFilterView extends ContextSource {
$rulesContainer = Xml::element( 'div', $editorAttrib, $rules );
// Dummy textarea for submitting form and to use in case JS is disabled
$textareaAttribs = [
'style' => 'display: none'
];
$textareaAttribs = [];
if ( $externalForm ) {
$textareaAttribs['form'] = 'wpFilterForm';
}