#6731 closed defect (bug) (fixed)
edit-pages.php does not correctly order pages by menu_order
| Reported by: | torfason | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5.1 |
| Component: | Administration | Version: | 2.5 |
| Severity: | normal | Keywords: | edit-pages.php query.php |
| Cc: | Focuses: |
Description
In version 2.5, as well as in the most recent checkout, the list of pages generated by edit-pages.php does not correctly order pages by the menu_order column. The reason is the lack of a break statement in query.php, which causes the menu_order case to fall through to the next case and the $orderby variable gets set to $wpdb->posts.ID.
A patch detailing an insertion of this break statement is attached, which seems to fix the problem.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to fix the bug, by inserting a break into the statement