1 parent 884d01c commit 64e9d34Copy full SHA for 64e9d34
1 file changed
src/Term_Command.php
@@ -590,7 +590,7 @@ public function generate( $args, $assoc_args ) {
590
}
591
592
$args = [
593
- 'parent' => $current_parent,
+ 'parent' => max( 0, $current_parent ),
594
'slug' => $slug . "-{$index}",
595
];
596
0 commit comments