Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#38166 closed defect (bug) (fixed)

Documentation related to wp_get_nav_menu_object() isn't synchronized

Reported by: dimadin's profile dimadin Owned by: drewapicture's profile DrewAPicture
Milestone: 4.9 Priority: normal
Severity: normal Version:
Component: Menus Keywords: has-patch
Focuses: docs Cc:

Description

Functions that pass its parameter to wp_get_nav_menu_object() or filter inside of it don't document all of the values they accept. This changes that.

Attachments (1)

38166.1.diff (3.5 KB) - added by dimadin 9 years ago.

Download all attachments as: .zip

Change History (4)

@dimadin
9 years ago

This ticket was mentioned in Slack in #docs by morganestes. View the logs.


9 years ago

#2 @DrewAPicture
8 years ago

  • Component changed from General to Menus
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.9

@dimadin Thanks for the patch!

#3 @DrewAPicture
8 years ago

  • Owner set to DrewAPicture
  • Resolution set to fixed
  • Status changed from new to closed

In 40969:

Docs: Clarify accepted types and values for $menu parameters in several contexts:

  • wp_nav_menu()
  • wp_get_nav_menu_object() and its filter wp_get_nav_menu_object
  • is_nav_menu()
  • wp_delete_nav_menu()
  • wp_get_nav_menu_items()

Props dimadin.
Fixes #38166.

Note: See TracTickets for help on using tickets.