added esc_attr

This commit is contained in:
Remi Corson 2015-06-12 21:59:51 +02:00
parent 40a56e2f9e
commit 61d7b156f4
1 changed files with 2 additions and 2 deletions

View File

@ -20,11 +20,11 @@ if ( ! defined( 'ABSPATH' ) ) {
</thead>
<tbody class="tools">
<?php foreach ( $tools as $action => $tool ) : ?>
<tr class="<?php echo $action; ?>">
<tr class="<?php echo esc_attr( $action ); ?>">
<td><?php echo esc_html( $tool['name'] ); ?></td>
<td>
<p>
<a href="<?php echo wp_nonce_url( admin_url('admin.php?page=wc-status&tab=tools&action=' . $action ), 'debug_action' ); ?>" class="button <?php echo $action; ?>"><?php echo esc_html( $tool['button'] ); ?></a>
<a href="<?php echo wp_nonce_url( admin_url('admin.php?page=wc-status&tab=tools&action=' . $action ), 'debug_action' ); ?>" class="button <?php echo esc_attr( $action ); ?>"><?php echo esc_html( $tool['button'] ); ?></a>
<span class="description"><?php echo wp_kses_post( $tool['desc'] ); ?></span>
</p>
</td>