Permalink
Browse files

proper merge for post types - fixes http://wordpress.org/support/topi…

  • Loading branch information...
1 parent 8dc22e9 commit be22841cbe8cd581e54a8a0c2e0287f50757fefb @alexkingorg alexkingorg committed Oct 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/aktt.php
View
@@ -29,7 +29,7 @@ static function after_setup_theme() {
static function add_thumbnail_support() {
$thumbnails = get_theme_support('post-thumbnails');
if (is_array($thumbnails)) {
- add_theme_support('post-thumbnails', array_merge($thumbnails, array(self::$post_type)));
+ add_theme_support('post-thumbnails', array_merge($thumbnails[0], array(self::$post_type)));
}
else if (!$thumbnails) {
add_theme_support('post-thumbnails', array(self::$post_type));

0 comments on commit be22841

Please sign in to comment.