|
@@ 87-94 (lines=8) @@
|
| 84 |
|
$condition->set_comparers( $ioc['container_condition_comparer_collections']['nonscalar'] ); |
| 85 |
|
return $condition; |
| 86 |
|
} ); |
| 87 |
|
$cc_ioc['post_term'] = $cc_ioc->factory( function() use ( $ioc ) { |
| 88 |
|
$condition = new \Carbon_Fields\Container\Condition\Post_Term_Condition( $ioc['wp_toolset'] ); |
| 89 |
|
$condition->set_comparers( array( |
| 90 |
|
// Only support the custom comparer as this condition has its own comparison methods |
| 91 |
|
$ioc['container_condition_comparers']['custom'], |
| 92 |
|
) ); |
| 93 |
|
return $condition; |
| 94 |
|
} ); |
| 95 |
|
|
| 96 |
|
$cc_ioc['term'] = $cc_ioc->factory( function() use ( $ioc ) { |
| 97 |
|
$condition = new \Carbon_Fields\Container\Condition\Term_Condition( $ioc['wp_toolset'] ); |
|
@@ 96-103 (lines=8) @@
|
| 93 |
|
return $condition; |
| 94 |
|
} ); |
| 95 |
|
|
| 96 |
|
$cc_ioc['term'] = $cc_ioc->factory( function() use ( $ioc ) { |
| 97 |
|
$condition = new \Carbon_Fields\Container\Condition\Term_Condition( $ioc['wp_toolset'] ); |
| 98 |
|
$condition->set_comparers( array( |
| 99 |
|
// Only support the custom comparer as this condition has its own comparison methods |
| 100 |
|
$ioc['container_condition_comparers']['custom'], |
| 101 |
|
) ); |
| 102 |
|
return $condition; |
| 103 |
|
} ); |
| 104 |
|
$cc_ioc['term_taxonomy'] = $cc_ioc->factory( function() use ( $ioc ) { |
| 105 |
|
$condition = new \Carbon_Fields\Container\Condition\Term_Taxonomy_Condition(); |
| 106 |
|
$condition->set_comparers( $ioc['container_condition_comparer_collections']['nonscalar'] ); |