Skip to content

Commit 0f0540c

Browse files
committed
Bug fix #18
1 parent 199a2be commit 0f0540c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-rest-api-v2-menus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function wp_api_v2_menus_get_menu_items( $id ) {
155155
}
156156
} while(count($child_items));
157157

158-
return $menu_items;
158+
return array_values($menu_items);
159159
}
160160

161161
/**

0 commit comments

Comments
 (0)