diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php index 91bb04260a..03a4881fb3 100644 --- a/src/wp-includes/kses.php +++ b/src/wp-includes/kses.php @@ -249,6 +249,11 @@ if ( ! CUSTOM_TAGS ) { 'q' => array( 'cite' => true, ), + 'rb' => array(), + 'rp' => array(), + 'rt' => array(), + 'rtc' => array(), + 'ruby' => array(), 's' => array(), 'samp' => array(), 'span' => array( diff --git a/tests/phpunit/tests/kses.php b/tests/phpunit/tests/kses.php index 57dc2ae402..fc6882242f 100644 --- a/tests/phpunit/tests/kses.php +++ b/tests/phpunit/tests/kses.php @@ -861,7 +861,7 @@ EOF; /** * @ticket 34063 */ - public function test_bdo() { + public function test_bdo_tag_allowed() { global $allowedposttags; $input = '

This is a BDO tag. Weird, right?

'; @@ -869,10 +869,21 @@ EOF; $this->assertSame( $input, wp_kses( $input, $allowedposttags ) ); } + /** + * @ticket 54698 + */ + public function test_ruby_tag_allowed() { + global $allowedposttags; + + $input = ': Star, Étoile.'; + + $this->assertSame( $input, wp_kses( $input, $allowedposttags ) ); + } + /** * @ticket 35079 */ - public function test_ol_reversed() { + public function test_ol_reversed_attribute_allowed() { global $allowedposttags; $input = '
  1. Item 1
  2. Item 2
  3. Item 3
';