break;
} } if ( !
empty( $message ) ) { echo '<p>';
if ( isset( $row['time'
] ) ) { $time =
gmdate( 'D d M Y @ h:i:s a',
$row['time'
] ) . ' GMT';
/* translators: The placeholder is an amount of time, like "7 seconds" or "3 days" returned by the function human_time_diff(). */
$time_html = '<span style="color: #999;" alt="' .
esc_attr( $time ) . '" title="' .
esc_attr( $time ) . '">' .
sprintf( esc_html__( '%s ago', 'akismet'
),
human_time_diff( $row['time'
] ) ) . '</span>';
echo sprintf( /* translators: %1$s is a human-readable time difference, like "3 hours ago", and %2$s is an already-translated phrase describing how a comment's status changed, like "This comment was reported as spam." */
esc_html( __( '%1$s - %2$s', 'akismet'
) ),
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
$time_html,
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
$message ); // esc_html() is done above so that we can use HTML in $message.
} else { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped