mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Docs: Correct $wp_query
global reference in render_block()
.
See #49927, #49572. Built from https://develop.svn.wordpress.org/trunk@48226 git-svn-id: http://core.svn.wordpress.org/trunk@47995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
18c5348b2f
commit
345549a412
@ -649,8 +649,8 @@ function _excerpt_render_inner_columns_blocks( $columns, $allowed_blocks ) {
|
|||||||
*
|
*
|
||||||
* @since 5.0.0
|
* @since 5.0.0
|
||||||
*
|
*
|
||||||
* @global WP_Post $post The post to edit.
|
* @global WP_Post $post The post to edit.
|
||||||
* @global WP_Query $wp_the_query WordPress Query object.
|
* @global WP_Query $wp_query WordPress Query object.
|
||||||
*
|
*
|
||||||
* @param array $parsed_block A single parsed block object.
|
* @param array $parsed_block A single parsed block object.
|
||||||
* @return string String of rendered HTML.
|
* @return string String of rendered HTML.
|
||||||
@ -689,11 +689,11 @@ function render_block( $parsed_block ) {
|
|||||||
$context['postId'] = $post->ID;
|
$context['postId'] = $post->ID;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The `postType` context is largely unnecessary server-side, since the
|
* The `postType` context is largely unnecessary server-side, since the ID
|
||||||
* ID is usually sufficient on its own. That being said, since a block's
|
* 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,
|
* manifest is expected to be shared between the server and the client,
|
||||||
* it should be included to consistently fulfill the expectation.
|
* it should be included to consistently fulfill the expectation.
|
||||||
*/
|
*/
|
||||||
$context['postType'] = $post->post_type;
|
$context['postType'] = $post->post_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-alpha-48225';
|
$wp_version = '5.5-alpha-48226';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user