Index: tests/phpunit/tests/formatting/MakeClickable.php
===================================================================
--- tests/phpunit/tests/formatting/MakeClickable.php	(revision 25998)
+++ tests/phpunit/tests/formatting/MakeClickable.php	(working copy)
@@ -340,4 +340,30 @@
 			$this->assertEquals( $urls_expected[$key], make_clickable( $url ) );
 		}
 	}
+
+	/**
+	 * anchor tag contains both a URL and some words.
+	 *
+	 * @ticket 23050
+	 *
+	 */
+	function test_anchors_with_url_and_words() {
+		$urls_before = array(
+			'Hey! <a href="http://wordpress.org">http://wordpress.org is awesome</a> if you have clicks to give!',
+			'Hey! <a href="http://wordpress.org/">http://wordpress.org/ is awesome</a> if you have clicks to give!',
+			'Hey! (<a href="http://wordpress.org">http://wordpress.org is awesome</a>) if you have clicks to give!',
+			'Hey! <<a href="http://wordpress.org">http://wordpress.org is awesome</a>> if you have clicks to give!',
+			'Hey! < <a href="http://wordpress.org">http://wordpress.org is awesome</a> > if you have clicks to give!',
+		);
+		$urls_expected = array(
+			'Hey! <a href="http://wordpress.org">http://wordpress.org is awesome</a> if you have clicks to give!',
+			'Hey! <a href="http://wordpress.org/">http://wordpress.org/ is awesome</a> if you have clicks to give!',
+			'Hey! (<a href="http://wordpress.org">http://wordpress.org is awesome</a>) if you have clicks to give!',
+			'Hey! <<a href="http://wordpress.org">http://wordpress.org is awesome</a>> if you have clicks to give!',
+			'Hey! < <a href="http://wordpress.org">http://wordpress.org is awesome</a> > if you have clicks to give!',
+		);
+		foreach ($urls_before as $key => $url) {
+			$this->assertEquals( $urls_expected[$key], make_clickable( $url ) );
+		}
+	}
 }
