Skip to content

Commit

Permalink
Fix output buffering which was behaving strangely when multiple outpu…
Browse files Browse the repository at this point in the history
…t buffers are started.
  • Loading branch information
selul committed Aug 19, 2024
1 parent 66bf7fb commit 67f890d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,9 @@ public function process_template_redirect_content() {
remove_filter( 'the_content', [ $this, 'process_images_from_content' ], PHP_INT_MAX );

ob_start(
[ &$this, 'replace_content' ]
[ &$this, 'replace_content' ],
0,
PHP_OUTPUT_HANDLER_CLEANABLE
);
}

Expand Down

0 comments on commit 67f890d

Please sign in to comment.