Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 49d1bfa

Browse files
committed
Fix incorrect cherry-pick code
1 parent 42e73b9 commit 49d1bfa

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -560,23 +560,6 @@ public function execute_tool( $tool ) {
560560
$message = __( 'Database upgrade routine has been scheduled to run in the background.', 'woocommerce-rest-api' );
561561
break;
562562

563-
case 'verify_db_tables':
564-
if ( ! method_exists( 'WC_Install', 'verify_base_tables' ) ) {
565-
$message = __( 'You need WooCommerce 4.2 or newer to run this tool.', 'woocommerce-rest-api' );
566-
$ran = false;
567-
break;
568-
}
569-
// Try to manually create table again.
570-
$missing_tables = WC_Install::verify_base_tables( true, true );
571-
if ( 0 === count( $missing_tables ) ) {
572-
$message = __( 'Database verified successfully.', 'woocommerce-rest-api' );
573-
} else {
574-
$message = __( 'Verifying database... One or more tables are still missing: ', 'woocommerce-rest-api' );
575-
$message .= implode( ', ', $missing_tables );
576-
$ran = false;
577-
}
578-
break;
579-
580563
case 'clear_template_cache':
581564
if ( function_exists( 'wc_clear_template_cache' ) ) {
582565
wc_clear_template_cache();

0 commit comments

Comments
 (0)