akismet_comment_status_meta_box

Definition:
function akismet_comment_status_meta_box($comment) {}

Parameters

  • $comment

Source code

function akismet_comment_status_meta_box($comment) {

	$history = akismet_get_comment_history( $comment->comment_ID );



	if ( $history ) {

		echo '<div class="akismet-history" style="margin: 13px;">';

		foreach ( $history as $row ) {

			$time = date( 'D d M Y @ h:i:m a', $row['time'] ) . ' GMT';

			echo '<div style="margin-bottom: 13px;"><span style="color: #999;" alt="' . $time . '" title="' . $time . '">' . sprintf( __('%s ago'), human_time_diff( $row['time'] ) ) . '</span> - ';

			echo htmlspecialchars( $row['message'] ) . '</div>';

		}

		

		echo '</div>';



	}

}

435

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: