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

WordPress Trac noreply at wordpress.org
Tue Apr 26 17:04:28 UTC 2016


#22080: add_theme_support should merge post-thumbnail post types by default
(currently stomps)
--------------------------------------+--------------------------
 Reporter:  alexkingorg               |       Owner:  rachelbaker
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.6
Component:  Post Thumbnails           |     Version:  2.9
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by rachelbaker):

 * owner:   => rachelbaker
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37308"]:
 {{{
 #!CommitTicketReference repository="" revision="37308"
 Post Thumbnails: When using `add_theme_support( ‘post-thumbnails’, array(
 $post_types) )` merge the supported post_types.

 Allow the adding of post-thumbnail support for one or more post_types
 without unsetting any previously added post_types. This matches the
 behavior of other uses of `add_theme_support()` and the expectations of a
 function with a prefix of “add”.
 To unset post-thumbnail support use `remove_theme_support()` instead.

 Fixes #22080

 Props alexkingorg, jmichaelward, and flixos90.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22080#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list