Skip to content

Commit

Permalink
Removes unused params from __get_image_file_paths()
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrerahector committed May 29, 2014
1 parent a82c6a6 commit 63d9875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wordpress-popular-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2179,7 +2179,7 @@ private function __get_img($p, $id = null, $url = null, $dim = array(80, 80), $s

// Get image by post ID (parent)
if ( $id ) {
$file_paths = $this->__get_image_file_paths($id, $source, $p, $dim, $title);
$file_paths = $this->__get_image_file_paths($id, $source);
$file_path = $file_paths['file_path'];
$thumbnail = isset( $file_paths['thumbnail'] )
? $file_paths['thumbnail']
Expand Down Expand Up @@ -2273,7 +2273,7 @@ private function __image_resize($path, $thumbnail, $dimension, $source) {
* @param string source Image source
* @return array
*/
private function __get_image_file_paths($id, $source, $p = null, $dim = null, $title = '') {
private function __get_image_file_paths($id, $source) {

$file_path = '';
$thumbnail = array();
Expand Down

0 comments on commit 63d9875

Please sign in to comment.