Changeset 27735
- Timestamp:
- 03/26/2014 12:44:42 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r27733 r27735 1195 1195 } 1196 1196 1197 $supports_thumbs = ( current_theme_supports( 'post-thumbnails', "attachment:$type" ) && post_type_supports( "attachment:$type", 'thumbnail' ) )1198 || $images;1199 1200 1197 $outer = 22; // default padding and border of wrapper 1201 1198 … … 1256 1253 } 1257 1254 1258 if ( $ supports_thumbs ) {1255 if ( $images ) { 1259 1256 $id = get_post_thumbnail_id( $attachment->ID ); 1260 1257 if ( ! empty( $id ) ) { … … 1262 1259 $track['image'] = compact( 'src', 'width', 'height' ); 1263 1260 list( $src, $width, $height ) = wp_get_attachment_image_src( $id, 'thumbnail' ); 1261 $track['thumb'] = compact( 'src', 'width', 'height' ); 1262 } else { 1263 $src = wp_mime_type_icon( $attachment->ID ); 1264 $width = 48; 1265 $height = 64; 1266 $track['image'] = compact( 'src', 'width', 'height' ); 1264 1267 $track['thumb'] = compact( 'src', 'width', 'height' ); 1265 1268 }
Note: See TracChangeset
for help on using the changeset viewer.