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

Correct function_exists() check typo introduced in #33331. #33513

Merged
merged 2 commits into from
Aug 5, 2021
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
4 changes: 2 additions & 2 deletions lib/compat/wordpress-5.8/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function build_query_vars_from_query_block( $block, $page ) {
}
}

if ( ! function_exists( 'gutenberg_register_legacy_query_loop_block' ) ) {
if ( ! function_exists( 'gutenberg_render_legacy_query_loop_block' ) ) {
/**
* Renders the legacy `core/query-loop` block on the server.
* It triggers a developer warning and then calls the renamed
Expand All @@ -122,7 +122,7 @@ function gutenberg_render_legacy_query_loop_block( $attributes, $content, $block
sprintf( __( 'Block %1$s has been renamed to Post Template. %1$s will be supported until WordPress version 5.9.', 'gutenberg' ), $block->name ),
headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
);
return render_block_core_post_template( $attributes, $content, $block );
return gutenberg_render_block_core_post_template( $attributes, $content, $block );
}
}

Expand Down