Ticket #37343: 37343-03.patch
File 37343-03.patch, 530 bytes (added by , 7 years ago) |
---|
-
wp-includes/post-template.php
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index be15252..3d91d2b 100644
a b function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals 1462 1462 if ( trim( $link_text ) == '' ) 1463 1463 $link_text = $_post->post_title; 1464 1464 1465 // If no title set, fallback to filename 1466 if ( trim( $link_text ) == '' ) 1467 $link_text = basename($_post->guid); 1468 1465 1469 /** 1466 1470 * Filters a retrieved attachment page link. 1467 1471 *