mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
Coding Standards: Adjust formatting in WP_Block::render()
for better readability.
Follow-up to [49310], [49539]. See #51606. Built from https://develop.svn.wordpress.org/trunk@49540 git-svn-id: http://core.svn.wordpress.org/trunk@49278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2d42351c5
commit
2c5607307f
@ -213,12 +213,16 @@ class WP_Block {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $is_dynamic ) {
|
if ( $is_dynamic ) {
|
||||||
$global_post = $post;
|
$global_post = $post;
|
||||||
$parent = WP_Block_Supports::$block_to_render;
|
$parent = WP_Block_Supports::$block_to_render;
|
||||||
|
|
||||||
WP_Block_Supports::$block_to_render = $this->parsed_block;
|
WP_Block_Supports::$block_to_render = $this->parsed_block;
|
||||||
$block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
|
|
||||||
|
$block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
|
||||||
|
|
||||||
WP_Block_Supports::$block_to_render = $parent;
|
WP_Block_Supports::$block_to_render = $parent;
|
||||||
$post = $global_post;
|
|
||||||
|
$post = $global_post;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! empty( $this->block_type->script ) ) {
|
if ( ! empty( $this->block_type->script ) ) {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-beta3-49539';
|
$wp_version = '5.6-beta3-49540';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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