-
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
Post content block: apply the_content filter before checking if content is empty #31997
Post content block: apply the_content filter before checking if content is empty #31997
Conversation
@mcsf I see you were the last one to make changes in this file, do you mind taking a look at this PR or marking somebody else for review? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aljullu: the fix itself looks good, feel free to merge.
I see you were the last one to make changes in this file, do you mind taking a look at this PR or marking somebody else for review?
For what it's worth, this issue stems from the branching introduced in #30961, which sought to avoid printing empty containers in the front end by returning early from render_block_core_post_content
. @carolinan, @aristath: just flagging this for you, as it highlights some pitfalls of #30571 (reductions aren't necessarily simplifications).
Size Change: 0 B Total Size: 1.62 MB ℹ️ View Unchanged
|
f609d6d
to
adf28af
Compare
adf28af
to
12819ca
Compare
All green after rebase. I could merge it. 🙂 |
Closes #31995.
Description
This PR reorders the render logic of the Post content block so
the_content
filter is applied before the early return for empty content.How has this been tested?
the_content
filter to append the Shop page contents. I tested that when the page has no text, Shop contents are displayed.Step-by-step reproduction instructions
Filtered --
prefix.