Advertisements

akismet_manage_page

Definition:
function akismet_manage_page() {}

Source code

function akismet_manage_page() {

	global $wpdb, $submenu, $wp_db_version;



	// WP 2.7 has its own spam management page

	if ( 8645 <= $wp_db_version )

		return;



	$count = sprintf(__('Akismet Spam (%s)'), akismet_spam_count());

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

		add_submenu_page('edit-comments.php', __('Akismet Spam'), $count, 'moderate_comments', 'akismet-admin', 'akismet_caught' );

	elseif ( function_exists('add_management_page') )

		add_management_page(__('Akismet Spam'), $count, 'moderate_comments', 'akismet-admin', 'akismet_caught');

}

463

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: