#48681 closed enhancement (fixed)
WP_Taxonomy labels wrong initial type and documentation
| Reported by: | alpipego | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.4 |
| Component: | Taxonomy | Version: | 5.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 46743: