WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/query.php

    r8188 r8559  
    774774
    775775        if ( !empty($qv['post_status']) )
    776             $qv['post_status'] = sanitize_user($qv['post_status'], true);
     776            $qv['post_status'] = preg_replace('|[^a-z0-9_,-]|', '', $qv['post_status']);
    777777
    778778        if ( $this->is_posts_page && !$qv['withcomments'] )
     
    11241124            $include_tags = "'" . implode("', '", $q['tag_slug__in']) . "'";
    11251125            $whichcat .= " AND $wpdb->terms.slug IN ($include_tags) ";
    1126             $reqtag = is_term( $q['tag_slug__in'][0], 'post_tag' );
     1126            $reqtag = get_term_by( 'slug', $q['tag_slug__in'][0], 'post_tag' );
    11271127            if ( !empty($reqtag) )
    1128                 $q['tag_id'] = $reqtag['term_id'];
     1128                $q['tag_id'] = $reqtag->term_id;
    11291129        }
    11301130
Note: See TracChangeset for help on using the changeset viewer.