@@ 1975-1982 (lines=8) @@ | ||
1972 | $cat_not_in[] = abs( $cat ); |
|
1973 | } |
|
1974 | ||
1975 | if ( ! empty( $cat_in ) ) { |
|
1976 | $tax_query[] = array( |
|
1977 | 'taxonomy' => 'category', |
|
1978 | 'terms' => $cat_in, |
|
1979 | 'field' => 'term_id', |
|
1980 | 'include_children' => true |
|
1981 | ); |
|
1982 | } |
|
1983 | ||
1984 | if ( ! empty( $cat_not_in ) ) { |
|
1985 | $tax_query[] = array( |
|
@@ 1984-1992 (lines=9) @@ | ||
1981 | ); |
|
1982 | } |
|
1983 | ||
1984 | if ( ! empty( $cat_not_in ) ) { |
|
1985 | $tax_query[] = array( |
|
1986 | 'taxonomy' => 'category', |
|
1987 | 'terms' => $cat_not_in, |
|
1988 | 'field' => 'term_id', |
|
1989 | 'operator' => 'NOT IN', |
|
1990 | 'include_children' => true |
|
1991 | ); |
|
1992 | } |
|
1993 | unset( $cat_array, $cat_in, $cat_not_in ); |
|
1994 | } |
|
1995 |