WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2020 01:33:02 PM (6 months ago)
Author:
youknowriad
Message:

Block Editor: Update the WordPress Packages to the latest version.

This includes the packages that match the Gutenberg 9.2 Release.
It is going to be the last block-editor features update for WordPress 5.6.
It also updates the block-supports code base to the latest APIs.

Props isabel_brison, noisysocks, desrosj.
Fixes #51570.

File:
1 edited

Legend:

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

    r49224 r49226  
    649649
    650650/**
     651 * Block currently being parsed.
     652 *
     653 * @type array
     654*/
     655global $current_parsed_block;
     656
     657$current_parsed_block = array(
     658    'blockName'  => null,
     659    'attributes' => null,
     660);
     661
     662/**
    651663 * Renders a single block into a HTML string.
    652664 *
    653665 * @since 5.0.0
    654666 *
    655  * @global WP_Post  $post     The post to edit.
    656  * @global WP_Query $wp_query WordPress Query object.
     667 * @global array    $current_parsed_block Block currently being parsed.
     668 * @global WP_Post  $post                 The post to edit.
     669 * @global WP_Query $wp_query             WordPress Query object.
     670 * @global WP_Query $wp_query             WordPress Query object.
    657671 *
    658672 * @param array $parsed_block A single parsed block object.
     
    660674 */
    661675function render_block( $parsed_block ) {
    662     global $post, $wp_query;
     676    global $post, $wp_query, $current_parsed_block;
    663677
    664678    /**
     
    674688        return $pre_render;
    675689    }
     690
     691    $current_parsed_block = $parsed_block;
    676692
    677693    $source_block = $parsed_block;
Note: See TracChangeset for help on using the changeset viewer.