Make WordPress Core

Changeset 49540


Ignore:
Timestamp:
11/09/2020 10:59:06 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Adjust formatting in WP_Block::render() for better readability.

Follow-up to [49310], [49539].

See #51606.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block.php

    r49539 r49540  
    214214
    215215        if ( $is_dynamic ) {
    216             $global_post                        = $post;
    217             $parent                             = WP_Block_Supports::$block_to_render;
     216            $global_post = $post;
     217            $parent      = WP_Block_Supports::$block_to_render;
     218
    218219            WP_Block_Supports::$block_to_render = $this->parsed_block;
    219             $block_content                      = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
     220
     221            $block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
     222
    220223            WP_Block_Supports::$block_to_render = $parent;
    221             $post                               = $global_post;
     224
     225            $post = $global_post;
    222226        }
    223227
Note: See TracChangeset for help on using the changeset viewer.