[wp-trac] [WordPress Trac] #12745: Call to undefined function get_post_thumbnail_id()

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 28 21:53:09 UTC 2010


#12745: Call to undefined function get_post_thumbnail_id()
--------------------------+-------------------------------------------------
 Reporter:  dphiffer      |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Unassigned       
Component:  General       |     Version:                   
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by nacin):

 This definitely causes confusion:

 http://wordpress.org/support/topic/355685
 http://www.google.com/search?q=get_post_thumbnail_id

 The other issue of course is removing support for thumbnails from a theme
 (i.e. from a child theme) will blow up the theme any time one of the post
 thumbnail template functions are used.

 I'm questioning thus wrapping add_theme_support('post-thumbnails') in a
 function in twentyten that could be overridden in a child theme. If you
 wanted to *remove* thumbnail support, good portions of twentyten would
 generate fatal errors.

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


More information about the wp-trac mailing list