Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#39890 closed defect (bug) (fixed)

Fix return value type of wp_nav_menu

Reported by: chesio Owned by: SergeyBiryukov
Milestone: 4.8 Priority: normal
Severity: normal Version: 4.8
Component: Menus Keywords:
Focuses: docs Cc:



Return value type for wp_nav_menu should be string|false|void, not object|false|void.


Attachments (1)

39890.patch (815 bytes) - added by chesio 5 years ago.

Download all attachments as: .zip

Change History (4)

5 years ago

#1 @SergeyBiryukov
5 years ago

  • Component changed from Comments to Menus
  • Focuses docs added

#2 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 4.8

#3 @SergeyBiryukov
5 years ago

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

In 40062:

Docs: Correct @return value type for wp_nav_menu().

Props chesio.
Fixes #39890.

Note: See TracTickets for help on using tickets.