Opened 10 years ago
Closed 10 years ago
#29638 closed defect (bug) (worksforme)
Multiple nav menu items added in reverse order
Reported by: | smerriman | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Menus | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
Whenever I create a Wordpress site, I create all of the pages I want, in the correct order.
I then create a nav menu, check all of the pages, and click 'Add to menu'.
All of the pages at added at once - in reverse order.
I then need to manually drag every item to the opposite end of the menu to reverse the order.
I'm guessing this is due to the fact the $_nav_menu_placeholder
variable is negative and decremented for every checkbox, but I can't figure out why this would be the case.
Whether this variable is at fault, or the saving logic should be adapted, it seems illogical for the reverse order to be used.
Change History (4)
This ticket was mentioned in Slack in #core by jorbin. View the logs.
10 years ago
#4
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
The only way I could manage to reproduce anything like this is by applying a custom order to each page. The page-related checkboxes then appear in the custom order when on the View All tab, and are added to the menu in the corresponding order. However, Most Recent still lists them in reverse chronological order, and they are added to the menu in the same order. If this is the purported bug, then it's not a bug at all - one would expect (a) that Most Recent would show a chronologically ordered list, and (b) that items would be added to the menu in the same order in which they appear in the checkbox list. I find that this is, indeed, the current behavior.
If something else is meant in the original bug report, then I'm afraid I can't reproduce it.
I'm unable to reproduce this. Adding pages to a menu in bulk adds them in the order in which they appear in the Pages list.
Can you confirm that this issue still exists with all your plugins deactivated and the default theme enabled please?