Skip to content

Commit f3bcb0c

Browse files
authored
Merge pull request #1287 from joshfester/fix-buffer-wipeout
Fix buffer wipeout
2 parents 27eff7a + 5090415 commit f3bcb0c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/Container/Block_Container.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,7 @@ public function render_block( $attributes, $content, $block = null ) { // added
449449
unset($attributes['data']);
450450
ob_start();
451451
call_user_func( $this->render_callback , $fields, $attributes, $content, $post_id, $block );
452-
$toReturn = ob_get_contents();
453-
ob_clean();
454-
return $toReturn;
452+
return ob_get_clean();
455453
}
456454

457455
/**

0 commit comments

Comments
 (0)