t_status() === Status::WARN ) { $status = $issue->get_status(); } } } return new Entry( 'blacklist', __( 'Blocklist', 'better-wp-security' ), $status, $issues ); } /** * Makes a malware entry from the scan data. * * @param array $data * * @return Entry */ protected function make_malware( $data ) { if ( ! $data || ! is_array( $data ) ) { return new Entry( 'malware', __( 'Malware', 'better-wp-security' ), Status::CLEAN ); } $issues = []; foreach ( $data as $malware ) { $issues[] = new Malware_Issue( $malware ); } return new Entry( 'malware', __( 'Malware', 'better-wp-security' ), Status::WARN ); } }