Revert debug code

This commit is contained in:
Mike Jolley 2018-01-25 15:06:12 +00:00
parent e0f8ff8f39
commit de4ff9742c
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@ class WC_Regenerate_Images {
* Check if we should generate images when new themes declares custom sizes.
*/
public static function maybe_regenerate_image_theme_switch() {
self::queue_image_regeneration();
if ( wc_get_theme_support( 'single_image_width' ) || wc_get_theme_support( 'thumbnail_image_width' ) ) {
self::queue_image_regeneration();
}
}
/**