Make WordPress Core


Ignore:
Timestamp:
04/24/2008 10:31:37 PM (19 years ago)
Author:
ryan
Message:

Revert [770] for 2.5 pending further discussion. see #6444

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/media.php

    r7702 r7811  
    288288        if ( is_array($size) || empty($size) || empty($imagedata['sizes'][$size]) )
    289289                return false;
    290 
     290               
    291291        $data = $imagedata['sizes'][$size];
    292292        // include the full filesystem path of the intermediate file
    … …  
    302302// returns an array (url, width, height), or false if no image is available
    303303function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon = false) {
    304 
     304       
    305305        // get a thumbnail or intermediate image if there is one
    306306        if ( $image = image_downsize($attachment_id, $size) )
    … …  
    329329                $html = '<img src="'.attribute_escape($src).'" '.$hwstring.'class="attachment-'.attribute_escape($size).'" alt="" />';
    330330        }
    331 
     331       
    332332        return $html;
    333333}
    334334
    335 add_shortcode('gallery', 'gallery_shortcode', true);
     335add_shortcode('gallery', 'gallery_shortcode');
    336336
    337337function gallery_shortcode($attr) {
    … …  
    378378        $columns = intval($columns);
    379379        $itemwidth = $columns > 0 ? floor(100/$columns) : 100;
    380 
     380       
    381381        $output = apply_filters('gallery_style', "
    382382                <style type='text/css'>
Note: See TracChangeset for help on using the changeset viewer.