get_error_data() ) && ! empty( $edata['itsec_site'] ) ) { $site_url = $edata['itsec_site']['url']; } elseif ( is_array( $results ) && ! empty( $results['itsec_site'] ) ) { $site_url = $results['itsec_site']['url']; } else { $site_url = ''; } $html = "
' . sprintf( __( 'Error Message: %s', 'better-wp-security' ), $results->get_error_message() ) . "
\n"; $details .= '' . sprintf( __( 'Error Code: %s
', 'better-wp-security' ), esc_html( $results->get_error_code() ) ) . "
' . __( 'If you contact support about this error, please provide the following debug details:', 'better-wp-security' ) . "
\n"; $details .= '' . esc_html( print_r( array( 'code' => $results->get_error_code(), 'data' => $data ), true ) ) . "\n"; } } return self::get_wrapped_section( 'wp-error', $status, $description, $details ); } protected static function get_blacklist_details( $results ) { $status = 'clean'; $description = __( 'Blacklist', 'better-wp-security' ); $details = false; $list = ''; if ( ! empty( $results['BLACKLIST']['WARN'] ) ) { $status = 'warn'; foreach ( (array) $results['BLACKLIST']['WARN'] as $entry ) { $list .= sprintf( '
%s', 'better-wp-security' ), esc_html( $payload ) ); } $list .= sprintf( '
" . sprintf( _x( '%1$s %2$s', 'scan status, scan description', 'better-wp-security' ), $status, $description ) . "
\n"; } else { $details_link = "" . __( 'Show Details', 'better-wp-security' ) . "\n"; /* translators: Scan result listing. %1$s is the status. %2$s is the description. %3$s is the details link. */ $html .= "" . sprintf( _x( '%1$s %2$s %3$s', 'scan status, scan description, scan details link', 'better-wp-security' ), $status, $description, $details_link ) . "
\n"; $html .= "