Closed bobbingwide closed 2 weeks ago
Is this a problem with wpautop() or my PHPUnit test code?
This problem occurs when bigram is activated.
render_block_
(for core/freeform) is invoked during the_content
processing
when processing the do_blocks
filter function.the_content
is invoked from oik_privacy_policy_preview()
.bigram_render_block_core_paragraph()
uses the convert_bigrams_to_links
method process_contents()
to find any links to convert. tag_break()
method doesn't cater for these spaces so the test fails.I tried changing both tag_break()
and the bigram code, but this introduced other problems.
Then I realised I could add some logic in the affected test cases to remove the filter functions attached to render_block_
.
The test cases now run successfully regardless of the activation status of the bigram plugin.
Delivered in v1.4.7
I just ran the PHPUnit tests with WordPress 6.6 and they failed.
Is this a problem with
wpautop()
or my PHPUnit test code?