Changeset 37783
- Timestamp:
- 06/21/2016 02:20:50 PM (8 years ago)
- Location:
- branches/4.5/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5/src/wp-admin/includes/class-wp-media-list-table.php
r36887 r37783 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> -
branches/4.5/src/wp-includes/post-template.php
r37250 r37783 1466 1466 * @param string|bool $text If string, will be link text. Default false. 1467 1467 */ 1468 return apply_filters( 'wp_get_attachment_link', "<a href=' $url'>$link_text</a>", $id, $size, $permalink, $icon, $text );1468 return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text ); 1469 1469 } 1470 1470
Note: See TracChangeset
for help on using the changeset viewer.