Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#15179 closed defect (bug) (invalid)

show_in_nav_menus attribute on taxonomies is not used properly

Reported by: dvmorris Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: Taxonomy Keywords: show_in_nav_menus
Focuses: Cc:


The code to display custom taxonomy links in the nav menu is on menu.php:88

There is a conditional statement that checks if 'show_ui' is true, but it should be 'show_in_nav_menus' instead.

line 89:
if ( !$tax->show_in_nav_menus /* ... */ )

Change History (2)

comment:1 @dd325 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

I believe you will find that show_in_nav_menus is to toggle the taxonomy being visible within the "Menu" functionality (ie. Appearance -> Menu) for the front-end.

comment:2 @dvmorris5 years ago

Ah, I see now. Thanks!

Note: See TracTickets for help on using tickets.