Check for thumbnail support on content type level
This commit is contained in:
parent
af4359a6e3
commit
fb91b72ee0
|
@ -542,7 +542,7 @@ class Woocommerce {
|
||||||
*/
|
*/
|
||||||
function compatibility() {
|
function compatibility() {
|
||||||
// Post thumbnail support
|
// Post thumbnail support
|
||||||
if ( ! current_theme_supports( 'post-thumbnails' ) ) {
|
if ( ! current_theme_supports( 'post-thumbnails', 'product' ) ) {
|
||||||
add_theme_support( 'post-thumbnails' );
|
add_theme_support( 'post-thumbnails' );
|
||||||
remove_post_type_support( 'post', 'thumbnail' );
|
remove_post_type_support( 'post', 'thumbnail' );
|
||||||
remove_post_type_support( 'page', 'thumbnail' );
|
remove_post_type_support( 'page', 'thumbnail' );
|
||||||
|
|
Loading…
Reference in New Issue