restore code accidentally removed in master merge

This commit is contained in:
Ron Rennick 2020-06-15 13:30:35 -03:00 committed by vedanshujain
parent 3d205dbd4a
commit 5df976e1aa
1 changed files with 3 additions and 0 deletions

View File

@ -583,6 +583,9 @@ class WC_REST_System_Status_Tools_V2_Controller extends WC_REST_Controller {
$message = __( 'Template cache cleared.', 'woocommerce-rest-api' );
} else {
$message = __( 'The active version of WooCommerce does not support template cache clearing.', 'woocommerce-rest-api' );
}
break;
case 'verify_db_tables':
if ( ! method_exists( 'WC_Install', 'verify_base_tables' ) ) {
$message = __( 'You need WooCommerce 4.2 or newer to run this tool.', 'woocommerce-rest-api' );