--- /wp-includes/post-template.php	Sun Jul 24 13:12:23 2016
+++ /wp-includes/temp/post-template.php	Sun Jul 24 14:08:32 2016
@@ -1452,10 +1452,6 @@
 	if ( trim( $link_text ) == '' )
 		$link_text = $_post->post_title;

-	// If no title set, fallback to filename
-	if ( trim( $link_text ) == '' )
-		$link_text = basename($_post->guid);
-
 	/**
 	 * Filter a retrieved attachment page link.
 	 *
