[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
Wed Oct 3 09:18: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  |
-----------------------------------+------------------------------

Comment (by scribu):

 Actually, why do we need to specify if a custom post type supports
 thumbnails in two places?

 To enable thumbnails for pages, this should be enough:

 {{{
 add_post_type_support( 'page', 'thumbnails' );
 add_theme_support( 'post-thumbnails' );
 }}}

 And for CPTs you define yourself, you can just set the 'supports' array
 directly.

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


More information about the wp-trac mailing list