#48681 closed enhancement (fixed)
WP_Taxonomy labels wrong initial type and documentation
Reported by: | alpipego | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | 5.4 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
The initial value of WP_Taxonomy::$labels
is an empty array but gets converted to a stdClass object. The docblock comment also states array
even though the return correctly says object.
The patch updates the inline documentation and the initial type of $labels
.
Attachments (1)
Change History (4)
#1
@
5 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 5.4
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#3
@
5 years ago
For reference, the value is set in ::set_props(), which runs from ::__construct().
Note: See
TracTickets for help on using
tickets.
In 46743: