[wp-trac] [WordPress Trac] #22080: add_theme_support should merge post-thumbnail post types by default (currently stomps)
WordPress Trac
noreply at wordpress.org
Sun Apr 24 22:44:41 UTC 2016
#22080: add_theme_support should merge post-thumbnail post types by default
(currently stomps)
-------------------------------------+-----------------------------
Reporter: alexkingorg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Post Thumbnails | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+-----------------------------
Comment (by jmichaelward):
The easiest way to replicate this issue is as follows:
1. Install and activate WooCommerce. It registers a custom post type
called `product` and adds post thumbnail support to all post types (so you
can go to a Page, Post, or Product and see that you can attach an image).
2. Create a new theme with a functions.php file, and enter
`add_theme_support( 'post-thumbnail', array( 'post' ) );`.
3. Click into a new or existing post, and confirm that you're able to
attach a featured image.
4. Click into a new or existing page or WooCommerce product, and note that
you no longer have the ability to attach a featured image to these types.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22080#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list