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:
Jon Brown 2018-03-05 12:30:46 -08:00 committed by GitHub
commit 5f58414829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}