Advertisements

akismet_stats

Definition:
function akismet_stats() {}

Source code

function akismet_stats() {

	if ( !function_exists('did_action') || did_action( 'rightnow_end' ) ) // We already displayed this info in the "Right Now" section

		return;

	if ( !$count = get_option('akismet_spam_count') )

		return;

	$path = plugin_basename(__FILE__);

	echo '<h3>' . _x( 'Spam', 'comments' ) . '</h3>';

	global $submenu;

	if ( isset( $submenu['edit-comments.php'] ) )

		$link = 'edit-comments.php';

	else

		$link = 'edit.php';

	echo '<p>'.sprintf( _n( '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', $count ), 'http://akismet.com/', clean_url("$link?page=akismet-admin"), number_format_i18n($count) ).'</p>';

}

497

Advertisements

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 )

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: