The oik_get_the_excerpt function uses simple logic to check for a <!--more--> tag in the content.
It doesn't work when the content is generated using Gutenberg and therefore contains lots of HTML comments.
So, for a post containing
<!-- wp:paragraph -->
<p>Just like many other companies around the world we've been updating our Privacy policies both for our websites and our internal business procedures.<br/>
</p>
<!-- /wp:paragraph -->
<!-- wp:more -->
<!--more-->
<!-- /wp:more -->
...
and then a lot more stuff
we get more than we expected.
Expected output
Just the excerpt, before the <!--more--> HTML comment.
The oik_get_the_excerpt function uses simple logic to check for a
<!--more-->
tag in the content. It doesn't work when the content is generated using Gutenberg and therefore contains lots of HTML comments.So, for a post containing
we get more than we expected.
Expected output
Just the excerpt, before the
<!--more-->
HTML comment.Actual output
The whole content.