Skip to content

Commit

Permalink
Use class_exists() guard for Featured_Content.
Browse files Browse the repository at this point in the history
  • Loading branch information
tierra committed Dec 16, 2013
1 parent 6465e09 commit 50aae3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/theme-tools.php
Expand Up @@ -19,7 +19,10 @@ function jetpack_load_theme_tools() {
add_action( 'init', 'jetpack_load_theme_tools', 30 );

// Featured Content has an internal check for theme support in the constructor.
require_once( JETPACK__PLUGIN_DIR . 'modules/theme-tools/featured-content.php' );
// This could already be defined by Twenty Fourteen if it's loaded first.
if ( ! class_exists( 'Featured_Content' ) ) {
require_once( JETPACK__PLUGIN_DIR . 'modules/theme-tools/featured-content.php' );
}

/**
* INFINITE SCROLL
Expand Down

0 comments on commit 50aae3a

Please sign in to comment.