Permalink
Browse files

Alter homepage integration.

Homepage integration now only prepends comics to unaltered queries.
  • Loading branch information...
1 parent 97314fd commit 444e57ace282f4e76f3ccad08e68b3e7cdfcedc4 Michael Sisk committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 webcomic.php
View
@@ -3163,13 +3163,13 @@ public function hook_the_posts( $posts ) {
* @package webcomic
* @since 3
*/
- public function hook_loop_start() {
+ public function hook_loop_start( $query ) {
if ( !$this->option( 'integrate_toggle' ) )
return false;
global $post;
- if ( is_home() || is_front_page() ) {
+ if ( ( is_home() || is_front_page() ) and !$query->query ) {
$webcomics = new WP_Query( 'post_type=webcomic_post&posts_per_page=1' ); if ( $webcomics->posts ) { $_post = $post; foreach ( $webcomics->posts as $p ) {
$post = $p;
?>

0 comments on commit 444e57a

Please sign in to comment.