WordPress.org

Make WordPress Core

Ticket #20218: post.diff

File post.diff, 577 bytes (added by webord, 3 years ago)

Changes

  • /Users/gustavobordoni/

    old new  
    51835183        if ( $post && $thumbnail_id && get_post( $thumbnail_id ) ) { 
    51845184                $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'thumbnail' ); 
    51855185                if ( ! empty( $thumbnail_html ) ) { 
    5186                         update_post_meta( $post->ID, '_thumbnail_id', $thumbnail_id ); 
    5187                         return true; 
     5186                        return update_post_meta( $post->ID, '_thumbnail_id', $thumbnail_id ); 
    51885187                } 
    51895188        } 
    51905189        return false;