Skip to:
Content

BuddyPress.org

Changeset 7699


Ignore:
Timestamp:
12/17/2013 11:35:50 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Remove unused DISTINCT from BP_Blogs_Blog::is_hidden() query. See #5303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-classes.php

    r7555 r7699  
    483483        global $wpdb;
    484484
    485         if ( !(int) $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT public FROM {$wpdb->base_prefix}blogs WHERE blog_id = %d", $blog_id ) ) )
     485        if ( !(int) $wpdb->get_var( $wpdb->prepare( "SELECT public FROM {$wpdb->base_prefix}blogs WHERE blog_id = %d", $blog_id ) ) ) {
    486486            return true;
     487        }
    487488
    488489        return false;
Note: See TracChangeset for help on using the changeset viewer.