Make WordPress Core


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

KSES: Allow the reversed attribute for <ol>.

Props lancewillett.
Fixes #35079.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.