Changeset 56226 for trunk/tests/phpunit/tests/blocks/supportedStyles.php
- Timestamp:
- 07/13/2023 11:32:19 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/supportedStyles.php
r55457 r56226 696 696 $this->register_block_type( 'core/example', $block_type_settings ); 697 697 698 $block = array(698 $block = array( 699 699 'blockName' => 'core/example', 700 700 'attrs' => array(), … … 703 703 'innerHTML' => array(), 704 704 ); 705 $wp_block = new WP_Block( $block ); 705 706 706 707 // Custom error handler's see Warnings even if they are suppressed by the @ symbol. … … 715 716 // HTML5 elements like <time> are not supported by the DOMDocument parser used by the block supports feature. 716 717 // This specific example is emitted by the "Display post date" setting in the latest-posts block. 717 apply_filters( 'render_block', '<div><time datetime="2020-06-18T04:01:43+10:00" class="wp-block-latest-posts__post-date">June 18, 2020</time></div>', $block );718 apply_filters( 'render_block', '<div><time datetime="2020-06-18T04:01:43+10:00" class="wp-block-latest-posts__post-date">June 18, 2020</time></div>', $block, $wp_block ); 718 719 719 720 restore_error_handler();
Note: See TracChangeset
for help on using the changeset viewer.