Make WordPress Core


Ignore:
Timestamp:
01/24/2007 07:17:14 AM (17 years ago)
Author:
ryan
Message:

Fix wp_create_thumbnail filter. Props filosofo. fixes #3654

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4760 r4796  
    12701270    if ( $items ) {
    12711271        foreach ( $items as $item ) {
    1272             // A page cannot be it's own parent.
     1272            // A page cannot be its own parent.
    12731273            if (!empty ( $post_ID ) ) {
    12741274                if ( $item->ID == $post_ID ) {
     
    21912191            $thumbpath = str_replace( basename( $file ), $thumb, $file );
    21922192
    2193             // move the thumbnail to it's final destination
     2193            // move the thumbnail to its final destination
    21942194            if ( $type[2] == 1 ) {
    21952195                if (!imagegif( $thumbnail, $thumbpath ) ) {
     
    22162216        return $error;
    22172217    } else {
    2218         apply_filters( 'wp_create_thumbnail', $thumbpath );
    2219         return $thumbpath;
     2218        return apply_filters( 'wp_create_thumbnail', $thumbpath );
    22202219    }
    22212220}
Note: See TracChangeset for help on using the changeset viewer.