Ticket #20218: post.diff
| File post.diff, 577 bytes (added by , 14 years ago) |
|---|
-
/Users/gustavobordoni/
old new 5183 5183 if ( $post && $thumbnail_id && get_post( $thumbnail_id ) ) { 5184 5184 $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'thumbnail' ); 5185 5185 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 ); 5188 5187 } 5189 5188 } 5190 5189 return false;