_wp_menu_item_classes_by_context assumes $queried_object->ancestors is an array
|Reported by:||wpsmith||Owned by:|
Recently, on a site using CPT-onomies, I ran into an interesting error with _wp_menu_item_classes_by_context().
In this function, when setting the parent class, there is a large if statement that assumes that $queried_object->ancestors and $possible_taxonomy_ancestors[ $parent_item->object ] are arrays.
Change History (4)
- Keywords reporter-feedback added; dev-feedback removed
- Milestone changed from 3.9 to Awaiting Review