WordPress.org

Make WordPress Core

Opened 14 months ago

Last modified 2 weeks ago

#45464 reviewing defect (bug)

Document some examples of object types accepted by register_meta()

Reported by: DrewAPicture Owned by: SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: normal Version: 3.3
Component: Options, Meta APIs Keywords: good-first-bug has-patch
Focuses: docs Cc:
PR Number:

Description

As pointed out in a contributor note by @janwoostendorp, the current description for the $object_type parameter in register_meta() is a little vague: "Type of object this meta is registered to."

We could do better about documenting a few potential object types that it can accept. Obviously it's not limited to core object types, but giving some examples provides insight into what's expected.

Best recommendation for a patch would be to add an open-ended statement to the description along the lines of "Accepts ... or any other object with an associated meta table."

Change History (3)

#2 @isabel_brison
2 weeks ago

  • Keywords has-patch added

#3 @SergeyBiryukov
2 weeks ago

  • Milestone changed from Awaiting Review to 5.4
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.