Skip to content

Commit 67f890d

Browse files
committed
Fix output buffering which was behaving strangely when multiple output buffers are started.
1 parent 66bf7fb commit 67f890d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inc/manager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,9 @@ public function process_template_redirect_content() {
696696
remove_filter( 'the_content', [ $this, 'process_images_from_content' ], PHP_INT_MAX );
697697

698698
ob_start(
699-
[ &$this, 'replace_content' ]
699+
[ &$this, 'replace_content' ],
700+
0,
701+
PHP_OUTPUT_HANDLER_CLEANABLE
700702
);
701703
}
702704

0 commit comments

Comments
 (0)