Index: wp-testcase/test_includes_formatting.php
===================================================================
--- wp-testcase/test_includes_formatting.php	(revision 481)
+++ wp-testcase/test_includes_formatting.php	(working copy)
@@ -357,6 +357,17 @@
 		$this->assertEquals($invalid_nest, wptexturize($invalid_nest));
 
 	}
+	
+	function test_escaped_quotes_17571() {
+		$this->knownWPBug(17571);
+		$this->assertEquals('&#8220;left half&#8221;', wptexturize('\"left half"'));
+		$this->assertEquals('&#8220;right half&#8221;', wptexturize('"right half\"'));
+		$this->assertEquals('&#8220;both&#8221;', wptexturize('\"both\"'));
+		$this->assertEquals('&#8220;neither&#8221;', wptexturize('"neither"'));
+		$this->assertEquals('&#8220;nested &#8220;both&#8221; quotes&#8221;', wptexturize('\"nested \"both\" quotes\"'));
+		$this->assertEquals("&#8216;apostrophes, too&#8217;", wptexturize("'apostrophes, too'"));
+		$this->assertEquals("&#8216;apostrophes and &#8220;escaped&#8221; quotes all together&#8217;", wptexturize("\'apostrophes and \"escaped\" quotes all together\'"));
+	}
 
 	//WP Ticket #1418
 	function test_bracketed_quotes_1418() {
