Changeset 587254
- Timestamp:
- 08/18/2012 09:51:08 PM (14 years ago)
- Location:
- network-shared-posts
- Files:
-
- 2 edited
-
tags/1.1.2/network-shared-posts.php (modified) (1 diff)
-
trunk/network-shared-posts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
network-shared-posts/tags/1.1.2/network-shared-posts.php
r584743 r587254 169 169 }} 170 170 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';} 172 172 $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 173 173 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 169 169 }} 170 170 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';} 172 172 $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 173 173 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.