Merge pull request #4089 from scottbasgaard/master

Update tools wp_nonce_url() to correct page.
This commit is contained in:
Mike Jolley 2013-11-12 11:02:36 -08:00
commit 5bfffb8554
2 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,8 @@ class WC_Admin_Status {
" );
wp_cache_flush();
echo '<div class="updated"><p>' . __( 'Sessions successfully cleared', 'woocommerce' ) . '</p></div>';
break;
default:
$action = esc_attr( $_GET['action'] );

View File

@ -13,7 +13,7 @@
<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 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_html( $tool['button'] ); ?></a>
<span class="description"><?php echo wp_kses_post( $tool['desc'] ); ?></span>
</p>
</td>