Merge pull request #1 from jb510/jb510-patch-1
Checking class exists is insufficient allows for a fatal error when J…
This commit is contained in:
commit
5f58414829
|
@ -43,7 +43,7 @@ class WC_Regenerate_Images {
|
|||
}
|
||||
|
||||
// Not required when Jetpack Photon is in use.
|
||||
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
|
||||
if ( method_exists('Jetpack', 'is_module_active') && Jetpack::is_module_active( 'photon' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue