- small fixes;

- added some translations;
This commit is contained in:
nikitozzzzzzz
2018-03-07 11:35:28 +02:00
parent 179fc36ebf
commit db5f646217
2 changed files with 233 additions and 218 deletions
+8 -10
View File
@@ -1,17 +1,15 @@
<?php
$all_options = wp_load_alloptions();
<?php $all_options = wp_load_alloptions();
$count = 0;
foreach ( $all_options as $k => $v ) {
if ( strstr( $k, 'um_cache_userdata_' ) !== false ) {
$count++;
}
}
} ?>
?>
<p>Run this task from time to time to keep your DB clean.</p>
<p><a href="<?php echo add_query_arg( 'um_adm_action', 'user_cache' ); ?>" class="button">Clear cache of <?php echo $count; ?> users</a></p>
<p><?php _e( 'Run this task from time to time to keep your DB clean.', 'ultimate-member' ) ?></p>
<p>
<a href="<?php echo add_query_arg( 'um_adm_action', 'user_cache' ); ?>" class="button">
<?php printf( __( 'Clear cache of %s users', 'ultimate-member' ), $count ) ?>
</a>
</p>