forked from mirror/_s
Conditionally include Jetpack compatibility file. (#858)
Only include the Jetpack file if Jetpack is available on a site
This commit is contained in:
parent
34ab8ea00f
commit
4a2e99e691
|
@ -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';
|
||||
}
|
||||
|
|
Reference in New Issue