Make WordPress Core

Ticket #54698: 54698.diff

File 54698.diff, 1.5 KB (added by SergeyBiryukov, 2 years ago)
  • src/wp-includes/kses.php

     
    293293                'q'          => array(
    294294                        'cite' => true,
    295295                ),
     296                'rb'         => array(),
     297                'rp'         => array(),
     298                'rt'         => array(),
     299                'rtc'        => array(),
     300                'ruby'       => array(),
    296301                's'          => array(),
    297302                'samp'       => array(),
    298303                'span'       => array(
  • tests/phpunit/tests/kses.php

     
    858858        /**
    859859         * @ticket 34063
    860860         */
    861         public function test_bdo() {
     861        public function test_bdo_tag_allowed() {
    862862                global $allowedposttags;
    863863
    864864                $input = '<p>This is <bdo dir="rtl">a BDO tag</bdo>. Weird, <bdo dir="ltr">right?</bdo></p>';
     
    867867        }
    868868
    869869        /**
     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        /**
    870881         * @ticket 35079
    871882         */
    872         public function test_ol_reversed() {
     883        public function test_ol_reversed_attribute_allowed() {
    873884                global $allowedposttags;
    874885
    875886                $input = '<ol reversed="reversed"><li>Item 1</li><li>Item 2</li><li>Item 3</li></ol>';