run(); if ( is_array( $findings ) ) { $all_findings = array_merge( $all_findings, $findings ); } } catch ( \Throwable $e ) { // A single failing check should never take down the whole scan. $all_findings[] = array( 'check_key' => 'error_' . $class_name, 'severity' => 'low', 'title' => sprintf( 'Check %s failed to run', $class_name ), 'description' => $e->getMessage(), 'fix_steps' => 'This is a plugin-side error, not a site vulnerability. If it persists, please report it.', ); } } CGARD_Db::sync_findings( $all_findings ); return $all_findings; } }