Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#33451 closed defect (bug) (fixed)

Incorrect "get_{$meta_type}_metadata" filter docs

Reported by: dlh's profile dlh Owned by: drewapicture's profile DrewAPicture
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords: has-patch commit
Focuses: docs Cc:

Description

The $single parameter in get_{$meta_type}_metadata is listed as string|array, but get_metadata() itself expects it to be bool.

Attachments (1)

33451.patch (730 bytes) - added by dlh 9 years ago.

Download all attachments as: .zip

Change History (3)

@dlh
9 years ago

#1 @DrewAPicture
9 years ago

  • Keywords has-patch commit added
  • Milestone changed from Awaiting Review to 4.4

Hi @dlh, thanks for the catch and the patch!

#2 @DrewAPicture
9 years ago

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

In 33665:

Docs: Correct the phpDoc type to a boolean for the $single parameter in the get_{$meta_type}_metadata hook docs.

Props dlh.
Fixes #33451.

Note: See TracTickets for help on using tickets.