WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months 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:

Description

Hi,

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

Cheers,
Česlav

Attachments (1)

39890.patch (815 bytes) - added by chesio 9 months ago.

Download all attachments as: .zip

Change History (4)

@chesio
9 months ago

#1 @SergeyBiryukov
9 months ago

  • Component changed from Comments to Menus
  • Focuses docs added

#2 @SergeyBiryukov
9 months ago

  • Milestone changed from Awaiting Review to 4.8

#3 @SergeyBiryukov
9 months 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.