Permalink
Browse files

Correct 4.0.2 theme setting upgrade.

Only collections with a specific theme need to be upgraded.
  • Loading branch information...
1 parent e13ecd9 commit c29359d144e0507f83e8bdc57f54f4741da3a793 Michael Sisk committed Nov 6, 2012
Showing with 7 additions and 7 deletions.
  1. +1 −1 -/php/upgrade.php
  2. +6 −6 webcomic.php
View
@@ -36,7 +36,7 @@ private function _402() {
$themes = wp_get_themes();
foreach ( self::$config[ 'collections' ] as $k => $v ) {
- if ( false === strpos( $v[ 'theme' ], '|' ) ) {
+ if ( $v[ 'theme' ] and false === strpos( $v[ 'theme' ], '|' ) ) {
foreach ( $themes as $theme ) {
if ( $theme[ 'Template' ] === $v[ 'theme' ] ) {
self::$config[ 'collections' ][ $k ][ 'theme' ] = $theme[ 'Template' ] . '|' . $theme[ 'Stylesheet' ];
View
@@ -201,12 +201,12 @@ public function init() {
'not_found' => __( 'No webcomics found.', 'webcomic' ),
'not_found_in_trash' => __( 'No webcomics found in Trash.', 'webcomic' )
),
- 'description' => esc_html( $v[ 'description' ] ),
- 'public' => true,
- 'menu_icon' => self::$url . '-/img/webcomic-small.png',
- 'supports' => $v[ 'supports' ],
- 'taxonomies' => $v[ 'taxonomies' ],
- 'has_archive' => $v[ 'slugs' ][ 'archive' ],
+ 'description' => esc_html( $v[ 'description' ] ),
+ 'public' => true,
+ 'menu_icon' => self::$url . '-/img/webcomic-small.png',
+ 'supports' => $v[ 'supports' ],
+ 'taxonomies' => $v[ 'taxonomies' ],
+ 'has_archive' => $v[ 'slugs' ][ 'archive' ],
'rewrite' => array(
'slug' => $v[ 'slugs' ][ 'webcomic' ],
'ep_mask' => EP_WEBCOMIC | EP_PERMALINK,

0 comments on commit c29359d

Please sign in to comment.