Ticket #33408: 33408.3.patch
File 33408.3.patch, 980 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/async-upload.php
61 61 if ( $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ) ) 62 62 echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />'; 63 63 echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>'; 64 $title = $post->post_title ? $post->post_title : wp_basename( $post->guid ); // title shouldn't ever be empty, but use filename just in cas.e64 $title = $post->post_title ? $post->post_title : wp_basename( $post->guid ); // Title shouldn't ever be empty, but use filename just in case. 65 65 echo '<div class="filename new"><span class="title">' . esc_html( wp_html_excerpt( $title, 60, '…' ) ) . '</span></div>'; 66 66 break; 67 67 case 2 :