Skip to content

Commit

Permalink
Merge pull request #5 from tomisaacmarshall/patch-1
Browse files Browse the repository at this point in the history
Fix OowpView::toHtml()
  • Loading branch information
rasmuswinter authored Apr 3, 2019
2 parents 78de3db + 688ba44 commit 7649733
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
5 changes: 2 additions & 3 deletions src/Views/OowpView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []);
}
}

0 comments on commit 7649733

Please sign in to comment.