Index: /trunk/src/wp-includes/kses.php =================================================================== --- /trunk/src/wp-includes/kses.php (revision 35140) +++ /trunk/src/wp-includes/kses.php (revision 35141) @@ -98,4 +98,7 @@ ), 'b' => array(), + 'bdo' => array( + 'dir' => true, + ), 'big' => array(), 'blockquote' => array( Index: /trunk/tests/phpunit/tests/kses.php =================================================================== --- /trunk/tests/phpunit/tests/kses.php (revision 35140) +++ /trunk/tests/phpunit/tests/kses.php (revision 35141) @@ -375,5 +375,5 @@ $this->assertEquals( '∴', wp_kses_normalize_entities( '∴' ) ); } - + /** * Test removal of invalid binary data for HTML. @@ -412,5 +412,5 @@ ); } - + /** * Test removal of '\0' strings. @@ -424,5 +424,5 @@ return $this->assertEquals( $output, wp_kses( $input, $allowedposttags ) ); } - + function data_slash_zero_removal() { return array( @@ -643,3 +643,14 @@ ); } + + /** + * @ticket 34063 + */ + function test_bdo() { + global $allowedposttags; + + $input = '
This is a BDO tag. Weird, right?
'; + + $this->assertEquals( $input, wp_kses( $input, $allowedposttags ) ); + } }