public static function display_api_key_warning() { Akismet::
view( 'notice', array
( 'type' => 'plugin'
) );
} public static function display_page() { if ( !Akismet::
get_api_key() || ( isset( $_GET['view'
] ) &&
$_GET['view'
] == 'start'
) ) self::
display_start_page();
elseif ( isset( $_GET['view'
] ) &&
$_GET['view'
] == 'stats'
) self::
display_stats_page();
else self::
display_configuration_page();
} public static function display_start_page() { if ( isset( $_GET['action'
] ) ) { if ( $_GET['action'
] == 'delete-key'
) { if ( isset( $_GET['_wpnonce'
] ) &&
wp_verify_nonce( $_GET['_wpnonce'
], self::NONCE
) ) delete_option( 'wordpress_api_key'
);
} } if ( $api_key = Akismet::
get_api_key() && ( empty( self::
$notices['status'
] ) || 'existing-key-invalid' != self::
$notices['status'
] ) ) {