From d64af09856543209fec04c021f55ec9f28db0071 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 29 Oct 2014 18:44:06 +1100 Subject: [PATCH] Add featured image support if not supported by theme already --- sportspress.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sportspress.php b/sportspress.php index dce569b1..58d99e03 100644 --- a/sportspress.php +++ b/sportspress.php @@ -296,7 +296,9 @@ final class SportsPress { * Ensure theme and server variable compatibility and setup image sizes. */ public function setup_environment() { - add_theme_support( 'post-thumbnails', sp_post_types() ); + if ( ! current_theme_supports( 'post-thumbnails' ) ) { + add_theme_support( 'post-thumbnails' ); + } // Add image sizes add_image_size( 'sportspress-fit-medium', 300, 300, false );