Permalink
Browse files

Ensure Webcomic recognizes static front page collections.

  • Loading branch information...
1 parent 3508fd6 commit 0e92918c309b16c3410331568321db921b66194e Michael Sisk committed Sep 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 webcomic.php
View
@@ -412,6 +412,7 @@ public function setup_theme() {
or ( isset( $_GET[ 'post_type' ] ) and isset( self::$config[ 'collections' ][ $_GET[ 'post_type' ] ] ) and $match[ 0 ] = $_GET[ 'post_type' ] )
or ( $wp_rewrite->using_permalinks() and preg_match( sprintf( '{/(%s)/}', join( '|', $permalinks ) ), $_SERVER[ 'REQUEST_URI' ], $match ) )
or ( $id = url_to_postid( $_SERVER[ 'REQUEST_URI' ] ) and $match[ 0 ] = get_post_meta( $id, 'webcomic_collection', true ) and isset( self::$config[ 'collections' ][ $match[ 0 ] ] ) )
+ or ( $id = get_option( 'page_on_front' ) and $match[ 0 ] = get_post_meta( $id, 'webcomic_collection', true ) and isset( self::$config[ 'collections' ][ $match[ 0 ] ] ) )
)
and $match
) {

0 comments on commit 0e92918

Please sign in to comment.