Opened 6 years ago
Closed 6 years ago
#50259 closed defect (bug) (fixed)
Documentation return type mistake in REST meta fields class
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.5 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | REST API | Keywords: | has-patch |
| Focuses: | Cc: |
Description
The return value of get_value is incorrectly documented as object|WP_Error; in fact the return type is array.
Attachments (1)
Change History (5)
This ticket was mentioned in βPR #296 on βWordPress/wordpress-develop by βchrisvanpatten.
6 years ago
#1
- Keywords has-patch added
This ticket was mentioned in βSlack in #core-restapi by chrisvanpatten. βView the logs.
6 years ago
Note: See
TracTickets for help on using
tickets.
Fixes incorrect return type documentation on
WP_REST_Meta_Fields::get_value.Trac ticket: https://core.trac.wordpress.org/ticket/50259