@@ 2044-2047 (lines=4) @@ | ||
2041 | if ( '' != $q['tag'] && !$this->is_singular && $this->query_vars_changed ) { |
|
2042 | if ( strpos($q['tag'], ',') !== false ) { |
|
2043 | $tags = preg_split('/[,\r\n\t ]+/', $q['tag']); |
|
2044 | foreach ( (array) $tags as $tag ) { |
|
2045 | $tag = sanitize_term_field('slug', $tag, 0, 'post_tag', 'db'); |
|
2046 | $q['tag_slug__in'][] = $tag; |
|
2047 | } |
|
2048 | } elseif ( preg_match('/[+\r\n\t ]+/', $q['tag'] ) || ! empty( $q['cat'] ) ) { |
|
2049 | $tags = preg_split('/[+\r\n\t ]+/', $q['tag']); |
|
2050 | foreach ( (array) $tags as $tag ) { |
|
@@ 2050-2053 (lines=4) @@ | ||
2047 | } |
|
2048 | } elseif ( preg_match('/[+\r\n\t ]+/', $q['tag'] ) || ! empty( $q['cat'] ) ) { |
|
2049 | $tags = preg_split('/[+\r\n\t ]+/', $q['tag']); |
|
2050 | foreach ( (array) $tags as $tag ) { |
|
2051 | $tag = sanitize_term_field('slug', $tag, 0, 'post_tag', 'db'); |
|
2052 | $q['tag_slug__and'][] = $tag; |
|
2053 | } |
|
2054 | } else { |
|
2055 | $q['tag'] = sanitize_term_field('slug', $q['tag'], 0, 'post_tag', 'db'); |
|
2056 | $q['tag_slug__in'][] = $q['tag']; |