Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Fix Transient Data Display
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhanirabin committed Jun 20, 2016
1 parent 867c0ab commit 2f6248e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wp-optimize-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ function wpo_getInfo($cleanupType){
break;

// not used
case "transient":
/*case "transient":
$sql = "SELECT COUNT(*) FROM `$wpdb->options` WHERE option_name LIKE '_site_transient_browser_%' OR option_name LIKE '_site_transient_timeout_browser_%' OR option_name LIKE '_transient_feed_%' OR option_name LIKE '_transient_timeout_feed_%'";
$sql .= ';';
$transient = $wpdb->get_var( $sql );
Expand All @@ -837,7 +837,7 @@ function wpo_getInfo($cleanupType){
$message .= '     '.sprintf(_n('%d transient data in your database', '%d transient data in your database', $transient, 'wp-optimize'), number_format_i18n($transient));
}
else $message .='     '.__('No transient data found', 'wp-optimize');
break;
break;*/

case "revisions":
$sql = "SELECT COUNT(*) FROM `$wpdb->posts` WHERE post_type = 'revision'";
Expand Down
2 changes: 1 addition & 1 deletion wp-optimize-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function fCheck() {
<span style="color: red;"><?php _e('Remove transient options', 'wp-optimize'); ?></span>
</label>
<br />
<small>&nbsp;&nbsp;<?php _e(wpo_getInfo('transient'), 'wp-optimize'); ?></small>
<small>&nbsp;&nbsp;<?php _e(wpo_getInfo('transient_options'), 'wp-optimize'); ?></small>
</p>
<p>
<label>
Expand Down

0 comments on commit 2f6248e

Please sign in to comment.