Conditionally include Jetpack compatibility file. (#858)

Only include the Jetpack file if Jetpack is available on a site
This commit is contained in:
Juliette 2017-07-14 18:37:12 +02:00 committed by David A. Kennedy
parent 34ab8ea00f
commit 4a2e99e691
1 changed files with 3 additions and 1 deletions

View File

@ -152,4 +152,6 @@ require get_template_directory() . '/inc/customizer.php';
/** /**
* Load Jetpack compatibility file. * Load Jetpack compatibility file.
*/ */
if ( defined( 'JETPACK__VERSION' ) ) {
require get_template_directory() . '/inc/jetpack.php'; require get_template_directory() . '/inc/jetpack.php';
}