Skip to content
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: Limit pre_render_block extension. #19989

Merged
merged 2 commits into from
Feb 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ function gutenberg_safe_style_css_column_flex_basis( $attr ) {
*/
function gutenberg_provide_render_callback_with_block_object( $pre_render, $block ) {
global $post;
if ( 'core/navigation' !== $block['blockName'] ) {
return $pre_render;
}

$source_block = $block;

Expand Down