[wp-trac] [WordPress Trac] #29252: nav_menu problem with post_parent in menu editor
WordPress Trac
noreply at wordpress.org
Mon Aug 18 13:34:51 UTC 2014
#29252: nav_menu problem with post_parent in menu editor
----------------------------+-----------------------------
Reporter: pawel.garbarz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.9.2
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
In menu editor wp-admin/nav-menus.php in tab 'View all' if there is more
than 50 pages/records with hierarchy there is wrong hierarchy render.
As I'm found in wp-damin/includes/nav-menu.php on line 621 we have
function wp_nav_menu_item_post_type_meta_box that select from database 50
records and order it by name.
There is no ordering by parent, so sometimes it takes records with parent
from different set of data (because of limit to 50 records) and menu can't
render proper hierarchy.
Unfortunately changes only ordering fixing this bug only on first set of
data. If on next set of data ie. first record starts with parent from
first set it's still wrong hierarchy.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29252>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list