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>'.__('Spam').'</h3>';

	global $submenu;

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

		$link = 'edit-comments.php';

	else

		$link = 'edit.php';

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

}

495

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

Leave a comment