Changeset 34163 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 09/15/2015 02:49:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r34059 r34163 63 63 echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />'; 64 64 echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>'; 65 $title = $post->post_title ? $post->post_title : wp_basename( $post->guid ); // Title shouldn't ever be empty, but use filename just in case. 65 66 // Title shouldn't ever be empty, but use filename just in case. 67 $file = get_attached_file( $post->ID ); 68 $title = $post->post_title ? $post->post_title : wp_basename( $file ); 66 69 echo '<div class="filename new"><span class="title">' . esc_html( wp_html_excerpt( $title, 60, '…' ) ) . '</span></div>'; 67 70 break;
Note: See TracChangeset
for help on using the changeset viewer.