Merge pull request #4089 from scottbasgaard/master
Update tools wp_nonce_url() to correct page.
This commit is contained in:
commit
5bfffb8554
|
@ -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'] );
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue