On one hand, if the call to has_post_thumbnail() is in the Theme itself, it is reasonable to expect the Theme also to add support properly for post-thumbnails.
On the other hand, if you want to be obsessive-compulsively cautious about not throwing that fatal error, add in a call to if ( current_theme_supports( 'post-thumbnails' ) ), which should prevent the fatal error. But, again: why would a Theme make calls to "has_post_thumbnail() and "the_post_thumbnail()" if it didn't intend to add support for Post Thumbnails in the first place? Chip On Fri, Jan 14, 2011 at 12:48 PM, Michael Preuß <[email protected]>wrote: > hi, > > If add_theme_support( 'post-thumbnails' ); is missing in a theme but in the > loop is > <?php if ( has_post_thumbnail () ) : > the_post_thumbnail( 'thumbnail' ); > endif;?> > a Fatal error is shown: *Fatal error*: Call to undefined function > has_post_thumbnail() > > > Greetings > > Michael > > -- > http://dynamicinternet.eu > http://wpengineer.com > http://xtreme-theme.com > > Twitter: @dynamicmicha > > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
