Make WordPress Core


Ignore:
Timestamp:
03/03/2008 04:17:37 AM (16 years ago)
Author:
matt
Message:

Creating intermediate sizes, better thumbnails, and other image improvements. Hat tip: tellyworth.

File:
1 edited

Legend:

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

    r7130 r7135  
    21292129    if ( $file )
    21302130        update_attached_file( $post_ID, $file );
    2131 
     2131       
    21322132    clean_post_cache($post_ID);
    21332133
     
    23172317    if ( !$url = wp_get_attachment_url( $post->ID ) )
    23182318        return false;
     2319       
     2320    $sized = image_downsize( $post_id, 'thumbnail' );
     2321    if ( $sized )
     2322        return $sized[0];
    23192323
    23202324    if ( !$thumb = wp_get_attachment_thumb_file( $post->ID ) )
Note: See TracChangeset for help on using the changeset viewer.