Changeset 8600 for trunk/wp-includes/media.php
- Timestamp:
- 08/09/2008 05:36:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r8358 r8600 306 306 if ( is_array($size) || empty($size) || empty($imagedata['sizes'][$size]) ) 307 307 return false; 308 308 309 309 $data = $imagedata['sizes'][$size]; 310 310 // include the full filesystem path of the intermediate file … … 320 320 // returns an array (url, width, height), or false if no image is available 321 321 function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon = false) { 322 322 323 323 // get a thumbnail or intermediate image if there is one 324 324 if ( $image = image_downsize($attachment_id, $size) ) … … 347 347 $html = '<img src="'.attribute_escape($src).'" '.$hwstring.'class="attachment-'.attribute_escape($size).'" alt="" />'; 348 348 } 349 349 350 350 return $html; 351 351 } … … 367 367 'caption' => '' 368 368 ), $attr)); 369 369 370 370 if ( 1 > (int) $width || empty($caption) ) 371 371 return $content; 372 372 373 373 if ( $id ) $id = 'id="' . $id . '" '; 374 374 375 375 return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">' 376 376 . $content . '<p class="wp-caption-text">' . $caption . '</p></div>'; … … 423 423 $columns = intval($columns); 424 424 $itemwidth = $columns > 0 ? floor(100/$columns) : 100; 425 425 426 426 $output = apply_filters('gallery_style', " 427 427 <style type='text/css'>
Note: See TracChangeset
for help on using the changeset viewer.