' . $text . '

' . "\n"; } $options = atc_get_options(); // Show error box is a large number of orphansed transients were found $array = get_option( 'transient_clean_expired' ); if ( $array[ 'orphans' ] > 20 ) { echo '

' . __( 'A large number of orphaned transients were found. It is recommended that you clear all transients to remove these.' ) . '

' . "\n"; } ?>

get_var( "SELECT COUNT(*) FROM $wpdb->options WHERE option_name LIKE '%_transient_timeout_%'" ); $text = sprintf( __( 'There are currently %s transients in the database.', 'artiss-transient-cleaner' ), $total_transients ); if ( $total_transients > 0 ) { $expired_transients = $wpdb -> get_var( "SELECT COUNT(*) FROM $wpdb->options WHERE option_name LIKE '%_transient_timeout_%' AND option_value < UNIX_TIMESTAMP()" ); $text .= ' ' . sprintf( __( '%s have expired.', 'artiss-transient-cleaner' ), $expired_transients ); } echo '

' . $text . '

'; ?>

/>
/> 
' . $text . '

'; ?>

/>
/>
' . sprintf( __( 'All transients were cleared on %s at %s.', 'artiss-transient-cleaner' ), date( 'l, jS F Y', $array[ 'timestamp' ] ), date( 'H:i', $array[ 'timestamp' ] ) ) . '

'; } else { echo '
'; } ?>