Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#50259 closed defect (bug) (fixed)

Documentation return type mistake in REST meta fields class

Reported by: chrisvanpatten's profile chrisvanpatten Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: REST API Keywords: has-patch
Focuses: Cc:


The return value of get_value is incorrectly documented as object|WP_Error; in fact the return type is array.

Attachments (1)

50259.diff (775 bytes) - added by chrisvanpatten 4 years ago.

Download all attachments as: .zip

Change History (5)

This ticket was mentioned in PR #296 on WordPress/wordpress-develop by chrisvanpatten.

4 years ago

  • Keywords has-patch added

Fixes incorrect return type documentation on WP_REST_Meta_Fields::get_value.

Trac ticket:

4 years ago

This ticket was mentioned in Slack in #core-restapi by chrisvanpatten. View the logs.

4 years ago

#3 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 5.5

#4 @SergeyBiryukov
4 years ago

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

In 47858:

Docs: Correct @return value for WP_REST_Meta_Fields::get_value().

Props chrisvanpatten.
Fixes #50259.

Note: See TracTickets for help on using tickets.