Skip to content
Browse files

Correct collection theme selection.

Use Stylesheet instead of Template to ensure that child themes are
handled correctly.
  • Loading branch information...
1 parent 85b4492 commit 73bbd5a1c21ba227c5023374a98f49d8bf05a54b Michael Sisk committed Oct 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 -/php/config.php
View
4 -/php/config.php
@@ -451,8 +451,8 @@ public function collection_theme() {
foreach ( wp_get_themes() as $theme ) {
printf(
'<option value="%s"%s>%s</option>',
- $theme[ 'Template' ],
- selected( $theme[ 'Template' ], self::$config[ 'collections' ][ $_GET[ 'post_type' ] ][ 'theme' ], false ),
+ $theme[ 'Stylesheet' ],
+ selected( $theme[ 'Stylesheet' ], self::$config[ 'collections' ][ $_GET[ 'post_type' ] ][ 'theme' ], false ),
esc_html( $theme[ 'Name' ] )
);
}

0 comments on commit 73bbd5a

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