getLevel function


When a Pro level is manually withdrawn for a blog, the record for this blog is kept in the 'prosites' table but the 'expire' field is set to current time. Though, in the 'get_level' function, there is no condition on that field so it returns the last Pro level even if it's withdrawn.

Isn't that a bug? Shouldn't be line 942 of 'pro-sites.php':

$sql = "SELECT level FROM {$wpdb->base_prefix}pro_sites WHERE blog_ID = '$blog_id' AND expire > '" . time() . "'";