From 5755b01a923050ddb43ff7c1f7459ae6a8ffe2b0 Mon Sep 17 00:00:00 2001 From: tomisaacmarshall Date: Wed, 3 Apr 2019 12:57:32 +0100 Subject: [PATCH 1/2] Fix OowpView::toHtml() --- src/Views/OowpView.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Views/OowpView.php b/src/Views/OowpView.php index 7cc44e1..00d009e 100644 --- a/src/Views/OowpView.php +++ b/src/Views/OowpView.php @@ -21,10 +21,9 @@ public function toHtml($args = []) { ob_start(); $this->render($args); - $html = ob_get_contents(); - ob_end_flush(); + $html = ob_get_clean(); return $html; } public abstract function render($args = []); -} \ No newline at end of file +} From 688ba449048bacbc903d183b033c7848117a05bf Mon Sep 17 00:00:00 2001 From: tomisaacmarshall Date: Wed, 3 Apr 2019 12:59:07 +0100 Subject: [PATCH 2/2] Increment version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 974bc0b..e9f68cc 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "A plugin for WordPress that makes post types easier to manage", "minimum-stability": "stable", "license": "GPL-3.0", - "version": "2.2.6", + "version": "2.2.7", "autoload": { "psr-4": { "Outlandish\\Wordpress\\Oowp\\": "src/"