Ticket #12856: query.php.patch
File query.php.patch, 1002 bytes (added by , 15 years ago) |
---|
-
Users/amaury/Desktop/SVN/WPtrunk/wp-includes/query.php
2038 2038 $post_ids = get_objects_in_term($term_ids, $taxonomy); 2039 2039 if ( !is_wp_error($post_ids) && !empty($post_ids) ) { 2040 2040 $whichcat .= " AND $wpdb->posts.ID IN (" . implode(', ', $post_ids) . ") "; 2041 $post_type = 'any'; 2042 $q['post_status'] = 'publish'; 2041 2042 if ( !isset($post_type) || empty($post_type) ) 2043 $post_type = 'any'; 2044 2045 if ( !isset($q['post_status']) || empty($q['post_status']) ) 2046 $q['post_status'] = 'publish'; 2047 2043 2048 $post_status_join = true; 2044 2049 } else { 2045 2050 $whichcat = " AND 0 "; … … 2048 2053 } 2049 2054 2050 2055 // Author/user stuff 2051 2052 2056 if ( empty($q['author']) || ($q['author'] == '0') ) { 2053 2057 $whichauthor=''; 2054 2058 } else {