Changeset 22759
- Timestamp:
- 11/21/2012 02:04:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22757 r22759 1056 1056 global $redir_tab; 1057 1057 1058 echo "<a class='toggle describe-toggle-on' href='#'>$toggle_on</a>";1059 1060 1058 if ( ( $attachment_id = intval( $attachment_id ) ) && $thumb_url = wp_get_attachment_image_src( $attachment_id, 'thumbnail', true ) ) 1061 1059 $thumb_url = $thumb_url[0]; 1062 1060 else 1063 1061 $thumb_url = false; 1064 1065 $display_title = ( !empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case1066 $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>";1069 1062 1070 1063 $post = get_post( $attachment_id );
Note: See TracChangeset
for help on using the changeset viewer.