[wp-testers] add_theme_support( 'post-thumbnails' )

Michael Preuß micha at dynamicinternet.eu
Fri Jan 14 19:02:21 UTC 2011


Not the best idea.

Am 14.01.2011 19:53, schrieb Andrew Nacin:
> On Fri, Jan 14, 2011 at 1:48 PM, Michael Preuß<micha at dynamicinternet.eu>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()
>>
> That's by design. The functions only exist if the theme supports post
> thumbnails.
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


-- 
http://dynamicinternet.eu
http://wpengineer.com
http://xtreme-theme.com

Twitter: @dynamicmicha



More information about the wp-testers mailing list