Check for thumbnail support on content type level

This commit is contained in:
Coen Jacobs 2012-12-13 13:40:24 +01:00
parent af4359a6e3
commit fb91b72ee0
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ class Woocommerce {
*/
function compatibility() {
// Post thumbnail support
if ( ! current_theme_supports( 'post-thumbnails' ) ) {
if ( ! current_theme_supports( 'post-thumbnails', 'product' ) ) {
add_theme_support( 'post-thumbnails' );
remove_post_type_support( 'post', 'thumbnail' );
remove_post_type_support( 'page', 'thumbnail' );