Skip to content
Browse files

Correct $gestures checkin dynamic widget.

  • Loading branch information...
1 parent 3b15aea commit 0f8c4bd7ccaf748e17f555e5af45be15e046d1aa Michael Sisk committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/php/widgets.php
View
2 -/php/widgets.php
@@ -200,7 +200,7 @@ public function widget( $args, $instance ) {
$webcomic = new WP_Query( array( 'post_type' => $collection, 'posts_per_page' => 1, 'order' => $reverse ? 'ASC' : 'DESC' ) );
if ( $webcomic->have_posts() ) {
- echo $before_widget, empty( $title ) ? '' : $before_title . $title . $after_title, sprintf( '<div data-webcomic-container="%s"%s>', $widget_id, $gesture ? ' data-webcomic-gestures' : '' );
+ echo $before_widget, empty( $title ) ? '' : $before_title . $title . $after_title, sprintf( '<div data-webcomic-container="%s"%s>', $widget_id, empty( $gesture ) ? '' : ' data-webcomic-gestures' );
while ( $webcomic->have_posts() ) { $webcomic->the_post();
if ( !locate_template( array( "webcomic/dynamic-{$widget_id}-{$collection}.php", "webcomic/dynamic-{$widget_id}.php", "webcomic/dynamic-{$collection}.php", 'webcomic/dynamic.php' ), true, false ) ) {

0 comments on commit 0f8c4bd

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