Changeset 22755 for trunk/wp-admin/includes/media.php
- Timestamp:
- 11/21/2012 01:05:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22749 r22755 1056 1056 global $redir_tab; 1057 1057 1058 echo "<a class='toggle describe-toggle-on' href='#'>$toggle_on</a>"; 1059 1058 1060 if ( ( $attachment_id = intval( $attachment_id ) ) && $thumb_url = wp_get_attachment_image_src( $attachment_id, 'thumbnail', true ) ) 1059 1061 $thumb_url = $thumb_url[0]; 1060 1062 else 1061 1063 $thumb_url = false; 1064 1065 $display_title = ( !empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case 1066 $display_title = $show_title ? "<div class='filename new'><span class='title'>" . wp_html_excerpt( $display_title, 60 ) . "</span></div>" : ''; 1067 1068 echo "<p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' /></a></p>"; 1062 1069 1063 1070 $post = get_post( $attachment_id );
Note: See TracChangeset
for help on using the changeset viewer.