Changeset 37774
- Timestamp:
- 06/21/2016 02:18:27 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r37488 r37774 396 396 <?php 397 397 $file = get_attached_file( $post->ID ); 398 echo wp_basename( $file);398 echo esc_html( wp_basename( $file ) ); 399 399 ?> 400 400 </p> -
trunk/src/wp-includes/post-template.php
r37706 r37774 1476 1476 * @param string|bool $text If string, will be link text. Default false. 1477 1477 */ 1478 return apply_filters( 'wp_get_attachment_link', "<a href=' $url'>$link_text</a>", $id, $size, $permalink, $icon, $text );1478 return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text ); 1479 1479 } 1480 1480
Note: See TracChangeset
for help on using the changeset viewer.