-
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
Post excerpt block prints code in the editor and is empty on the front #33154
Comments
I was able to reproduce this with Twenty Twenty-One with the excerpt that is in the default query loop. |
I investigated this but with no clear solution for now. I'll leave here some of my finding if they are helpful for others more familiar with In order to reproduce this you need to have You also need to have not set the It seems that
So in this case it's like it's not called and it seems that only I tried adding the --cc @TimothyBJacobs @aristath |
Found the issue, I believe it needs a patch in trac for core. |
Core ticket: https://core.trac.wordpress.org/ticket/53604 |
I'm going to go ahead and close this issue since the patch was committed. I also re-tested across several themes to be safe and can no longer reproduce the issue. |
Description
When a block theme is active, the post excerpt block prints code, not a summary of the post content, in the editor.
On the front, the markup for the block is printed as expected, except, the block is empty.
I have not been able to reproduce this with classic themes. I recommend further testing, I did not test in the template editor or site editor.
Step-by-step reproduction instructions
Expected behaviour
I expect an excerpt to be displayed.
Actual behaviour
The post excerpt block prints the CSS.
Screenshots or screen recording (optional)
TT1 blocks, editor:
Code snippet (optional)
There are no JS errors in the console in the editor, but this is the markup for the post excerpt block, note the CSS after the "Sample paragraph inside group block"
Resulting markup on the front:
WordPress information
Device information
The text was updated successfully, but these errors were encountered: