Changeset 28721
- Timestamp:
- 06/10/2014 02:42:35 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r28719 r28721 88 88 // Pattern-based replacements of characters. 89 89 $dynamic = array(); 90 91 92 93 94 95 96 97 90 98 91 99 // '99 '99s '99's (apostrophe) -
trunk/tests/phpunit/tests/formatting/WPTexturize.php
r28719 r28721 155 155 $this->assertEquals('“12345”', wptexturize('"12345"')); 156 156 $this->assertEquals('‘12345’', wptexturize('\'12345\'')); 157 $this->assertEquals('“a 9′ plus a ‘9’, maybe a 9′ ‘9’ ”', wptexturize('"a 9\' plus a \'9\', maybe a 9\' \'9\'"'));158 $this->assertEquals('<p>̵ 6;99<br />‘123’<br />’tis<br />‘s’</p>', wptexturize('<p>\'99<br />\'123\'<br />\'tis<br />\'s\'</p>'));157 $this->assertEquals('“a 9′ plus a ‘9’, maybe a 9′ ‘9’"')); 158 $this->assertEquals('<p>̵99<br />‘123’<br />’tis<br />‘s’</p>', wptexturize('<p>\'99<br />\'123\'<br />\'tis<br />\'s\'</p>')); 159 159 } 160 160 … … 314 314 ), 315 315 array( 316 "word '99's word", // Due to the logic error, second apos becomes a prime. See ticket #22823317 "word ’99′s word",318 ),319 array(320 "word '99'samsonite",321 "word ’99′samsonite",322 ),323 array(324 316 "according to our source, '33% of all students scored less than 50' on the test.", // Apostrophes and primes have priority over quotes 325 317 "according to our source, ’33% of all students scored less than 50′ on the test.", 326 318 ), 327 array(328 "word '99' word", // See ticket #8775329 "word ’99′ word",330 ),331 319 ); 332 320 } … … 1027 1015 ); 1028 1016 } 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1029 1069 }
Note: See TracChangeset
for help on using the changeset viewer.