Changeset 50987
- Timestamp:
- 05/25/2021 01:42:20 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r50923 r50987 252 252 'align' => true, 253 253 'value' => true, 254 ), 255 'main' => array( 256 'align' => true, 257 'dir' => true, 258 'lang' => true, 259 'xml:lang' => true, 254 260 ), 255 261 'map' => array( -
trunk/tests/phpunit/tests/kses.php
r50923 r50987 1479 1479 $this->assertSame( $html, wp_kses_post( $html ) ); 1480 1480 } 1481 1482 /** 1483 * Test filtering a standard main tag. 1484 * 1485 * @ticket 53156 1486 */ 1487 function test_wp_kses_main_tag_standard_attributes() { 1488 $test = array( 1489 '<main', 1490 'class="wp-group-block"', 1491 'style="padding:10px"', 1492 '/>', 1493 ); 1494 1495 $html = implode( ' ', $test ); 1496 1497 $this->assertSame( $html, wp_kses_post( $html ) ); 1498 } 1481 1499 }
Note: See TracChangeset
for help on using the changeset viewer.