Changeset 43813
- Timestamp:
- 10/24/2018 01:18:38 AM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/kses.php
r43781 r43813 67 67 'name' => true, 68 68 'target' => true, 69 'download' => array( 70 'valueless' => 'y', 71 ), 69 72 ), 70 73 'abbr' => array(), -
branches/5.0/tests/phpunit/tests/kses.php
r43781 r43813 47 47 'name' => 'name', 48 48 'target' => '_blank', 49 'download' => '', 49 50 ); 50 51 51 52 foreach ( $attributes as $name => $value ) { 52 $string = "<a $name='$value'>I link this</a>"; 53 $expect_string = "<a $name='" . trim( $value, ';' ) . "'>I link this</a>"; 53 if ( $value ) { 54 $attr = "$name='$value'"; 55 $expected_attr = "$name='" . trim( $value, ';' ) . "'"; 56 } else { 57 $attr = $expected_attr = $name; 58 } 59 $string = "<a $attr>I link this</a>"; 60 $expect_string = "<a $expected_attr>I link this</a>"; 54 61 $this->assertEquals( $expect_string, wp_kses( $string, $allowedposttags ) ); 55 62 }
Note: See TracChangeset
for help on using the changeset viewer.