Skip to content

Commit e85e3ff

Browse files
committed
fix unbuffered output
1 parent 50cc7fd commit e85e3ff

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.1
2+
3+
Bugfixes:
4+
- Unbuffered output regression fix since 1.1.0
5+
16
## 1.1.0
27

38
Breaking changes:

src/Form.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@ public function method_field() {
266266
}
267267

268268
private function start() {
269+
if ( $this->unbuffered ){
270+
if ( $this->attr['action'] !== false ){
271+
$attr = FormUtils::serialize_attr($this->attr);
272+
echo "<form id=\"{$this->id}\" $attr>\n";
273+
}
274+
return;
275+
}
276+
269277
if ( $this->attr['action'] !== false ){
270278
$this->layout->preamble($this);
271279
}

0 commit comments

Comments
 (0)