Skip to content

Commit 7c32e21

Browse files
committed
Change parameter to max-depth
1 parent 479f13b commit 7c32e21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

includes/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ function () use ( $progress ) {
308308
'default' => 10,
309309
),
310310
array(
311-
'name' => 'max_depth',
311+
'name' => 'max-depth',
312312
'type' => 'assoc',
313313
'description' => 'The maximum number of hierarchy levels for the terms. A value of 1 means all categories will be top-level. Max value 5. Only applies to taxonomies that are hierarchical.',
314314
'optional' => true,

includes/Generator/Term.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ public static function batch( $amount, $taxonomy, array $args = array() ) {
153153
*/
154154
protected static function batch_hierarchical( int $amount, string $taxonomy, array $args = array() ) {
155155
$defaults = array(
156-
'max_depth' => 1,
156+
'max-depth' => 1,
157157
'parent' => 0,
158158
);
159159

160-
list( 'max_depth' => $max_depth, 'parent' => $parent ) = filter_var_array(
160+
list( 'max-depth' => $max_depth, 'parent' => $parent ) = filter_var_array(
161161
wp_parse_args( $args, $defaults ),
162162
array(
163-
'max_depth' => array(
163+
'max-depth' => array(
164164
'filter' => FILTER_VALIDATE_INT,
165165
'options' => array(
166166
'min_range' => 1,

0 commit comments

Comments
 (0)