Changeset 49310 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 10/26/2020 08:29:04 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r49226 r49310 649 649 650 650 /** 651 * Block currently being parsed.652 *653 * @type array654 */655 global $current_parsed_block;656 657 $current_parsed_block = array(658 'blockName' => null,659 'attributes' => null,660 );661 662 /**663 651 * Renders a single block into a HTML string. 664 652 * 665 653 * @since 5.0.0 666 654 * 667 * @global array $current_parsed_block Block currently being parsed.668 655 * @global WP_Post $post The post to edit. 669 656 * @global WP_Query $wp_query WordPress Query object. … … 674 661 */ 675 662 function render_block( $parsed_block ) { 676 global $post, $wp_query , $current_parsed_block;663 global $post, $wp_query; 677 664 678 665 /** … … 688 675 return $pre_render; 689 676 } 690 691 $current_parsed_block = $parsed_block;692 677 693 678 $source_block = $parsed_block;
Note: See TracChangeset
for help on using the changeset viewer.