Skip to content

Commit 9799ea8

Browse files
committed
Remove some pre-4.7 compat code
1 parent 9785355 commit 9799ea8

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Term_Command.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,6 @@ public function list_( $args, $assoc_args ) {
138138
*/
139139
$term = get_term_by( 'id', $assoc_args['term_id'], $args[0] );
140140
$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-
}
155141
} else {
156142
/**
157143
* @var \WP_Term[] $terms

0 commit comments

Comments
 (0)