diff --git a/src/wp-includes/kses.php b/src/wp-includes/kses.php index d34608b89f..20d6b9d5dd 100644 --- a/src/wp-includes/kses.php +++ b/src/wp-includes/kses.php @@ -398,6 +398,7 @@ if ( ! CUSTOM_TAGS ) { 'ol' => array( 'start' => true, 'type' => true, + 'reversed' => true, ), 'var' => array(), 'video' => array( diff --git a/tests/phpunit/tests/kses.php b/tests/phpunit/tests/kses.php index c4c1e8e24c..e105813449 100644 --- a/tests/phpunit/tests/kses.php +++ b/tests/phpunit/tests/kses.php @@ -653,4 +653,15 @@ EOF; $this->assertEquals( $input, wp_kses( $input, $allowedposttags ) ); } + + /** + * @ticket 35079 + */ + function test_ol_reversed() { + global $allowedposttags; + + $input = '