[wp-trac] [WordPress Trac] #18790: add_theme_support with post type doesn't add theme support but overwrites it
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 18 01:48:58 UTC 2012
#18790: add_theme_support with post type doesn't add theme support but overwrites
it
--------------------------+------------------------------
Reporter: Jesper800 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by andrewsfreeman):
* cc: andrewsfreeman (added)
* keywords: needs-patch => has-patch
Comment:
I came across this problem today, wondering why my plugin didn't work as
usual. A workaround I found was to just turn it on everywhere on init, but
it would be nice to turn it on for a particular plugin's CPT.
My patch is simple - if it's already set and an array, merge the arrays.
If it's already set to true (thumbnails everywhere), keep it true. Tested
it on multiple CPTs and hooks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18790#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list