@@ 1207-1210 (lines=4) @@ | ||
1204 | if ( '' != $q['tag'] && !$this->is_singular && $this->query_vars_changed ) { |
|
1205 | if ( strpos($q['tag'], ',') !== false ) { |
|
1206 | $tags = preg_split('/[,\r\n\t ]+/', $q['tag']); |
|
1207 | foreach ( (array) $tags as $tag ) { |
|
1208 | $tag = sanitize_term_field('slug', $tag, 0, 'post_tag', 'db'); |
|
1209 | $q['tag_slug__in'][] = $tag; |
|
1210 | } |
|
1211 | } elseif ( preg_match('/[+\r\n\t ]+/', $q['tag'] ) || ! empty( $q['cat'] ) ) { |
|
1212 | $tags = preg_split('/[+\r\n\t ]+/', $q['tag']); |
|
1213 | foreach ( (array) $tags as $tag ) { |
|
@@ 1213-1216 (lines=4) @@ | ||
1210 | } |
|
1211 | } elseif ( preg_match('/[+\r\n\t ]+/', $q['tag'] ) || ! empty( $q['cat'] ) ) { |
|
1212 | $tags = preg_split('/[+\r\n\t ]+/', $q['tag']); |
|
1213 | foreach ( (array) $tags as $tag ) { |
|
1214 | $tag = sanitize_term_field('slug', $tag, 0, 'post_tag', 'db'); |
|
1215 | $q['tag_slug__and'][] = $tag; |
|
1216 | } |
|
1217 | } else { |
|
1218 | $q['tag'] = sanitize_term_field('slug', $q['tag'], 0, 'post_tag', 'db'); |
|
1219 | $q['tag_slug__in'][] = $q['tag']; |