Admin menu.php incorrectly sets page taxonomy query string
|Reported by:||t31os_||Owned by:|
I've been working with the admin menu code over the last week (personal project, writing a menu), and i've come to spot a bug with taxonomy submenu items under the "Page" post type.
In wp-admin/menu.php, 3.0.1 and current trunk, each taxonomy under the page post type sets the menu item URL with post_type first, followed by taxonomy.
Unfortunately this is contrary to how $submenu_file is set, which places the taxonomy onto the URL first, followed by the post type (which is how every other post type is treated, tax first, post type second).
For any post type not a page, the typical URL is..
For pages, this becomes.
This causes the conditional checks performed in wp-admin/menu-header.php to fail for page taxonomies (discovered when performing my own similar checks), and submenu items are not correctly marked as active.
Patch for trunk is attached.
Change History (6)
- Keywords commit added
- Milestone changed from Awaiting Review to 3.1
- Severity changed from normal to minor
- Milestone changed from 3.1 to 3.0.2
- Resolution fixed deleted
- Status changed from closed to reopened