-
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
Lib: Make WP_Block->available_context public. #22334
Conversation
Size Change: 0 B Total Size: 833 kB ℹ️ View Unchanged
|
Closing in favor of #22364. |
Can we reopen this? @epiqueras My use case is a little extreme, but it essentially boils down to:
So as you can see, I do have a workaround in place, but it does feel like a missed opportunity. Even if it wasn't public, there are no real opportunities/hooks to do fun things with block context if you're going the dynamic/skip_inner_blocks route. This pretty much only happens in scenarios where you wouldn't rely on the WP_Block_List generated as part of wp_block's construct. |
See #22199 (comment).