'classname', 'id' => 'id', 'style' => 'color: red;', 'style' => 'color: red', 'style' => 'color: red; text-align:center', 'style' => 'color: red; text-align:center;', 'title' => 'title', ); foreach ( $attributes as $name => $value ) { $string = "
1 WordPress Avenue, The Internet."; $expect_string = "1 WordPress Avenue, The Internet."; $this->assertEquals( $expect_string, wp_kses( $string, $allowedposttags ) ); } } /** * @ticket 20210 */ function test_wp_filter_post_kses_a() { global $allowedposttags; $attributes = array( 'class' => 'classname', 'id' => 'id', 'style' => 'color: red;', 'title' => 'title', 'href' => 'http://example.com', 'rel' => 'related', 'rev' => 'revision', 'name' => 'name', 'target' => '_blank', ); foreach ( $attributes as $name => $value ) { $string = "I link this"; $expect_string = "I link this"; $this->assertEquals( $expect_string, wp_kses( $string, $allowedposttags ) ); } } /** * @ticket 20210 */ function test_wp_filter_post_kses_abbr() { global $allowedposttags; $attributes = array( 'class' => 'classname', 'id' => 'id', 'style' => 'color: red;', 'title' => 'title', ); foreach ( $attributes as $name => $value ) { $string = "WP"; $expect_string = "WP"; $this->assertEquals( $expect_string, wp_kses( $string, $allowedposttags ) ); } } function test_feed_links() { global $allowedposttags; $content = <<This is a BDO tag. Weird, right?
'; $this->assertEquals( $input, wp_kses( $input, $allowedposttags ) ); } /** * @ticket 35079 */ function test_ol_reversed() { global $allowedposttags; $input = '