From ce23609e56b26325d2b960973d287eb1638cdf17 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 30 Jun 2020 11:14:33 +0000 Subject: [PATCH] Docs: Correct `$wp_query` global reference in `render_block()`. See #49927, #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48226 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 4881ab4d87..0e6b6a63f4 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -649,8 +649,8 @@ function _excerpt_render_inner_columns_blocks( $columns, $allowed_blocks ) { * * @since 5.0.0 * - * @global WP_Post $post The post to edit. - * @global WP_Query $wp_the_query WordPress Query object. + * @global WP_Post $post The post to edit. + * @global WP_Query $wp_query WordPress Query object. * * @param array $parsed_block A single parsed block object. * @return string String of rendered HTML. @@ -689,11 +689,11 @@ function render_block( $parsed_block ) { $context['postId'] = $post->ID; /* - * The `postType` context is largely unnecessary server-side, since the - * ID is usually sufficient on its own. That being said, since a block's - * manifest is expected to be shared between the server and the client, - * it should be included to consistently fulfill the expectation. - */ + * The `postType` context is largely unnecessary server-side, since the ID + * is usually sufficient on its own. That being said, since a block's + * manifest is expected to be shared between the server and the client, + * it should be included to consistently fulfill the expectation. + */ $context['postType'] = $post->post_type; }