- added escape functions, security fix for XSS;

This commit is contained in:
nikitasinelnikov
2019-08-08 00:36:33 +03:00
parent b2e57e8f92
commit 5f66fd5fe3
95 changed files with 2228 additions and 2026 deletions
+5 -2
View File
@@ -1,4 +1,7 @@
<?php global $wpdb;
<?php if ( ! defined( 'ABSPATH' ) ) exit;
global $wpdb;
$count = $wpdb->get_var(
"SELECT COUNT( option_id )
@@ -8,7 +11,7 @@ $count = $wpdb->get_var(
<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">
<a href="<?php echo esc_url( add_query_arg( 'um_adm_action', 'user_cache' ) ); ?>" class="button">
<?php printf( __( 'Clear cache of %s users', 'ultimate-member' ), $count ) ?>
</a>
</p>