check_server_connectivity example


function akismet_recheck_queue() {
    return Akismet_Admin::recheck_queue();
}
function akismet_remove_comment_author_url() {
    return Akismet_Admin::remove_comment_author_url();
}
function akismet_add_comment_author_url() {
    return Akismet_Admin::add_comment_author_url();
}
function akismet_check_server_connectivity() {
    return Akismet_Admin::check_server_connectivity();
}
function akismet_get_server_connectivity( $cache_timeout = 86400 ) {
    return Akismet_Admin::get_server_connectivity( $cache_timeout );
}
function akismet_server_connectivity_ok() {
    _deprecated_function( __FUNCTION__, '3.0' );

    return true;
}
function akismet_admin_menu() {
    return Akismet_Admin::admin_menu();
}
Akismet::log( $debug );
        
        if ( $response && 'connected' == wp_remote_retrieve_body( $response ) )
            return true;
        
        return false;
    }

    // Check the server connectivity and store the available servers in an option.     public static function get_server_connectivity($cache_timeout = 86400) {
        return self::check_server_connectivity( $cache_timeout );
    }

    /** * Find out whether any comments in the Pending queue have not yet been checked by Akismet. * * @return bool */
    public static function are_any_comments_waiting_to_be_checked() {
        return !! get_comments( array(
            // Exclude comments that are not pending. This would happen if someone manually approved or spammed a comment             // that was waiting to be checked. The akismet_error meta entry will eventually be removed by the cron recheck job.
Home | Imprint | This part of the site doesn't use cookies.