mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
KSES: Allow lang, xml:lang, dir attributes globally.
Globally permit the `lang`, `xml:lang`, and `dir` attributes on all elements rather than a subset in accordance with the HTML specification. Props upsuper, SergeyBiryukov, mukesh27, audrasjb. Fixes #54699. git-svn-id: https://develop.svn.wordpress.org/trunk@52968 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -494,9 +494,12 @@ EOF;
|
||||
|
||||
foreach ( $tags as $tag ) {
|
||||
$this->assertTrue( $tag['class'] );
|
||||
$this->assertTrue( $tag['dir'] );
|
||||
$this->assertTrue( $tag['id'] );
|
||||
$this->assertTrue( $tag['lang'] );
|
||||
$this->assertTrue( $tag['style'] );
|
||||
$this->assertTrue( $tag['title'] );
|
||||
$this->assertTrue( $tag['xml:lang'] );
|
||||
}
|
||||
|
||||
$this->assertSame( $allowedtags, wp_kses_allowed_html( 'data' ) );
|
||||
|
||||
Reference in New Issue
Block a user