[wp-trac] [WordPress Trac] #12661: In TwentyTen Theme, use of Post Thumbnail in Content Area instead of as Header Replacement

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 5 02:37:12 UTC 2010


#12661: In TwentyTen Theme, use of Post Thumbnail in Content Area instead of as
Header Replacement
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |        Owner:  iammattthomas
     Type:  defect (bug)  |       Status:  reopened     
 Priority:  normal        |    Milestone:  3.0          
Component:  Themes        |      Version:  3.0          
 Severity:  normal        |   Resolution:               
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by dd32):

 > Looks like this causes some issues on a page that isn't singular, as
 we're unconditionally checking for $post->ID, which wouldn't always be a
 post object (like on a 404).

 Yeah, 404 pages trigger it pretty well. I used something similar in a
 child theme yesterday to what you've got there.

 is_singular() is fine, as Attachments do not have Featured Images by
 default.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12661#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list