diff --git a/includes/class-amp-service-worker.php b/includes/class-amp-service-worker.php index 73a2280eddb..ae475cc47d4 100644 --- a/includes/class-amp-service-worker.php +++ b/includes/class-amp-service-worker.php @@ -45,7 +45,7 @@ public static function init() { 'image_caching' => false, 'google_fonts_caching' => false, ); - if ( is_array( $theme_support['service_worker'] ) ) { + if ( isset( $theme_support['service_worker'] ) && is_array( $theme_support['service_worker'] ) ) { $enabled_options = array_merge( $enabled_options, $theme_support['service_worker']