-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paginated content #12218
Comments
Introduced in #1467. There were some discussions about changing the parser so these blocks would always be saved as |
If you plug in the example content into the parser explorer (you can load the spec grammar by clicking on "fetch") then you will see that it does what it's supposed to do and parse the document into a list of blocks. (I had originally asked for follow-up information from @Rahe but since I believe I have found the more specific problem - "blocks aren't processed on non-first pages" - then I removed the request) my guess is that we have some different code path for following pages in multi-page documents that skips the block processing altogether. @aduth I'm not sure who to ping but I think we only run content through check out the rendered HTML for page two of my test document… I'm not sure where even to begin, but I can try and look into this. seems like a critical priority. cc: @mtias |
Update It seems like my assessment was wrong about not processing the successive pages. Instead, what's happening is that we're sending an invalid document to Once WordPress strips out I'll try and make at least one attempt at a quick-and-minimal fix from inside |
Was starting to look at this and getting at the same conclusion. Looking forward for a quick patch. <3 |
Heh, got there too few min ago... Parallel work :) A very crude fix is
in |
Cross-referencing ticket in core trac: https://core.trac.wordpress.org/ticket/45401 |
I'm closing as this has been fixed upstream |
Describe the bug
When I have a dynamic bloc with a render_callback function and a paginated content (<--nextpage-->) the dynamic block are not rendered.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect that the dynamic block is rendered on page 2, but this is not the case.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: