-
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 Comments: Add Warning via editor.BlockEdit filter #40898
Post Comments: Add Warning via editor.BlockEdit filter #40898
Conversation
b4dbb6b
to
64d3ca6
Compare
Size Change: +287 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
64d3ca6
to
efaee33
Compare
@@ -46,6 +46,7 @@ | |||
"@wordpress/date": "file:../date", | |||
"@wordpress/deprecated": "file:../deprecated", | |||
"@wordpress/dom": "file:../dom", | |||
"@wordpress/editor": "file:../editor", |
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.
This is probably the major downside of this PR 😬 In the past, we've been keen to avoid having the blocks depend on the editor.
As for the reason for this change, see this inline comment: https://github.com/WordPress/gutenberg/pull/40898/files#diff-e1efd67de68dbd5ce8acea06af13216e3c2455c7b87c16d31cea7df4f282a9fbR209-R211
@michalczaplinski pointed out in #40536 (comment):
|
Closing in favor of #40868 😄 |
What?
Purports to fix both #40536 and #40826.
Why?
To fix those issues 😬
How?
As explained in #40536 (comment),
Testing Instructions
Screenshots or screencast
TODO
postId
andpostType
(since block context isn't available to the filter we're using)