$url_requests) {
foreach ($url_requests as $row) {
$tb_id = md5($row->url);
if (in_array($tb_id, $add_thickbox_for_urls) && (1 < $row->occurrences)) {
?>
get_url_requests_by_referrer($row->url);
$table_body = array();
$requests_groups = array('over', 'under');
foreach ($requests_groups as $group) {
if ('over' == $group && empty($url_requests['over'])) {
// There are both over and under the threshold, split it with a title
$table_body[] = '
' . esc_html__('No URLs with many 404 requests found', 'wp-optimize') . ' (' . sprintf(esc_html__('over %s hits in a single hour', 'wp-optimize'), $obj_404_detector->get_suspicious_request_count_threshold()) . ') |
';
}
if ('under' == $group && (0 < count($url_requests['under']))) {
// There are both over and under the threshold, split it with a title
$table_body[] = '
' . esc_html__('URLs with few 404 requests', 'wp-optimize') . ' (' . sprintf(esc_html__('under %s hits in a single hour', 'wp-optimize'), $obj_404_detector->get_suspicious_request_count_threshold()) . ') |
';
}
foreach ($url_requests[$group] as $item) {
$table_body[] = '
' . ('' != $item->referrer ? esc_html($item->referrer) : ('' . esc_html__('Not available', 'wp-optimize') . '')) . ' |
' . $item->total_count . ' |
' . esc_html(WP_Optimize()->format_date_time($item->first_access, ' ')) . ' |
' . esc_html(WP_Optimize()->format_date_time($item->last_access, ' ')) . ' |
';
}
}
?>