Opened 5 years ago
Closed 5 years ago
#47399 closed enhancement (wontfix)
Docs: Need to correct the inline documentation for _encode()
Reported by: | priyankkpatel | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.3 |
Component: | External Libraries | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
Description
According to the comments for _encode() it can return JSON format of input variable or error. While it can also return boolean, NULL, int, double, float, string, JSON, array.
Attachments (1)
Change History (2)
#1
@
5 years ago
- Component changed from Comments to External Libraries
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
Hi @priyankkpatel, welcome to WordPress Trac!
Thanks for the patch, but the current documentation is correct, all of these cases are a JSON representation of the provided input. As noted in #47387, the file is a third-party library which we usually don’t modify.
Note: See
TracTickets for help on using
tickets.
Patch for wp-includes/classjson