-
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 Content Block: Disable when editing content (server-side approach) #24114
Post Content Block: Disable when editing content (server-side approach) #24114
Conversation
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
Closing for now b/c
|
Description
Tentative partial fix for #22080; alternative to #24006: Remove the Post Content block when editing content, in order to prevent blockception (an infinite recursion of the Post Content block embedding the current post content, which includes itself, and so on).
How has this been tested?
Blockers
Can't
apply_filters( 'allowed_block_types', true, $post );
inlib/edit-site-page.php
since no$post
object is available 😕 (and if it was, it'd only represent the initially loaded template, not the ones that the user might switch to later). We'd need to query block types via the REST API (see #21065), and the filter would need to applied there (#24076).Screenshots
N/A
Types of changes
Bug fix.
Checklist: