Index: tests/formatting/WPTexturize.php
===================================================================
--- tests/formatting/WPTexturize.php	(revision 1183)
+++ tests/formatting/WPTexturize.php	(working copy)
@@ -179,4 +179,22 @@
 	function test_apostrophes_before_primes() {
 		$this->assertEquals( 'WordPress 3.5&#8217;s release date', wptexturize( "WordPress 3.5's release date" ) );
 	}
+
+	/**
+     * @ticket 23185
+	 */
+	function test_spaces_around_hyphens() {
+	
+	    function performTests($tester, $hyphenString, $expectedTranslation) {
+            $tester->assertEquals( ' ' . $expectedTranslation . ' ', wptexturize( ' ' . $hyphenString . ' ' ) );
+            $tester->assertEquals( '&nbsp;' . $expectedTranslation . '&nbsp;', wptexturize( '&nbsp;' . $hyphenString . '&nbsp;' ) );
+            $tester->assertEquals( ' ' . $expectedTranslation . '&nbsp;', wptexturize( ' ' . $hyphenString . '&nbsp;' ) );
+            $tester->assertEquals( '&nbsp;' . $expectedTranslation . ' ', wptexturize( '&nbsp;' . $hyphenString . ' ') );
+	    }
+	    
+	    performTests($this, '-', '&#8211;');
+	    performTests($this, '--', '&#8212;');
+	}
 }
+
+
