Ticket #54698: 54698.diff
File 54698.diff, 1.5 KB (added by , 2 years ago) |
---|
-
src/wp-includes/kses.php
293 293 'q' => array( 294 294 'cite' => true, 295 295 ), 296 'rb' => array(), 297 'rp' => array(), 298 'rt' => array(), 299 'rtc' => array(), 300 'ruby' => array(), 296 301 's' => array(), 297 302 'samp' => array(), 298 303 'span' => array( -
tests/phpunit/tests/kses.php
858 858 /** 859 859 * @ticket 34063 860 860 */ 861 public function test_bdo () {861 public function test_bdo_tag_allowed() { 862 862 global $allowedposttags; 863 863 864 864 $input = '<p>This is <bdo dir="rtl">a BDO tag</bdo>. Weird, <bdo dir="ltr">right?</bdo></p>'; … … 867 867 } 868 868 869 869 /** 870 * @ticket 54698 871 */ 872 public function test_ruby_tag_allowed() { 873 global $allowedposttags; 874 875 $input = '<ruby>✶<rp>: </rp><rt>Star</rt><rp>, </rp><rt lang="fr">Étoile</rt><rp>.</rp></ruby>'; 876 877 $this->assertSame( $input, wp_kses( $input, $allowedposttags ) ); 878 } 879 880 /** 870 881 * @ticket 35079 871 882 */ 872 public function test_ol_reversed () {883 public function test_ol_reversed_attribute_allowed() { 873 884 global $allowedposttags; 874 885 875 886 $input = '<ol reversed="reversed"><li>Item 1</li><li>Item 2</li><li>Item 3</li></ol>';