Make WordPress Core


Ignore:
Timestamp:
08/09/2008 05:36:14 AM (17 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r8358 r8600  
    306306    if ( is_array($size) || empty($size) || empty($imagedata['sizes'][$size]) )
    307307        return false;
    308        
     308
    309309    $data = $imagedata['sizes'][$size];
    310310    // include the full filesystem path of the intermediate file
     
    320320// returns an array (url, width, height), or false if no image is available
    321321function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon = false) {
    322    
     322
    323323    // get a thumbnail or intermediate image if there is one
    324324    if ( $image = image_downsize($attachment_id, $size) )
     
    347347        $html = '<img src="'.attribute_escape($src).'" '.$hwstring.'class="attachment-'.attribute_escape($size).'" alt="" />';
    348348    }
    349    
     349
    350350    return $html;
    351351}
     
    367367        'caption' => ''
    368368    ), $attr));
    369    
     369
    370370    if ( 1 > (int) $width || empty($caption) )
    371371        return $content;
    372    
     372
    373373    if ( $id ) $id = 'id="' . $id . '" ';
    374    
     374
    375375    return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'
    376376    . $content . '<p class="wp-caption-text">' . $caption . '</p></div>';
     
    423423    $columns = intval($columns);
    424424    $itemwidth = $columns > 0 ? floor(100/$columns) : 100;
    425    
     425
    426426    $output = apply_filters('gallery_style', "
    427427        <style type='text/css'>
Note: See TracChangeset for help on using the changeset viewer.