summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/related-posts.php')
-rw-r--r--plugins/jetpack/modules/related-posts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/related-posts.php b/plugins/jetpack/modules/related-posts.php
index a5387e38..24591fe9 100644
--- a/plugins/jetpack/modules/related-posts.php
+++ b/plugins/jetpack/modules/related-posts.php
@@ -53,7 +53,7 @@ class Jetpack_RelatedPosts_Module {
}
// Load Customizer controls.
- if ( class_exists( 'WP_Customize_Manager' ) ) {
+ if ( class_exists( WP_Customize_Manager::class ) && class_exists( WP_Customize_Control::class ) ) {
require_once 'related-posts/class.related-posts-customize.php';
}
}