Changeset 61671
- Timestamp:
- 02/18/2026 06:11:15 AM (2 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-includes/block-supports/aria-label.php (modified) (1 diff)
-
tests/phpunit/tests/block-supports/aria-label.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/aria-label.php
r59925 r61671 50 50 51 51 $has_aria_label_support = block_has_support( $block_type, array( 'ariaLabel' ), false ); 52 if ( ! $has_aria_label_support ) { 52 if ( 53 ! $has_aria_label_support || 54 wp_should_skip_block_supports_serialization( $block_type, 'ariaLabel' ) 55 ) { 53 56 return array(); 54 57 } -
trunk/tests/phpunit/tests/block-supports/aria-label.php
r59925 r61671 45 45 46 46 /** 47 * Tests that positionblock support works as expected.47 * Tests that aria-label block support works as expected. 48 48 * 49 49 * @ticket 62919 50 * @ticket 64594 50 51 * 51 52 * @dataProvider data_aria_label_block_support … … 53 54 * @param boolean|array $support Aria label block support configuration. 54 55 * @param string $value Aria label value for attribute object. 55 * @param array $expected Expected aria label block support styles.56 * @param array $expected Expected aria-label attributes. 56 57 */ 57 58 public function test_wp_apply_aria_label_support( $support, $value, $expected ) { … … 83 84 'expected' => array(), 84 85 ), 86 'aria-label attribute is not applied when serialization is skipped' => array( 87 'support' => array( 88 '__experimentalSkipSerialization' => true, 89 ), 90 'value' => 'Label', 91 'expected' => array(), 92 ), 85 93 ); 86 94 }
Note: See TracChangeset
for help on using the changeset viewer.