Fix logs-db redirects

This commit is contained in:
Jon Surrell 2016-12-03 22:26:36 +01:00
parent c633db9d65
commit e2f76bcd54
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ class WC_Admin_Status {
WC_Log_Handler_DB::flush();
}
wp_safe_redirect( esc_url_raw( admin_url( 'admin.php?page=wc-status&tab=logs-db' ) ) );
wp_safe_redirect( esc_url_raw( admin_url( 'admin.php?page=wc-status&tab=logs' ) ) );
exit();
}
}

View File

@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php $log_table_list->display(); ?>
<input type="hidden" name="page" value="wc-status" />
<input type="hidden" name="tab" value="logs-db" />
<input type="hidden" name="tab" value="logs" />
</form>
<form method="post" action="">