Ticket #5824: 5824.diff
| File 5824.diff, 1.6 KB (added by , 18 years ago) |
|---|
-
wp-admin/includes/media.php
444 444 $thumb_url = wp_get_attachment_thumb_url( $attachment_id ); 445 445 if ( empty($thumb_url) ) 446 446 $thumb_url = wp_mime_type_icon( $attachment_id ); 447 if ( empty($thumb_url) && ( $post =& get_post( $attachment_id ) ) && substr($post->post_mime_type, 0, 5) == 'image' ) 448 $thumb_url = wp_get_attachment_url( $attachment_id ); 447 449 448 450 $title_label = __('Title'); 449 451 $description_label = __('Description'); … … 493 495 494 496 $item .= " 495 497 </fieldset> 496 <p ><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p>498 <p class='delete'><a id='del$attachment_id' class='delete' href='$delete_href'>$delete</a></p> 497 499 </div> 498 500 "; 499 501 -
wp-admin/css/media.css
139 139 border-right: 3px solid #99d; 140 140 } 141 141 .multimedia-item .thumbnail { 142 142 max-width: 128px; 143 max-height: 128px; 143 144 } 144 145 .multimedia-item .pinkynail { 145 146 position: absolute; 146 top: 3px; 147 left: 3px; 147 top: 2px; 148 left: 2px; 149 height: 32px; 148 150 max-width: 40px; 149 max-height: 40px;150 151 } 151 152 .describe { 152 153 display: none; … … 166 167 .describe label { 167 168 padding-right: 1em; 168 169 } 169 170 a.delete { 170 p.delete { 171 171 clear: both; 172 margin: 0; 172 173 } 174 p.delete a { 175 padding: 4px; 176 } 173 177 .describe-toggle-on, .describe-toggle-off { 174 178 line-height: 36px; 175 179 z-index: 2;