Skip to content
Browse files

Add support for 'post-thumbnails' if the theme hasn't already added s…

…upport for them.
  • Loading branch information...
1 parent 4bed48e commit dcdb68dfc8c2d498eb01cb1ae75879454afd0312 @justintadlock committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 extensions/featured-header.php
View
4 extensions/featured-header.php
@@ -86,6 +86,10 @@ class Featured_Header {
*/
public function __construct() {
+ /* The theme should actually support the custom background feature. */
+ if ( !current_theme_supports( 'post-thumbnails' ) )
+ add_theme_support( 'post-thumbnails' );
+
/* Add image size based off theme's custom header dimensions. */
add_action( 'init', array( &$this, 'add_image_size' ) );

0 comments on commit dcdb68d

Please sign in to comment.
Something went wrong with that request. Please try again.