Changes from branches/2.6/wp-includes/query.php at r8559 to trunk/wp-includes/query.php at r8188
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r8559 r8188 774 774 775 775 if ( !empty($qv['post_status']) ) 776 $qv['post_status'] = preg_replace('|[^a-z0-9_,-]|', '', $qv['post_status']);776 $qv['post_status'] = sanitize_user($qv['post_status'], true); 777 777 778 778 if ( $this->is_posts_page && !$qv['withcomments'] ) … … 1124 1124 $include_tags = "'" . implode("', '", $q['tag_slug__in']) . "'"; 1125 1125 $whichcat .= " AND $wpdb->terms.slug IN ($include_tags) "; 1126 $reqtag = get_term_by( 'slug',$q['tag_slug__in'][0], 'post_tag' );1126 $reqtag = is_term( $q['tag_slug__in'][0], 'post_tag' ); 1127 1127 if ( !empty($reqtag) ) 1128 $q['tag_id'] = $reqtag ->term_id;1128 $q['tag_id'] = $reqtag['term_id']; 1129 1129 } 1130 1130
Note: See TracChangeset
for help on using the changeset viewer.