Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19511 closed enhancement (invalid)

Adding an "hide_empty" parameter on wp_nav_menu() function

Reported by: prionkor Owned by:
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
Cc: Focuses:

Description

There should be a hide empty parameter on wp_nav_menu() function argument as there is no point to echo a empty menu item.

  1. The node with submenu should be skipped.
  2. May be false by default.
  3. There will be a check box on side of the menu (check attached image)

http://i.imgur.com/vATKW.jpg

  1. The "hide_empty" parameter will be overwrite by that checkbox. That means the user choice will have more priority then theme developers choice.

Change History (2)

#1 @prionkor
15 years ago

  • Resolutioninvalid
  • Status newclosed

The checkbox will apply on taxonomy.

#2 @helenyhou
15 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.