Ticket #47912: 47912.diff
File 47912.diff, 1.4 KB (added by , 5 years ago) |
---|
-
src/wp-includes/formatting.php
2270 2270 '%cc%80', 2271 2271 '%cc%84', 2272 2272 '%cc%8c', 2273 // non-visible characters 2274 '%e2%80%80', 2275 '%e2%80%81', 2276 '%e2%80%82', 2277 '%e2%80%83', 2278 '%e2%80%84', 2279 '%e2%80%85', 2280 '%e2%80%86', 2281 '%e2%80%87', 2282 '%e2%80%88', 2283 '%e2%80%89', 2284 '%e2%80%8a', 2285 '%e2%80%8b', 2286 '%e2%80%8c', 2287 '%e2%80%8d', 2288 '%e2%80%8e', 2289 '%e2%80%8f', 2290 '%e2%80%a8', 2291 '%e2%80%a9', 2292 '%e2%80%aa', 2293 '%e2%80%ab', 2294 '%e2%80%ac', 2295 '%e2%80%ad', 2296 '%e2%80%ae', 2297 '%e2%80%af', 2298 '%e2%80%9f', 2299 '%ef%bb%bf', 2273 2300 ), 2274 2301 '', 2275 2302 $title -
tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php
140 140 $this->assertEquals( 'aaaa', sanitize_title_with_dashes( 'ááa´aˊ', '', 'save' ) ); 141 141 } 142 142 143 /** 144 * @ticket 47912 145 */ 146 function test_replaces_non_visible_chars() { 147 // Non visible characters are included in the text. 148 $this->assertEquals( 'abcd', sanitize_title_with_dashes( 'a b c d', '', 'save' ) ); 149 } 150 143 151 }