diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
index 8d51492a13..201787a252 100644
|
|
|
function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa |
| 2263 | 2263 | '%c2%b0', |
| 2264 | 2264 | '%e2%80%a6', |
| 2265 | 2265 | '%e2%84%a2', |
| | 2266 | // Bullets characters. |
| | 2267 | '%e2%80%a2', |
| | 2268 | '%e2%80%a3', |
| | 2269 | '%e2%97%a6', |
| | 2270 | '%e2%81%83', |
| | 2271 | '%e2%81%8c', |
| | 2272 | '%e2%81%8d', |
| | 2273 | '%e2%97%98', |
| 2266 | 2274 | // Acute accents. |
| 2267 | 2275 | '%c2%b4', |
| 2268 | 2276 | '%cb%8a', |
diff --git tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php
index c3059614e3..3efb449850 100644
|
|
|
class Tests_Formatting_SanitizeTitleWithDashes extends WP_UnitTestCase { |
| 140 | 140 | $this->assertEquals( 'aaaa', sanitize_title_with_dashes( 'ááa´aˊ', '', 'save' ) ); |
| 141 | 141 | } |
| 142 | 142 | |
| | 143 | /** |
| | 144 | * @ticket 49791 |
| | 145 | */ |
| | 146 | public function test_replaces_bullets() { |
| | 147 | $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title • Amazing', '', 'save' ) ); |
| | 148 | $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title ‣ Amazing', '', 'save' ) ); |
| | 149 | $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title ⁃ Amazing', '', 'save' ) ); |
| | 150 | $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title ⁌ Amazing', '', 'save' ) ); |
| | 151 | $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title ⁍ Amazing', '', 'save' ) ); |
| | 152 | $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title ◘ Amazing', '', 'save' ) ); |
| | 153 | $this->assertEquals( 'fancy-title-amazing', sanitize_title_with_dashes( 'Fancy Title ◦ Amazing', '', 'save' ) ); |
| | 154 | } |
| | 155 | |
| 143 | 156 | } |