Skip to content

Commit

Permalink
Fixes bug where thumbnail size was cached for multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrerahector committed Jun 18, 2014
1 parent 6e9c2f0 commit a2642be
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions wordpress-popular-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -1864,12 +1864,6 @@ protected function _get_thumb($p, $instance) {
return '';
}

$cache = &$this->__cache(__FUNCTION__, array());

if ( isset($cache[$p->id]) ) {
return $cache[$p->id];
}

$tbWidth = $instance['thumbnail']['width'];
$tbHeight = $instance['thumbnail']['height'];
$permalink = get_permalink($p->id);
Expand Down

0 comments on commit a2642be

Please sign in to comment.