Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33451 closed defect (bug) (fixed)

Incorrect "get_{$meta_type}_metadata" filter docs

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

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 11 years ago.

Download all attachments as: .zip

Change History (3)

@dlh
11 years ago

#1 @DrewAPicture
11 years ago

  • Keywords has-patch commit added
  • Milestone Awaiting Review4.4

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

#2 @DrewAPicture
11 years ago

  • Owner set to DrewAPicture
  • Resolutionfixed
  • Status newclosed

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.