[wp-trac] [WordPress Trac] #22080: add_theme_support should merge post-thumbnail post types by default (currently stomps)

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 2 23:33:33 UTC 2012


#22080: add_theme_support should merge post-thumbnail post types by default
(currently stomps)
-----------------------------------+------------------------------
 Reporter:  alexkingorg            |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Post Thumbnails        |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------
Changes (by toscho):

 * cc: info@… (added)


Comment:

 Replying to [comment:1 scribu]:
 > But more importantly, why are you calling add_theme_support() from a
 plugin? It makes zero sense to me.

 Because if you add `thumbnail` to the `supports` argument in
 `register_post_type()` the theme support will not be activated
 automatically, and you get not thumbnail meta box in the edit screen. But
 you may need exactly that in custom templates.

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


More information about the wp-trac mailing list