Changeset 6646 for trunk/wp-includes/post.php
- Timestamp:
- 01/23/2008 11:38:30 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r6645 r6646 442 442 $query .= empty( $post_status ) ? '' : $wpdb->prepare("AND post_status = %s ", $post_status); 443 443 $query .= "$exclusions $inclusions " ; 444 $query .= empty( $category ) ? '' : $wpdb->prepare("AND ($wpdb->posts.ID = $wpdb->term_relationships.object_id AND $wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id AND $wpdb->term_taxonomy.term_id = %d AND $wpdb->term_taxonomy.taxonomy = 'category')" );444 $query .= empty( $category ) ? '' : $wpdb->prepare("AND ($wpdb->posts.ID = $wpdb->term_relationships.object_id AND $wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id AND $wpdb->term_taxonomy.term_id = %d AND $wpdb->term_taxonomy.taxonomy = 'category')", $category); 445 445 $query .= empty( $post_parent ) ? '' : $wpdb->prepare("AND $wpdb->posts.post_parent = %d ", $post_parent); 446 446 // expected_slashed ($meta_key, $meta_value) -- Also, this looks really funky, doesn't seem like it works
Note: See TracChangeset
for help on using the changeset viewer.