Changeset 62531
- Timestamp:
- 06/19/2026 11:02:30 AM (19 hours ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-includes/kses.php (modified) (1 diff)
-
tests/phpunit/tests/kses.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r62530 r62531 110 110 'br' => array(), 111 111 'button' => array( 112 'command' => true, 113 'commandfor' => true, 112 114 'disabled' => true, 113 115 'name' => true, -
trunk/tests/phpunit/tests/kses.php
r62530 r62531 1930 1930 1931 1931 /** 1932 * Test that Invoker Commands API attributes are preserved on buttons in post content. 1933 * 1934 * @ticket 64576 1935 */ 1936 public function test_wp_kses_button_invoker_command_attributes() { 1937 $html = '<button type="button" commandfor="my-popover" command="toggle-popover">Toggle</button><div id="my-popover" popover>Content</div>'; 1938 1939 $this->assertEqualHTML( $html, wp_kses_post( $html ) ); 1940 } 1941 1942 /** 1932 1943 * Test that object tags are allowed under limited circumstances. 1933 1944 *
Note: See TracChangeset
for help on using the changeset viewer.