Skip to content

Commit

Permalink
proper merge for post types - fixes http://wordpress.org/support/topi…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkingorg committed Oct 24, 2012
1 parent 8dc22e9 commit be22841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/aktt.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit be22841

Please sign in to comment.