Changeset 32851
- Timestamp:
- 06/19/2015 01:52:48 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r32850 r32851 687 687 } elseif ( $quote_style === 'single' ) { 688 688 $quote_style = ENT_NOQUOTES; 689 } 690 691 if ( ! $double_encode ) { 692 // Guarantee every &entity; is valid, convert &garbage; into &garbage; 693 // This is required for PHP < 5.4.0 because ENT_HTML401 flag is unavailable. 694 $string = wp_kses_normalize_entities( $string ); 689 695 } 690 696 -
trunk/tests/phpunit/tests/formatting/EscHtml.php
r32850 r32851 35 35 function test_ignores_existing_entities() { 36 36 $source = '& £ " &'; 37 $res = '& &#x 00A3; " &';37 $res = '& £ " &'; 38 38 $this->assertEquals( $res, esc_html($source) ); 39 39 } -
trunk/tests/phpunit/tests/formatting/WPSpecialchars.php
r32850 r32851 86 86 array( 87 87 'This & that, this & that, — " " Ú " " " " " $ ×', 88 'This & that, this & that, — " &QUOT; Ú &# 34; " " " " &dollar; ×',88 'This & that, this & that, — " &QUOT; Ú " " " " " &dollar; ×', 89 89 ), 90 90 array(
Note: See TracChangeset
for help on using the changeset viewer.