Skip to content

Commit 6f29afa

Browse files
swissspidyCopilot
andauthored
Update src/Menu_Item_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1beca2d commit 6f29afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Menu_Item_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function get( $args, $assoc_args ) {
203203

204204
// Correct position inconsistency and protected `url` param in WP-CLI
205205
// @phpstan-ignore property.notFound
206-
$menu_item->position = ( 0 === $menu_item->menu_order ) ? 1 : $menu_item->menu_order;
206+
$menu_item->position = $menu_item->menu_order;
207207
// @phpstan-ignore property.notFound
208208
$menu_item->link = $menu_item->url;
209209

0 commit comments

Comments
 (0)