Permalink
Browse files

If a page with the proper slug is assigned as the homepage, initializ…

…e the fluxes.
  • Loading branch information...
danielbachhuber committed Sep 14, 2012
1 parent 3eeea23 commit 404b244ed72fdd4ad0ce5761cdd15052d1fcace6
Showing with 4 additions and 1 deletion.
  1. +4 −1 includes/template.php
View
@@ -199,7 +199,10 @@ function flux_parse_query( $posts_query ) {
return;
// If this is a flux request, or there is a page, include theme compat
- if ( $posts_query->get( flux_get_rewrite_id() ) || flux_get_rewrite_id() == $posts_query->get( 'pagename' ) )
+ $page_as_home = get_page( get_option( 'page_on_front') );
+ if ( $posts_query->get( flux_get_rewrite_id() )
+ || flux_get_rewrite_id() == $posts_query->get( 'pagename' )
+ || ( is_home() && is_object( $page_as_home ) && flux_get_rewrite_id() == $page_as_home->post_name ) )
$posts_query->flux = true;
}

0 comments on commit 404b244

Please sign in to comment.