Revert debug code
This commit is contained in:
parent
e0f8ff8f39
commit
de4ff9742c
|
@ -172,8 +172,10 @@ class WC_Regenerate_Images {
|
|||
* Check if we should generate images when new themes declares custom sizes.
|
||||
*/
|
||||
public static function maybe_regenerate_image_theme_switch() {
|
||||
if ( wc_get_theme_support( 'single_image_width' ) || wc_get_theme_support( 'thumbnail_image_width' ) ) {
|
||||
self::queue_image_regeneration();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of images and queue them for regeneration
|
||||
|
|
Loading…
Reference in New Issue