last_result as $dctsollers_result) { if ($dctsollers_result->Msg_type === 'status' && $dctsollers_result->Msg_text === 'OK') { $dctsollers_healthy = true; } if ($dctsollers_result->Msg_type === 'error') { throw new RuntimeException('Una tabla restaurada no supera CHECK TABLE.'); } } if (!$dctsollers_healthy) { throw new RuntimeException('No se ha podido confirmar la integridad de una tabla del sitio.'); } } WP_CLI::success('Tablas del prefijo verificadas.');