- Timestamp:
- 10/26/2020 08:29:04 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-block-supports.php
r49226 r49310 97 97 * 98 98 * @param array $block Block to render. 99 * 100 * @return string Rendered output for the current block. 99 101 */ 100 102 private function render_example_block( $block ) { 101 global $current_parsed_block;102 $current_parsed_block= $block;103 $wrapper_attributes = get_block_wrapper_attributes(103 WP_Block_Supports::init(); 104 WP_Block_Supports::$block_to_render = $block; 105 $wrapper_attributes = get_block_wrapper_attributes( 104 106 array( 105 107 'class' => 'foo-bar-class',
Note: See TracChangeset
for help on using the changeset viewer.