Plugin Directory

Changeset 587254


Ignore:
Timestamp:
08/18/2012 09:51:08 PM (14 years ago)
Author:
codeext
Message:
 
Location:
network-shared-posts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • network-shared-posts/tags/1.1.2/network-shared-posts.php

    r584743 r587254  
    169169            }}
    170170 
    171             if ($ids) { $ids = ' AND  ('. substr($ids,0,strlen($ids)-2).')'; }
     171            if ($ids) { $ids = ' AND  ('. substr($ids,0,strlen($ids)-2).')'; } else { if($taxonomy) $ids = ' AND  ID=null';}
    172172            $the_post = $wpdb->get_results( $wpdb->prepare("SELECT $PostsTable.ID, $PostsTable.post_title, $PostsTable.post_excerpt, $PostsTable.post_content, $PostsTable.post_author, $PostsTable.post_date, $PostsTable.guid, $BlogsTable.blog_id
    173173            FROM $PostsTable, $BlogsTable WHERE $BlogsTable.blog_id  =  $blog_id  AND $PostsTable.post_status = 'publish' $ids  AND $PostsTable.post_type = '$post_type'  $old  $limit"), ARRAY_A);
  • network-shared-posts/trunk/network-shared-posts.php

    r584743 r587254  
    169169            }}
    170170 
    171             if ($ids) { $ids = ' AND  ('. substr($ids,0,strlen($ids)-2).')'; }
     171            if ($ids) { $ids = ' AND  ('. substr($ids,0,strlen($ids)-2).')'; } else { if($taxonomy) $ids = ' AND  ID=null';}
    172172            $the_post = $wpdb->get_results( $wpdb->prepare("SELECT $PostsTable.ID, $PostsTable.post_title, $PostsTable.post_excerpt, $PostsTable.post_content, $PostsTable.post_author, $PostsTable.post_date, $PostsTable.guid, $BlogsTable.blog_id
    173173            FROM $PostsTable, $BlogsTable WHERE $BlogsTable.blog_id  =  $blog_id  AND $PostsTable.post_status = 'publish' $ids  AND $PostsTable.post_type = '$post_type'  $old  $limit"), ARRAY_A);
Note: See TracChangeset for help on using the changeset viewer.