Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@8600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -305,7 +305,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']) ) {
|
||||
@@ -319,7 +319,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;
|
||||
@@ -346,7 +346,7 @@ 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;
|
||||
}
|
||||
|
||||
@@ -366,12 +366,12 @@ function img_caption_shortcode($attr, $content = null) {
|
||||
'width' => '',
|
||||
'caption' => ''
|
||||
), $attr));
|
||||
|
||||
|
||||
if ( 1 > (int) $width || empty($caption) )
|
||||
return $content;
|
||||
|
||||
|
||||
if ( $id ) $id = 'id="' . $id . '" ';
|
||||
|
||||
|
||||
return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'
|
||||
. $content . '<p class="wp-caption-text">' . $caption . '</p></div>';
|
||||
}
|
||||
@@ -422,7 +422,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 {
|
||||
|
||||
Reference in New Issue
Block a user