diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index be15252..785ce8c 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 ( trim( $link_text ) == '' ) |
| 1466 | $parts = pathinfo( get_attached_file( $_post->ID ) ); |
| 1467 | $link_text = esc_html( $parts['filename'] ); |
| 1468 | |
1465 | 1469 | /** |
1466 | 1470 | * Filters a retrieved attachment page link. |
1467 | 1471 | * |