-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fixed post content rendering issue on latest post block #69466
base: trunk
Are you sure you want to change the base?
Fixed post content rendering issue on latest post block #69466
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @sabbir1991! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
I have 10 posts on my test installation. When I try to open my test post that has the latest posts block, I am getting this error: |
Hi @carolinan. I tested with 12 posts in the frontend and backend but can't reproduce any of the errors that you mentioned. Is that error showing on the front end or back end? |
Both |
I will try again on a different installation, perhaps on a Mac, but I won't have time today. |
I have tried again and the same error shows. Try adding more than one latest posts block to the same post. I think there is an infinite loop, I am not sure how else this error would happen. |
Just adding a note here that it also partially fixes this issue: #69517. It continues broken on the editor though. |
What?
#69427
In this PR, I fixed the post content rendering on the
latest-posts
block when thedisplayPostContent
setting is enabled.Why?
The issue was on the
latest-posts
block, the post content rendered with block comments, and those block contents were not parsed. In this fix, I used the filter to parse the content.Testing Instructions
Screenshots or screencast
Check the inspect element.