| @@ 1952-1959 (lines=8) @@ | ||
| 1949 | $cat_not_in[] = abs( $cat ); | |
| 1950 | } | |
| 1951 | ||
| 1952 | 			if ( ! empty( $cat_in ) ) { | |
| 1953 | $tax_query[] = array( | |
| 1954 | 'taxonomy' => 'category', | |
| 1955 | 'terms' => $cat_in, | |
| 1956 | 'field' => 'term_id', | |
| 1957 | 'include_children' => true | |
| 1958 | ); | |
| 1959 | } | |
| 1960 | ||
| 1961 | 			if ( ! empty( $cat_not_in ) ) { | |
| 1962 | $tax_query[] = array( | |
| @@ 1961-1969 (lines=9) @@ | ||
| 1958 | ); | |
| 1959 | } | |
| 1960 | ||
| 1961 | 			if ( ! empty( $cat_not_in ) ) { | |
| 1962 | $tax_query[] = array( | |
| 1963 | 'taxonomy' => 'category', | |
| 1964 | 'terms' => $cat_not_in, | |
| 1965 | 'field' => 'term_id', | |
| 1966 | 'operator' => 'NOT IN', | |
| 1967 | 'include_children' => true | |
| 1968 | ); | |
| 1969 | } | |
| 1970 | unset( $cat_array, $cat_in, $cat_not_in ); | |
| 1971 | } | |
| 1972 | ||