-
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
Hide the theme without comments.php deprecation message #28128
Conversation
Size Change: -319 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
Have you considered adding a temporary filter to core to allow Gutenberg to disable the deprecation message in a nicer way? For example in At some point it will need a core solution anyway once FSE themes take off.
|
@swissspidy yes, my idea was to avoid touching core yet, because FSE is still experimental right and it's unclear whether the block will continue to exist as is or be refactored later to be something closer to the Query block (we might have both) So if we do keep this in FSE when the landing to Core is close, we should probably just remove the deprecation in Core for fie-themes. (add a check there) |
These are not used at in FSE themes, comment.php is used by the Post Comments block. |
Looking at
This isn't very elegant for two reasons:
But it should nevertheless work reliably and without having to introduce new hooks or manipulate the server response in |
It might be simpler in terms of readability to disable and enable this filter around |
I'm ok with that :) |
I like the filter's approach. 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.
🚢
Do we have an issue opened to figure out what to do with the comments template more broadly? We should avoid |
Ah, great! |
closes #28045
I'm not very proud of what I did to achieve the removal of this deprecation but at the moment, I don't see any other way to do it. Open to suggestions
Testing instructions