KSES: Allow the reversed attribute for <ol>.

Props lancewillett.
Fixes #35079.

git-svn-id: https://develop.svn.wordpress.org/trunk@35960 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-12-16 09:53:18 +00:00
parent 959f377c3e
commit d727e3b516
2 changed files with 12 additions and 0 deletions

View File

@ -398,6 +398,7 @@ if ( ! CUSTOM_TAGS ) {
'ol' => array( 'ol' => array(
'start' => true, 'start' => true,
'type' => true, 'type' => true,
'reversed' => true,
), ),
'var' => array(), 'var' => array(),
'video' => array( 'video' => array(

View File

@ -653,4 +653,15 @@ EOF;
$this->assertEquals( $input, wp_kses( $input, $allowedposttags ) ); $this->assertEquals( $input, wp_kses( $input, $allowedposttags ) );
} }
/**
* @ticket 35079
*/
function test_ol_reversed() {
global $allowedposttags;
$input = '<ol reversed="reversed"><li>Item 1</li><li>Item 2</li><li>Item 3</li></ol>';
$this->assertEquals( $input, wp_kses( $input, $allowedposttags ) );
}
} }