includes/class-freemius.php
private static function is_site_active( $blog_id ) {
            global $wpdb;

            $blog_info = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->blogs} WHERE blog_id = %d", $blog_id ) );

            if ( ! is_object( $blog_info ) ) {
                return false;
            }

            return (
                true == $blog_info->public &&
                false == $blog_info->archived &&
                false == $blog_info->mature &&
                false == $blog_info->spam &&
                false == $blog_info->deleted
            );
        }
private static function is_site_active( $blog_id ) {
            global $wpdb;

            $blog_info = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->blogs} WHERE blog_id = %d", $blog_id ) );

            if ( ! is_object( $blog_info ) ) {
                return false;
            }

            return (
                true == $blog_info->public &&
                false == $blog_info->archived &&
                false == $blog_info->mature &&
                false == $blog_info->spam &&
                false == $blog_info->deleted
            );
        }
private static function is_site_active ( $ blog_id ) { global $ wpdb ; $ blog_info = $ wpdb -> get_row ( $ wpdb -> prepare ( "SELECT * FROM {$wpdb->blogs} WHERE blog_id = %d" , $ blog_id ) ) ; if ( ! is_object ( $ blog_info ) ) { return false ; } return ( true == $ blog_info -> public && false == $ blog_info -> archived && false == $ blog_info -> mature && false == $ blog_info -> spam && false == $ blog_info -> deleted ) ; }
Checks if a given blog is active.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param $blog_id

@return bool
Checks if a given blog is active .