Changeset 7811 for branches/2.5/wp-includes/media.php
- Timestamp:
- 04/24/2008 10:31:37 PM (19 years ago)
- File:
-
- 1 edited
-
branches/2.5/wp-includes/media.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-includes/media.php
r7702 r7811 288 288 if ( is_array($size) || empty($size) || empty($imagedata['sizes'][$size]) ) 289 289 return false; 290 290 291 291 $data = $imagedata['sizes'][$size]; 292 292 // include the full filesystem path of the intermediate file … … 302 302 // returns an array (url, width, height), or false if no image is available 303 303 function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon = false) { 304 304 305 305 // get a thumbnail or intermediate image if there is one 306 306 if ( $image = image_downsize($attachment_id, $size) ) … … 329 329 $html = '<img src="'.attribute_escape($src).'" '.$hwstring.'class="attachment-'.attribute_escape($size).'" alt="" />'; 330 330 } 331 331 332 332 return $html; 333 333 } 334 334 335 add_shortcode('gallery', 'gallery_shortcode' , true);335 add_shortcode('gallery', 'gallery_shortcode'); 336 336 337 337 function gallery_shortcode($attr) { … … 378 378 $columns = intval($columns); 379 379 $itemwidth = $columns > 0 ? floor(100/$columns) : 100; 380 380 381 381 $output = apply_filters('gallery_style', " 382 382 <style type='text/css'>
Note:
See TracChangeset
for help on using the changeset viewer.