diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-04-25 09:03:55 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-04-25 09:03:55 +0000 |
| commit | 4dbe26b26fe556c71cc38e2531110bc63f351b4d (patch) | |
| tree | de454a939b6567f1eef16952ff4ba883548eb498 /wp-includes/media.php | |
| parent | bc31549fc8053f8bc6502c337707168d5e66c508 (diff) | |
WP Merge to revision 7826
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1266 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/media.php')
| -rw-r--r-- | wp-includes/media.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-includes/media.php b/wp-includes/media.php index e62be36..f43a2f0 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -287,7 +287,7 @@ function image_get_intermediate_size($post_id, $size='thumbnail') { if ( is_array($size) || empty($size) || empty($imagedata['sizes'][$size]) ) return false; - + $data = $imagedata['sizes'][$size]; // include the full filesystem path of the intermediate file if ( empty($data['path']) && !empty($data['file']) ) { @@ -301,7 +301,7 @@ function image_get_intermediate_size($post_id, $size='thumbnail') { // get an image to represent an attachment - a mime icon for files, thumbnail or intermediate size for images // returns an array (url, width, height), or false if no image is available function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon = false) { - + // get a thumbnail or intermediate image if there is one if ( $image = image_downsize($attachment_id, $size) ) return $image; @@ -328,11 +328,11 @@ function wp_get_attachment_image($attachment_id, $size='thumbnail', $icon = fals $size = join('x', $size); $html = '<img src="'.attribute_escape($src).'" '.$hwstring.'class="attachment-'.attribute_escape($size).'" alt="" />'; } - + return $html; } -add_shortcode('gallery', 'gallery_shortcode', true); +add_shortcode('gallery', 'gallery_shortcode'); function gallery_shortcode($attr) { global $post; @@ -377,7 +377,7 @@ function gallery_shortcode($attr) { $captiontag = tag_escape($captiontag); $columns = intval($columns); $itemwidth = $columns > 0 ? floor(100/$columns) : 100; - + $output = apply_filters('gallery_style', " <style type='text/css'> .gallery { |
