File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -138,20 +138,6 @@ public function list_( $args, $assoc_args ) {
138
138
*/
139
139
$ term = get_term_by ( 'id ' , $ assoc_args ['term_id ' ], $ args [0 ] );
140
140
$ terms = [ $ term ];
141
- } elseif ( ! empty ( $ assoc_args ['include ' ] )
142
- && ! empty ( $ assoc_args ['orderby ' ] )
143
- && 'include ' === $ assoc_args ['orderby ' ]
144
- && Utils \wp_version_compare ( '4.7 ' , '< ' ) ) {
145
- $ terms = [];
146
- $ term_ids = explode ( ', ' , $ assoc_args ['include ' ] );
147
- foreach ( $ term_ids as $ term_id ) {
148
- $ term = get_term_by ( 'id ' , $ term_id , $ args [0 ] );
149
- if ( $ term instanceof \WP_Term ) {
150
- $ terms [] = $ term ;
151
- } else {
152
- WP_CLI ::warning ( "Invalid term {$ term_id }. " );
153
- }
154
- }
155
141
} else {
156
142
/**
157
143
* @var \WP_Term[] $terms
You can’t perform that action at this time.
0 commit comments