Make WordPress Core

Changeset 35960


Ignore:
Timestamp:
12/16/2015 09:53:18 AM (11 years ago)
Author:
SergeyBiryukov
Message:

KSES: Allow the reversed attribute for <ol>.

Props lancewillett.
Fixes #35079.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r35141 r35960  
    399399                        'start' => true,
    400400                        'type' => true,
     401                        'reversed' => true,
    401402                ),
    402403                'var' => array(),
  • trunk/tests/phpunit/tests/kses.php

    r35141 r35960  
    654654                $this->assertEquals( $input, wp_kses( $input, $allowedposttags ) );
    655655        }
     656
     657        /**
     658         * @ticket 35079
     659         */
     660        function test_ol_reversed() {
     661                global $allowedposttags;
     662
     663                $input = '<ol reversed="reversed"><li>Item 1</li><li>Item 2</li><li>Item 3</li></ol>';
     664
     665                $this->assertEquals( $input, wp_kses( $input, $allowedposttags ) );
     666        }
    656667}
Note: See TracChangeset for help on using the changeset viewer.