Permalink
Browse files

fixed bug in advanced recent posts widget

  • Loading branch information...
1 parent 0283a7d commit 2df5b64feec22aec494ab24e0fd4b823863ba275 @madalinungureanu committed Apr 11, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 library/widgets/widget_adv_recent_posts.php
@@ -34,8 +34,9 @@ function widget($args, $instance) {
$title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Posts') : $instance['title'], $instance, $this->id_base);
if ( ! $number = absint( $instance['number'] ) )
$number = 10;
- if ( ! $category = absint( $instance['category'] ) )
- $number = -1;
+
+ $category = $instance['category'];
+
$posttype = $instance['posttype'];
$thumbnail = $instance['thumbnail'];
if ( ! $thumbnail_width = absint( $instance['thumbnail_width'] ) )

0 comments on commit 2df5b64

Please sign in to comment.