From 4a2e99e6915ae93c380317f9149a74c767ea85c2 Mon Sep 17 00:00:00 2001 From: Juliette Date: Fri, 14 Jul 2017 18:37:12 +0200 Subject: [PATCH] Conditionally include Jetpack compatibility file. (#858) Only include the Jetpack file if Jetpack is available on a site --- functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 4c52b38..acf75f0 100644 --- a/functions.php +++ b/functions.php @@ -152,4 +152,6 @@ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ -require get_template_directory() . '/inc/jetpack.php'; +if ( defined( 'JETPACK__VERSION' ) ) { + require get_template_directory() . '/inc/jetpack.php'; +}