Skip to content

Commit b1e9e8d

Browse files
committed
Fixes the zero original files found after analyzing site
- Removes default date option for the analyze query - Changes query showposts to number of posts
1 parent b1f6c52 commit b1e9e8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

admin/thumbnail-cleaner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function thumbnail_cleaner_menu_page() {
6060
}
6161
}
6262
elseif($action === "analyze") {
63-
$analyze_output = $thumbnail_cleaner->analyze(array("before_date" => "2013-01-01"));
63+
$analyze_output = $thumbnail_cleaner->analyze();
6464
}
6565
elseif($action === "clean_thumbnails") {
6666
$cleaned_thumbnails = $thumbnail_cleaner->clean_thumbnails();

classes/thumbnail-cleaner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function analyze(array $options = array()) {
169169
$query = array(
170170
"post_type" => "attachment",
171171
"post_mime_type" => "image/jpeg",
172-
"showposts" => -1
172+
"numberposts" => -1
173173
);
174174

175175
if($options["before_date"]) {

0 commit comments

Comments
 (0)