Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#39890 closed defect (bug) (fixed)

Fix return value type of wp_nav_menu

Reported by: chesio's profile chesio Owned by: sergeybiryukov's profile 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 8 years ago.

Download all attachments as: .zip

Change History (4)

@chesio
8 years ago

#1 @SergeyBiryukov
8 years ago

  • Component changed from Comments to Menus
  • Focuses docs added

#2 @SergeyBiryukov
8 years ago

  • Milestone changed from Awaiting Review to 4.8

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