Changeset 49695 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 11/25/2020 01:18:25 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r49608 r49695 663 663 664 664 /** 665 * Allows render_block() or WP_Block::render() to be short-circuited, by 666 * returning a non-null value. 665 * Allows render_block() to be short-circuited, by returning a non-null value. 667 666 * 668 667 * @since 5.1.0 … … 675 674 return $pre_render; 676 675 } 676 677 $source_block = $parsed_block; 678 679 /** 680 * Filters the block being rendered in render_block(), before it's processed. 681 * 682 * @since 5.1.0 683 * 684 * @param array $parsed_block The block being rendered. 685 * @param array $source_block An un-modified copy of $parsed_block, as it appeared in the source content. 686 */ 687 $parsed_block = apply_filters( 'render_block_data', $parsed_block, $source_block ); 677 688 678 689 $context = array(); … … 697 708 } 698 709 710 /** 711 * Filters the default context provided to a rendered block. 712 * 713 * @since 5.5.0 714 * 715 * @param array $context Default context. 716 * @param array $parsed_block Block being rendered, filtered by `render_block_data`. 717 */ 718 $context = apply_filters( 'render_block_context', $context, $parsed_block ); 719 699 720 $block = new WP_Block( $parsed_block, $context ); 700 721
Note: See TracChangeset
for help on using the changeset viewer.