WordPress.org

Plugin Directory

Changeset 730972


Ignore:
Timestamp:
06/24/13 16:23:11 (10 months ago)
Author:
donncha
Message:

Use the "blog_public" blog option instead of the wp_blogs "public" field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • polldaddy/trunk/polldaddy-client.php

    r730840 r730972  
    11701170        } 
    11711171         
    1172         global $wpdb;        
    1173         if ( isset( $wpdb->blogs ) ) { // single hosted WordPress sites don't have a blogs table. 
    1174             $public = (int) $wpdb->get_var( $wpdb->prepare( "SELECT public FROM {$wpdb->blogs} WHERE blog_id = %d", $wpdb->blogid ) ); 
    1175             if( $public == -1 ) 
    1176                 $args['makePublic'] = 'no'; 
    1177         } 
     1172        if ( '0' == get_option( 'blog_public' ) ) 
     1173            $args['makePublic'] = 'no'; 
    11781174 
    11791175        foreach ( array( 'styleID', 'packID', 'folderID', 'languageID', 'choices', 'blockExpiration' ) as $int ) 
Note: See TracChangeset for help on using the changeset viewer.