WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months 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:
PR Number:

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 6 months ago.
Patch for wp-includes/classjson

Download all attachments as: .zip

Change History (2)

@priyankkpatel
6 months ago

Patch for wp-includes/classjson

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