Index: tests/formatting/WPTexturize.php
===================================================================
--- tests/formatting/WPTexturize.php	(revision 1023)
+++ tests/formatting/WPTexturize.php	(working copy)
@@ -172,4 +172,14 @@
 		$this->assertEquals('&nbsp;&#8220;Testing&#8221;', wptexturize('&nbsp;"Testing"'));
 		$this->assertEquals('&#38;&#8220;Testing&#8221;', wptexturize('&#38;"Testing"'));
 	}
+	
+	/**
+	 * @ticket 12690
+	 */
+	public function test_brackets_in_urls() {
+		$original = '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy </a> ]';
+		$expected = '[ photos by <a href="http://example.com/?a[]=1&#038;a[]=2"> this guy </a> ]';
+		$texturized = wptexturize( $original );
+		$this->assertEquals( $expected, $texturized );
+	}
 }
