Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#47399 closed enhancement (wontfix)

Docs: Need to correct the inline documentation for _encode()

Reported by: priyankkpatel's profile 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)

47399.diff (1.1 KB) - added by priyankkpatel 5 years ago.
Patch for wp-includes/classjson

Download all attachments as: .zip

Change History (2)

@priyankkpatel
5 years ago

Patch for wp-includes/classjson

#1 @SergeyBiryukov
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.